forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cpp.json5
38 lines (38 loc) · 1.28 KB
/
cpp.json5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{
// This file contains snippets that might be useful to you for Chrome
// development.
"Chrome Header": {
"prefix": "hdr",
"body": [
"// Copyright ${CURRENT_YEAR} The Chromium Authors. All rights reserved.",
"// Use of this source code is governed by a BSD-style license that can be",
"// found in the LICENSE file.",
"${0:",
"#ifndef ${TM_FILEPATH/(^\\/.*\\/src\\/)|([^a-zA-Z0-9])|([a-zA-Z0-9])/${2:+_}${3:/upcase}/g}_",
"#define ${TM_FILEPATH/(^\\/.*\\/src\\/)|([^a-zA-Z0-9])|([a-zA-Z0-9])/${2:+_}${3:/upcase}/g}_",
"",
"#endif // ${TM_FILEPATH/(^\\/.*\\/src\\/)|([^a-zA-Z0-9])|([a-zA-Z0-9])/${2:+_}${3:/upcase}/g}_}",
]
},
"Chrome Copyright": {
"prefix": "copyright",
"body": [
"// Copyright ${CURRENT_YEAR} The Chromium Authors. All rights reserved.",
"// Use of this source code is governed by a BSD-style license that can be",
"// found in the LICENSE file.",
]
},
"Chrome Log": {
"prefix": "log",
"body": "LOG(ERROR) << \"${1:message}\";",
"description": "Chrome Log output to console"
},
"Stack trace": {
"prefix": "st",
"body": "base::debug::StackTrace().Print();"
},
"Stack trace header": {
"prefix": "sth",
"body": "#include \"base/debug/stack_trace.h\""
}
}