ccls/tests/preprocessor/include_guard.cc
Jacob Dufault b5305e14f2 Add |is_macro| state to IndexVar.
This does not handle setting |is_macro|, this CL is about updating the
tests.
2017-06-28 23:25:29 -07:00

22 lines
348 B
C++

#ifndef FOO
#define FOO
#endif
/*
OUTPUT:
{
"vars": [{
"id": 0,
"usr": "c:include_guard.cc@21@macro@FOO",
"short_name": "FOO",
"detailed_name": "FOO",
"definition_spelling": "2:9-2:12",
"definition_extent": "2:9-2:12",
"is_local": false,
"is_macro": false,
"uses": ["2:9-2:12"]
}]
}
*/