ccls/tests/preprocessor/include_guard.cc

29 lines
510 B
C++
Raw Normal View History

#ifndef FOO
#define FOO
#endif
/*
OUTPUT:
{
2017-12-12 05:15:37 +00:00
"includes": [],
"skipped_by_preprocessor": [],
"types": [],
"funcs": [],
"vars": [{
"id": 0,
"usr": "c:include_guard.cc@21@macro@FOO",
"short_name": "FOO",
"detailed_name": "FOO",
"hover": "#define FOO",
"definition_spelling": "2:9-2:12",
"definition_extent": "2:9-2:12",
"is_local": false,
2017-06-29 06:28:29 +00:00
"is_macro": true,
2017-12-23 02:10:23 +00:00
"is_global": false,
"is_member": false,
"uses": ["2:9-2:12"]
}]
}
*/