mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-22 15:45:08 +00:00
Add |is_macro| state to IndexVar.
This does not handle setting |is_macro|, this CL is about updating the tests.
This commit is contained in:
parent
85ec4b9843
commit
b5305e14f2
@ -371,6 +371,8 @@ struct VarDefDefinitionData {
|
||||
|
||||
// Is this a "local" variable, ie, a parameter or function variable?
|
||||
bool is_local = false;
|
||||
// Is this a macro, ie, #define FOO?
|
||||
bool is_macro = false;
|
||||
|
||||
VarDefDefinitionData() {} // For reflection.
|
||||
VarDefDefinitionData(const std::string& usr) : usr(usr) {}
|
||||
@ -407,6 +409,7 @@ void Reflect(TVisitor& visitor,
|
||||
REFLECT_MEMBER(variable_type);
|
||||
REFLECT_MEMBER(declaring_type);
|
||||
REFLECT_MEMBER(is_local);
|
||||
REFLECT_MEMBER(is_macro);
|
||||
REFLECT_MEMBER_END();
|
||||
}
|
||||
|
||||
|
@ -125,6 +125,7 @@ void Reflect(TVisitor& visitor, IndexVar& value) {
|
||||
REFLECT_MEMBER2("variable_type", value.def.variable_type);
|
||||
REFLECT_MEMBER2("declaring_type", value.def.declaring_type);
|
||||
REFLECT_MEMBER2("is_local", value.def.is_local);
|
||||
REFLECT_MEMBER2("is_macro", value.def.is_macro);
|
||||
REFLECT_MEMBER2("uses", value.uses);
|
||||
REFLECT_MEMBER_END();
|
||||
}
|
||||
|
@ -49,6 +49,7 @@ OUTPUT:
|
||||
"definition_extent": "7:3-7:8",
|
||||
"variable_type": 0,
|
||||
"is_local": true,
|
||||
"is_macro": false,
|
||||
"uses": ["7:7-7:8"]
|
||||
}, {
|
||||
"id": 1,
|
||||
@ -59,6 +60,7 @@ OUTPUT:
|
||||
"definition_extent": "8:3-8:22",
|
||||
"variable_type": 0,
|
||||
"is_local": true,
|
||||
"is_macro": false,
|
||||
"uses": ["8:8-8:10"]
|
||||
}]
|
||||
}
|
||||
|
@ -62,6 +62,7 @@ OUTPUT:
|
||||
"definition_extent": "8:3-8:8",
|
||||
"variable_type": 0,
|
||||
"is_local": true,
|
||||
"is_macro": false,
|
||||
"uses": ["8:7-8:8"]
|
||||
}]
|
||||
}
|
||||
|
@ -48,6 +48,7 @@ OUTPUT:
|
||||
"definition_extent": "6:3-6:11",
|
||||
"variable_type": 0,
|
||||
"is_local": true,
|
||||
"is_macro": false,
|
||||
"uses": ["6:8-6:11"]
|
||||
}, {
|
||||
"id": 1,
|
||||
@ -57,6 +58,7 @@ OUTPUT:
|
||||
"definition_spelling": "7:8-7:11",
|
||||
"definition_extent": "7:3-7:11",
|
||||
"is_local": true,
|
||||
"is_macro": false,
|
||||
"uses": ["7:8-7:11"]
|
||||
}]
|
||||
}
|
||||
|
@ -24,6 +24,7 @@ OUTPUT:
|
||||
"definition_extent": "2:3-2:10",
|
||||
"declaring_type": 0,
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["2:7-2:10"]
|
||||
}]
|
||||
}
|
||||
|
@ -27,6 +27,7 @@ OUTPUT:
|
||||
"definition_extent": "5:1-5:13",
|
||||
"declaring_type": 0,
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["2:14-2:17", "5:10-5:13"]
|
||||
}]
|
||||
}
|
||||
|
@ -39,6 +39,7 @@ OUTPUT:
|
||||
"definition_spelling": "5:13-5:14",
|
||||
"definition_extent": "5:9-5:14",
|
||||
"is_local": true,
|
||||
"is_macro": false,
|
||||
"uses": ["5:13-5:14"]
|
||||
}, {
|
||||
"id": 1,
|
||||
@ -48,6 +49,7 @@ OUTPUT:
|
||||
"definition_spelling": "5:20-5:21",
|
||||
"definition_extent": "5:16-5:21",
|
||||
"is_local": true,
|
||||
"is_macro": false,
|
||||
"uses": ["5:20-5:21"]
|
||||
}]
|
||||
}
|
||||
|
@ -26,6 +26,7 @@ OUTPUT:
|
||||
"variable_type": 0,
|
||||
"declaring_type": 0,
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["2:3-2:4"]
|
||||
}, {
|
||||
"id": 1,
|
||||
@ -37,6 +38,7 @@ OUTPUT:
|
||||
"variable_type": 0,
|
||||
"declaring_type": 0,
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["3:3-3:4"]
|
||||
}]
|
||||
}
|
||||
|
@ -26,6 +26,7 @@ OUTPUT:
|
||||
"variable_type": 0,
|
||||
"declaring_type": 0,
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["2:3-2:4"]
|
||||
}, {
|
||||
"id": 1,
|
||||
@ -37,6 +38,7 @@ OUTPUT:
|
||||
"variable_type": 0,
|
||||
"declaring_type": 0,
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["3:3-3:4"]
|
||||
}]
|
||||
}
|
||||
|
@ -26,6 +26,7 @@ OUTPUT:
|
||||
"variable_type": 0,
|
||||
"declaring_type": 0,
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["2:3-2:4"]
|
||||
}, {
|
||||
"id": 1,
|
||||
@ -37,6 +38,7 @@ OUTPUT:
|
||||
"variable_type": 0,
|
||||
"declaring_type": 0,
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["3:3-3:4"]
|
||||
}]
|
||||
}
|
||||
|
@ -29,6 +29,7 @@ OUTPUT:
|
||||
"variable_type": 0,
|
||||
"declaring_type": 0,
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["2:3-2:4", "6:14-6:15"]
|
||||
}, {
|
||||
"id": 1,
|
||||
@ -40,6 +41,7 @@ OUTPUT:
|
||||
"variable_type": 0,
|
||||
"declaring_type": 0,
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["3:3-3:4"]
|
||||
}, {
|
||||
"id": 2,
|
||||
@ -50,6 +52,7 @@ OUTPUT:
|
||||
"definition_extent": "6:1-6:15",
|
||||
"variable_type": 0,
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["6:5-6:6"]
|
||||
}]
|
||||
}
|
||||
|
@ -55,6 +55,7 @@ OUTPUT:
|
||||
"definition_extent": "9:1-9:16",
|
||||
"variable_type": 3,
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["9:15-9:16"]
|
||||
}, {
|
||||
"id": 1,
|
||||
@ -65,6 +66,7 @@ OUTPUT:
|
||||
"definition_extent": "10:1-10:9",
|
||||
"variable_type": 2,
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["10:8-10:9"]
|
||||
}]
|
||||
}
|
||||
|
@ -44,6 +44,7 @@ OUTPUT:
|
||||
"definition_spelling": "9:11-9:16",
|
||||
"definition_extent": "9:1-9:20",
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["9:11-9:16", "12:14-12:19"]
|
||||
}, {
|
||||
"id": 1,
|
||||
@ -53,6 +54,7 @@ OUTPUT:
|
||||
"definition_spelling": "1:9-1:12",
|
||||
"definition_extent": "1:9-3:32",
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["1:9-1:12", "12:1-12:4"]
|
||||
}]
|
||||
}
|
||||
|
@ -27,6 +27,7 @@ OUTPUT:
|
||||
"definition_spelling": "8:5-8:6",
|
||||
"definition_extent": "8:1-8:10",
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["8:5-8:6"]
|
||||
}, {
|
||||
"id": 1,
|
||||
@ -36,6 +37,7 @@ OUTPUT:
|
||||
"definition_spelling": "1:9-1:10",
|
||||
"definition_extent": "1:9-1:12",
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["1:9-1:10", "8:9-8:10"]
|
||||
}, {
|
||||
"id": 2,
|
||||
@ -45,6 +47,7 @@ OUTPUT:
|
||||
"definition_spelling": "2:9-2:17",
|
||||
"definition_extent": "2:9-2:46",
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["2:9-2:17", "5:3-5:11"]
|
||||
}]
|
||||
}
|
||||
|
@ -23,6 +23,7 @@ OUTPUT: funky_enum.h
|
||||
"variable_type": 0,
|
||||
"declaring_type": 0,
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["4:1-4:2"]
|
||||
}, {
|
||||
"id": 1,
|
||||
@ -34,6 +35,7 @@ OUTPUT: funky_enum.h
|
||||
"variable_type": 0,
|
||||
"declaring_type": 0,
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["5:1-5:2"]
|
||||
}, {
|
||||
"id": 2,
|
||||
@ -45,6 +47,7 @@ OUTPUT: funky_enum.h
|
||||
"variable_type": 0,
|
||||
"declaring_type": 0,
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["6:1-6:2"]
|
||||
}]
|
||||
}
|
||||
|
@ -70,6 +70,7 @@ OUTPUT: header.h
|
||||
"variable_type": 4,
|
||||
"declaring_type": 4,
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["15:13-15:14"]
|
||||
}, {
|
||||
"id": 1,
|
||||
@ -81,6 +82,7 @@ OUTPUT: header.h
|
||||
"variable_type": 4,
|
||||
"declaring_type": 4,
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["15:16-15:17"]
|
||||
}, {
|
||||
"id": 2,
|
||||
@ -92,6 +94,7 @@ OUTPUT: header.h
|
||||
"variable_type": 4,
|
||||
"declaring_type": 4,
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["15:19-15:20"]
|
||||
}, {
|
||||
"id": 3,
|
||||
@ -101,6 +104,7 @@ OUTPUT: header.h
|
||||
"definition_spelling": "17:5-17:9",
|
||||
"definition_extent": "17:1-17:9",
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["17:5-17:9"]
|
||||
}, {
|
||||
"id": 4,
|
||||
@ -110,6 +114,7 @@ OUTPUT: header.h
|
||||
"definition_spelling": "18:12-18:16",
|
||||
"definition_extent": "18:1-18:16",
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["18:12-18:16"]
|
||||
}]
|
||||
}
|
||||
|
@ -32,6 +32,7 @@ OUTPUT:
|
||||
"definition_spelling": "4:18-4:21",
|
||||
"definition_extent": "4:14-4:26",
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["4:18-4:21", "12:26-12:29", "13:16-13:19"]
|
||||
}, {
|
||||
"id": 1,
|
||||
@ -41,6 +42,7 @@ OUTPUT:
|
||||
"definition_spelling": "12:7-12:8",
|
||||
"definition_extent": "12:3-12:29",
|
||||
"is_local": true,
|
||||
"is_macro": false,
|
||||
"uses": ["12:7-12:8"]
|
||||
}, {
|
||||
"id": 2,
|
||||
@ -50,6 +52,7 @@ OUTPUT:
|
||||
"definition_spelling": "13:7-13:8",
|
||||
"definition_extent": "13:3-13:19",
|
||||
"is_local": true,
|
||||
"is_macro": false,
|
||||
"uses": ["13:7-13:8"]
|
||||
}]
|
||||
}
|
||||
|
@ -37,6 +37,7 @@ OUTPUT:
|
||||
"definition_spelling": "2:7-2:10",
|
||||
"definition_extent": "2:3-2:10",
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["2:7-2:10", "7:18-7:21", "9:10-9:13"]
|
||||
}, {
|
||||
"id": 1,
|
||||
@ -46,6 +47,7 @@ OUTPUT:
|
||||
"definition_spelling": "3:19-3:20",
|
||||
"definition_extent": "3:15-3:20",
|
||||
"is_local": true,
|
||||
"is_macro": false,
|
||||
"uses": ["3:19-3:20"]
|
||||
}]
|
||||
}
|
||||
|
@ -38,6 +38,7 @@ OUTPUT:
|
||||
"definition_extent": "4:3-4:8",
|
||||
"declaring_type": 0,
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["4:7-4:8"]
|
||||
}, {
|
||||
"id": 1,
|
||||
@ -48,6 +49,7 @@ OUTPUT:
|
||||
"definition_extent": "5:3-5:8",
|
||||
"declaring_type": 0,
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["5:7-5:8"]
|
||||
}, {
|
||||
"id": 2,
|
||||
@ -59,6 +61,7 @@ OUTPUT:
|
||||
"variable_type": 1,
|
||||
"declaring_type": 0,
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["6:20-6:26"]
|
||||
}]
|
||||
}
|
||||
|
@ -64,6 +64,7 @@ OUTPUT:
|
||||
"variable_type": 1,
|
||||
"declaring_type": 0,
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["7:15-7:24"]
|
||||
}, {
|
||||
"id": 1,
|
||||
@ -75,6 +76,7 @@ OUTPUT:
|
||||
"variable_type": 1,
|
||||
"declaring_type": 0,
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["8:15-8:23"]
|
||||
}, {
|
||||
"id": 2,
|
||||
@ -86,6 +88,7 @@ OUTPUT:
|
||||
"variable_type": 2,
|
||||
"declaring_type": 0,
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["9:28-9:32"]
|
||||
}]
|
||||
}
|
||||
|
21
tests/preprocessor/include_guard.cc
Normal file
21
tests/preprocessor/include_guard.cc
Normal file
@ -0,0 +1,21 @@
|
||||
#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"]
|
||||
}]
|
||||
}
|
||||
*/
|
@ -47,6 +47,7 @@ OUTPUT:
|
||||
"variable_type": 0,
|
||||
"declaring_type": 1,
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["6:30-6:40", "10:37-10:47", "13:26-13:36", "14:27-14:37"]
|
||||
}, {
|
||||
"id": 1,
|
||||
@ -56,6 +57,7 @@ OUTPUT:
|
||||
"definition_spelling": "13:7-13:10",
|
||||
"definition_extent": "13:3-13:36",
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["13:7-13:10"]
|
||||
}, {
|
||||
"id": 2,
|
||||
@ -65,6 +67,7 @@ OUTPUT:
|
||||
"definition_spelling": "14:7-14:11",
|
||||
"definition_extent": "14:3-14:37",
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["14:7-14:11"]
|
||||
}]
|
||||
}
|
||||
|
@ -42,6 +42,7 @@ OUTPUT:
|
||||
"definition_spelling": "10:7-10:8",
|
||||
"definition_extent": "10:3-10:33",
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["10:7-10:8"]
|
||||
}, {
|
||||
"id": 1,
|
||||
@ -51,6 +52,7 @@ OUTPUT:
|
||||
"definition_spelling": "11:7-11:8",
|
||||
"definition_extent": "11:3-11:35",
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["11:7-11:8"]
|
||||
}]
|
||||
}
|
||||
|
@ -28,6 +28,7 @@ OUTPUT:
|
||||
"definition_extent": "5:3-5:13",
|
||||
"variable_type": 0,
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["5:12-5:13"]
|
||||
}, {
|
||||
"id": 1,
|
||||
@ -38,6 +39,7 @@ OUTPUT:
|
||||
"definition_extent": "6:3-6:14",
|
||||
"variable_type": 0,
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["6:13-6:14"]
|
||||
}]
|
||||
}
|
||||
|
@ -39,6 +39,7 @@ OUTPUT:
|
||||
"definition_spelling": "8:5-8:6",
|
||||
"definition_extent": "8:1-8:24",
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["8:5-8:6"]
|
||||
}, {
|
||||
"id": 1,
|
||||
@ -48,6 +49,7 @@ OUTPUT:
|
||||
"definition_spelling": "9:5-9:6",
|
||||
"definition_extent": "9:1-9:25",
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["9:5-9:6"]
|
||||
}]
|
||||
}
|
||||
|
@ -40,6 +40,7 @@ OUTPUT:
|
||||
"definition_spelling": "9:5-9:6",
|
||||
"definition_extent": "9:1-9:31",
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["9:5-9:6"]
|
||||
}, {
|
||||
"id": 1,
|
||||
@ -49,6 +50,7 @@ OUTPUT:
|
||||
"definition_spelling": "10:5-10:6",
|
||||
"definition_extent": "10:1-10:33",
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["10:5-10:6"]
|
||||
}]
|
||||
}
|
||||
|
@ -74,6 +74,7 @@ OUTPUT:
|
||||
"definition_extent": "9:1-9:16",
|
||||
"variable_type": 3,
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["9:15-9:16"]
|
||||
}, {
|
||||
"id": 1,
|
||||
@ -84,6 +85,7 @@ OUTPUT:
|
||||
"definition_extent": "10:1-10:16",
|
||||
"variable_type": 3,
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["10:15-10:16"]
|
||||
}]
|
||||
}
|
||||
|
@ -25,6 +25,7 @@ OUTPUT:
|
||||
"detailed_name": "const int Foo::var",
|
||||
"declaration": "3:24-3:27",
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["3:24-3:27", "6:19-6:22", "7:20-7:23"]
|
||||
}, {
|
||||
"id": 1,
|
||||
@ -34,6 +35,7 @@ OUTPUT:
|
||||
"definition_spelling": "6:5-6:6",
|
||||
"definition_extent": "6:1-6:22",
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["6:5-6:6"]
|
||||
}, {
|
||||
"id": 2,
|
||||
@ -43,6 +45,7 @@ OUTPUT:
|
||||
"definition_spelling": "7:5-7:6",
|
||||
"definition_extent": "7:1-7:23",
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["7:5-7:6"]
|
||||
}]
|
||||
}
|
||||
|
@ -29,6 +29,7 @@ OUTPUT:
|
||||
"definition_spelling": "6:5-6:6",
|
||||
"definition_extent": "6:1-6:19",
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["6:5-6:6"]
|
||||
}, {
|
||||
"id": 1,
|
||||
@ -38,6 +39,7 @@ OUTPUT:
|
||||
"definition_spelling": "7:5-7:6",
|
||||
"definition_extent": "7:1-7:20",
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["7:5-7:6"]
|
||||
}]
|
||||
}
|
||||
|
@ -26,6 +26,7 @@ OUTPUT:
|
||||
"definition_extent": "4:1-4:11",
|
||||
"variable_type": 0,
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["4:10-4:11"]
|
||||
}, {
|
||||
"id": 1,
|
||||
@ -36,6 +37,7 @@ OUTPUT:
|
||||
"definition_extent": "5:1-5:12",
|
||||
"variable_type": 0,
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["5:11-5:12"]
|
||||
}]
|
||||
}
|
||||
|
@ -60,6 +60,7 @@ OUTPUT:
|
||||
"definition_spelling": "5:3-5:6",
|
||||
"definition_extent": "5:1-5:10",
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["5:3-5:6", "7:9-7:12", "8:9-8:12"]
|
||||
}, {
|
||||
"id": 1,
|
||||
@ -69,6 +70,7 @@ OUTPUT:
|
||||
"definition_spelling": "7:5-7:6",
|
||||
"definition_extent": "7:1-7:15",
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["7:5-7:6"]
|
||||
}, {
|
||||
"id": 2,
|
||||
@ -78,6 +80,7 @@ OUTPUT:
|
||||
"definition_spelling": "8:5-8:6",
|
||||
"definition_extent": "8:1-8:15",
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["8:5-8:6"]
|
||||
}]
|
||||
}
|
||||
|
@ -34,6 +34,7 @@ OUTPUT:
|
||||
"definition_extent": "2:12-2:19",
|
||||
"declaring_type": 1,
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["2:18-2:19"]
|
||||
}, {
|
||||
"id": 1,
|
||||
@ -44,6 +45,7 @@ OUTPUT:
|
||||
"definition_extent": "2:12-2:22",
|
||||
"declaring_type": 1,
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["2:21-2:22"]
|
||||
}, {
|
||||
"id": 2,
|
||||
@ -54,6 +56,7 @@ OUTPUT:
|
||||
"definition_extent": "2:12-2:25",
|
||||
"declaring_type": 1,
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["2:24-2:25"]
|
||||
}, {
|
||||
"id": 3,
|
||||
@ -64,6 +67,7 @@ OUTPUT:
|
||||
"definition_extent": "3:3-3:13",
|
||||
"declaring_type": 0,
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["3:9-3:10"]
|
||||
}]
|
||||
}
|
||||
|
@ -25,6 +25,7 @@ OUTPUT:
|
||||
"definition_extent": "2:3-2:8",
|
||||
"declaring_type": 0,
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["2:7-2:8"]
|
||||
}, {
|
||||
"id": 1,
|
||||
@ -35,6 +36,7 @@ OUTPUT:
|
||||
"definition_extent": "3:3-3:9",
|
||||
"declaring_type": 0,
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["3:8-3:9"]
|
||||
}]
|
||||
}
|
||||
|
@ -42,6 +42,7 @@ OUTPUT:
|
||||
"definition_extent": "2:3-2:12",
|
||||
"declaring_type": 0,
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["2:7-2:8", "9:5-9:6"]
|
||||
}, {
|
||||
"id": 1,
|
||||
@ -52,6 +53,7 @@ OUTPUT:
|
||||
"definition_extent": "3:3-3:13",
|
||||
"declaring_type": 0,
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["3:8-3:9"]
|
||||
}, {
|
||||
"id": 2,
|
||||
@ -62,6 +64,7 @@ OUTPUT:
|
||||
"definition_extent": "6:1-6:6",
|
||||
"variable_type": 0,
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["6:5-6:6", "9:3-9:4"]
|
||||
}]
|
||||
}
|
||||
|
@ -38,6 +38,7 @@ OUTPUT:
|
||||
"definition_spelling": "1:9-1:19",
|
||||
"definition_extent": "1:9-1:24",
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["1:9-1:19", "6:3-6:13"]
|
||||
}]
|
||||
}
|
||||
|
@ -43,6 +43,7 @@ OUTPUT:
|
||||
"definition_spelling": "6:8-6:9",
|
||||
"definition_extent": "6:3-6:17",
|
||||
"is_local": true,
|
||||
"is_macro": false,
|
||||
"uses": ["6:8-6:9"]
|
||||
}]
|
||||
}
|
||||
|
@ -49,6 +49,7 @@ OUTPUT:
|
||||
"definition_spelling": "6:8-6:9",
|
||||
"definition_extent": "6:3-6:22",
|
||||
"is_local": true,
|
||||
"is_macro": false,
|
||||
"uses": ["6:8-6:9"]
|
||||
}]
|
||||
}
|
||||
|
@ -51,6 +51,7 @@ OUTPUT:
|
||||
"definition_extent": "6:3-6:19",
|
||||
"variable_type": 0,
|
||||
"is_local": true,
|
||||
"is_macro": false,
|
||||
"uses": ["6:8-6:9", "7:3-7:4"]
|
||||
}]
|
||||
}
|
||||
|
@ -37,6 +37,7 @@ OUTPUT:
|
||||
"definition_extent": "6:3-6:19",
|
||||
"declaring_type": 0,
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["6:7-6:8"]
|
||||
}]
|
||||
}
|
||||
|
@ -50,6 +50,7 @@ OUTPUT:
|
||||
"definition_extent": "6:3-6:19",
|
||||
"variable_type": 0,
|
||||
"is_local": true,
|
||||
"is_macro": false,
|
||||
"uses": ["6:8-6:9", "7:3-7:4"]
|
||||
}]
|
||||
}
|
||||
|
@ -44,6 +44,7 @@ OUTPUT:
|
||||
"definition_extent": "6:1-6:27",
|
||||
"variable_type": 0,
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["6:25-6:27"]
|
||||
}, {
|
||||
"id": 1,
|
||||
@ -54,6 +55,7 @@ OUTPUT:
|
||||
"definition_extent": "7:1-7:24",
|
||||
"variable_type": 0,
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["7:22-7:24"]
|
||||
}, {
|
||||
"id": 2,
|
||||
@ -64,6 +66,7 @@ OUTPUT:
|
||||
"definition_extent": "10:3-10:23",
|
||||
"variable_type": 0,
|
||||
"is_local": true,
|
||||
"is_macro": false,
|
||||
"uses": ["10:18-10:23"]
|
||||
}]
|
||||
}
|
||||
|
@ -148,6 +148,7 @@ OUTPUT:
|
||||
"declaration": "15:43-15:44",
|
||||
"variable_type": 0,
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["15:43-15:44"]
|
||||
}, {
|
||||
"id": 1,
|
||||
@ -158,6 +159,7 @@ OUTPUT:
|
||||
"definition_extent": "54:3-54:44",
|
||||
"variable_type": 0,
|
||||
"is_local": true,
|
||||
"is_macro": false,
|
||||
"uses": ["54:39-54:44"]
|
||||
}]
|
||||
}
|
||||
|
@ -31,6 +31,7 @@ OUTPUT:
|
||||
"definition_extent": "6:1-6:25",
|
||||
"variable_type": 0,
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["6:22-6:25"]
|
||||
}]
|
||||
}
|
||||
|
@ -22,6 +22,7 @@ OUTPUT:
|
||||
"declaration": "3:10-3:11",
|
||||
"variable_type": 0,
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["3:10-3:11"]
|
||||
}]
|
||||
}
|
||||
|
@ -43,6 +43,7 @@ OUTPUT:
|
||||
"variable_type": 0,
|
||||
"declaring_type": 2,
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["5:16-5:17"]
|
||||
}, {
|
||||
"id": 1,
|
||||
@ -54,6 +55,7 @@ OUTPUT:
|
||||
"variable_type": 1,
|
||||
"declaring_type": 2,
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["6:19-6:20"]
|
||||
}]
|
||||
}
|
||||
|
@ -41,6 +41,7 @@ OUTPUT:
|
||||
"definition_extent": "5:3-5:17",
|
||||
"variable_type": 0,
|
||||
"is_local": true,
|
||||
"is_macro": false,
|
||||
"uses": ["5:16-5:17"]
|
||||
}, {
|
||||
"id": 1,
|
||||
@ -51,6 +52,7 @@ OUTPUT:
|
||||
"definition_extent": "6:3-6:20",
|
||||
"variable_type": 1,
|
||||
"is_local": true,
|
||||
"is_macro": false,
|
||||
"uses": ["6:19-6:20"]
|
||||
}]
|
||||
}
|
||||
|
@ -38,6 +38,7 @@ OUTPUT:
|
||||
"definition_extent": "4:10-4:24",
|
||||
"variable_type": 0,
|
||||
"is_local": true,
|
||||
"is_macro": false,
|
||||
"uses": ["4:23-4:24"]
|
||||
}, {
|
||||
"id": 1,
|
||||
@ -48,6 +49,7 @@ OUTPUT:
|
||||
"definition_extent": "4:26-4:43",
|
||||
"variable_type": 1,
|
||||
"is_local": true,
|
||||
"is_macro": false,
|
||||
"uses": ["4:42-4:43"]
|
||||
}]
|
||||
}
|
||||
|
@ -40,6 +40,7 @@ OUTPUT:
|
||||
"definition_extent": "4:10-4:16",
|
||||
"variable_type": 0,
|
||||
"is_local": true,
|
||||
"is_macro": false,
|
||||
"uses": ["4:15-4:16"]
|
||||
}]
|
||||
}
|
||||
|
@ -36,6 +36,7 @@ OUTPUT:
|
||||
"definition_extent": "3:10-3:18",
|
||||
"variable_type": 0,
|
||||
"is_local": true,
|
||||
"is_macro": false,
|
||||
"uses": ["3:16-3:18"]
|
||||
}, {
|
||||
"id": 1,
|
||||
@ -46,6 +47,7 @@ OUTPUT:
|
||||
"definition_extent": "3:20-3:34",
|
||||
"variable_type": 0,
|
||||
"is_local": true,
|
||||
"is_macro": false,
|
||||
"uses": ["3:32-3:34"]
|
||||
}, {
|
||||
"id": 2,
|
||||
@ -56,6 +58,7 @@ OUTPUT:
|
||||
"definition_extent": "4:3-4:10",
|
||||
"variable_type": 0,
|
||||
"is_local": true,
|
||||
"is_macro": false,
|
||||
"uses": ["4:8-4:10"]
|
||||
}, {
|
||||
"id": 3,
|
||||
@ -66,6 +69,7 @@ OUTPUT:
|
||||
"definition_extent": "5:3-5:11",
|
||||
"variable_type": 0,
|
||||
"is_local": true,
|
||||
"is_macro": false,
|
||||
"uses": ["5:9-5:11"]
|
||||
}, {
|
||||
"id": 4,
|
||||
@ -76,6 +80,7 @@ OUTPUT:
|
||||
"definition_extent": "6:3-6:17",
|
||||
"variable_type": 0,
|
||||
"is_local": true,
|
||||
"is_macro": false,
|
||||
"uses": ["6:15-6:17"]
|
||||
}, {
|
||||
"id": 5,
|
||||
@ -86,6 +91,7 @@ OUTPUT:
|
||||
"definition_extent": "7:3-7:23",
|
||||
"variable_type": 0,
|
||||
"is_local": true,
|
||||
"is_macro": false,
|
||||
"uses": ["7:21-7:23"]
|
||||
}]
|
||||
}
|
||||
|
@ -18,6 +18,7 @@ OUTPUT:
|
||||
"definition_extent": "2:1-2:14",
|
||||
"variable_type": 0,
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["2:13-2:14"]
|
||||
}]
|
||||
}
|
||||
|
@ -46,6 +46,7 @@ OUTPUT:
|
||||
"definition_extent": "6:3-6:8",
|
||||
"variable_type": 0,
|
||||
"is_local": true,
|
||||
"is_macro": false,
|
||||
"uses": ["6:7-6:8"]
|
||||
}, {
|
||||
"id": 1,
|
||||
@ -55,6 +56,7 @@ OUTPUT:
|
||||
"declaration": "10:12-10:15",
|
||||
"variable_type": 0,
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["10:12-10:15"]
|
||||
}]
|
||||
}
|
||||
|
@ -69,6 +69,7 @@ OUTPUT:
|
||||
"definition_extent": "10:1-10:24",
|
||||
"declaring_type": 0,
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["6:14-6:24", "10:10-10:20", "14:45-14:55"]
|
||||
}, {
|
||||
"id": 1,
|
||||
@ -79,6 +80,7 @@ OUTPUT:
|
||||
"definition_extent": "7:3-7:16",
|
||||
"declaring_type": 0,
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["7:7-7:16", "14:28-14:37"]
|
||||
}, {
|
||||
"id": 2,
|
||||
@ -88,6 +90,7 @@ OUTPUT:
|
||||
"definition_spelling": "13:7-13:8",
|
||||
"definition_extent": "13:3-13:12",
|
||||
"is_local": true,
|
||||
"is_macro": false,
|
||||
"uses": ["13:7-13:8", "14:10-14:11"]
|
||||
}]
|
||||
}
|
||||
|
@ -35,6 +35,7 @@ OUTPUT:
|
||||
"definition_spelling": "4:8-4:9",
|
||||
"definition_extent": "4:3-4:19",
|
||||
"is_local": true,
|
||||
"is_macro": false,
|
||||
"uses": ["4:8-4:9", "5:3-5:4"]
|
||||
}]
|
||||
}
|
||||
|
@ -73,6 +73,7 @@ OUTPUT:
|
||||
"definition_extent": "3:3-3:8",
|
||||
"declaring_type": 0,
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["3:7-3:8", "12:5-12:6", "13:5-13:6", "14:12-14:13", "15:12-15:13", "16:13-16:14"]
|
||||
}, {
|
||||
"id": 1,
|
||||
@ -83,6 +84,7 @@ OUTPUT:
|
||||
"definition_extent": "4:3-4:8",
|
||||
"declaring_type": 0,
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["4:7-4:8", "17:12-17:13"]
|
||||
}, {
|
||||
"id": 2,
|
||||
@ -93,6 +95,7 @@ OUTPUT:
|
||||
"definition_extent": "11:3-11:8",
|
||||
"variable_type": 0,
|
||||
"is_local": true,
|
||||
"is_macro": false,
|
||||
"uses": ["11:7-11:8", "12:3-12:4", "13:3-13:4", "14:10-14:11", "15:10-15:11", "16:11-16:12", "17:10-17:11"]
|
||||
}]
|
||||
}
|
||||
|
@ -48,6 +48,7 @@ OUTPUT:
|
||||
"detailed_name": "int Foo::x",
|
||||
"declaration": "2:14-2:15",
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["2:14-2:15", "8:15-8:16"]
|
||||
}]
|
||||
}
|
||||
|
@ -40,6 +40,7 @@ OUTPUT:
|
||||
"variable_type": 0,
|
||||
"declaring_type": 1,
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["4:28-4:38", "7:23-7:33"]
|
||||
}]
|
||||
}
|
||||
|
@ -21,6 +21,7 @@ OUTPUT:
|
||||
"detailed_name": "int a",
|
||||
"declaration": "1:12-1:13",
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["1:12-1:13", "4:3-4:4"]
|
||||
}]
|
||||
}
|
||||
|
@ -20,6 +20,7 @@ OUTPUT:
|
||||
"definition_spelling": "1:14-1:15",
|
||||
"definition_extent": "1:10-1:15",
|
||||
"is_local": true,
|
||||
"is_macro": false,
|
||||
"uses": ["1:14-1:15", "2:3-2:4"]
|
||||
}]
|
||||
}
|
||||
|
@ -21,6 +21,7 @@ OUTPUT:
|
||||
"definition_spelling": "2:7-2:8",
|
||||
"definition_extent": "2:3-2:8",
|
||||
"is_local": true,
|
||||
"is_macro": false,
|
||||
"uses": ["2:7-2:8", "3:3-3:4"]
|
||||
}]
|
||||
}
|
||||
|
@ -26,6 +26,7 @@ OUTPUT:
|
||||
"definition_spelling": "2:7-2:8",
|
||||
"definition_extent": "2:3-2:8",
|
||||
"is_local": true,
|
||||
"is_macro": false,
|
||||
"uses": ["2:7-2:8", "3:3-3:4", "8:3-8:4"]
|
||||
}, {
|
||||
"id": 1,
|
||||
@ -35,6 +36,7 @@ OUTPUT:
|
||||
"definition_spelling": "5:9-5:10",
|
||||
"definition_extent": "5:5-5:10",
|
||||
"is_local": true,
|
||||
"is_macro": false,
|
||||
"uses": ["5:9-5:10", "6:5-6:6"]
|
||||
}]
|
||||
}
|
||||
|
@ -26,6 +26,7 @@ OUTPUT:
|
||||
"definition_spelling": "1:14-1:15",
|
||||
"definition_extent": "1:10-1:15",
|
||||
"is_local": true,
|
||||
"is_macro": false,
|
||||
"uses": ["1:14-1:15", "2:3-2:4", "7:3-7:4"]
|
||||
}, {
|
||||
"id": 1,
|
||||
@ -35,6 +36,7 @@ OUTPUT:
|
||||
"definition_spelling": "4:9-4:10",
|
||||
"definition_extent": "4:5-4:10",
|
||||
"is_local": true,
|
||||
"is_macro": false,
|
||||
"uses": ["4:9-4:10", "5:5-5:6"]
|
||||
}]
|
||||
}
|
||||
|
@ -23,6 +23,7 @@ OUTPUT:
|
||||
"definition_spelling": "1:12-1:13",
|
||||
"definition_extent": "1:1-1:13",
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["1:12-1:13", "4:3-4:4"]
|
||||
}]
|
||||
}
|
||||
|
@ -25,6 +25,7 @@ OUTPUT:
|
||||
"variable_type": 0,
|
||||
"declaring_type": 0,
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["2:8-2:14"]
|
||||
}]
|
||||
}
|
||||
|
@ -28,6 +28,7 @@ OUTPUT:
|
||||
"variable_type": 0,
|
||||
"declaring_type": 0,
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["2:15-2:21", "4:11-4:17"]
|
||||
}]
|
||||
}
|
||||
|
@ -20,6 +20,7 @@ OUTPUT:
|
||||
"detailed_name": "int Foo::member",
|
||||
"declaration": "2:14-2:20",
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["2:14-2:20"]
|
||||
}]
|
||||
}
|
||||
|
@ -34,6 +34,7 @@ OUTPUT:
|
||||
"definition_extent": "3:3-3:21",
|
||||
"variable_type": 0,
|
||||
"is_local": true,
|
||||
"is_macro": false,
|
||||
"uses": ["3:8-3:9"]
|
||||
}, {
|
||||
"id": 1,
|
||||
@ -44,6 +45,7 @@ OUTPUT:
|
||||
"definition_extent": "4:3-4:22",
|
||||
"variable_type": 0,
|
||||
"is_local": true,
|
||||
"is_macro": false,
|
||||
"uses": ["4:9-4:10"]
|
||||
}]
|
||||
}
|
||||
|
@ -30,6 +30,7 @@ OUTPUT:
|
||||
"definition_extent": "4:3-4:9",
|
||||
"variable_type": 0,
|
||||
"is_local": true,
|
||||
"is_macro": false,
|
||||
"uses": ["4:8-4:9"]
|
||||
}]
|
||||
}
|
||||
|
@ -28,6 +28,7 @@ OUTPUT:
|
||||
"definition_extent": "3:10-3:17",
|
||||
"variable_type": 0,
|
||||
"is_local": true,
|
||||
"is_macro": false,
|
||||
"uses": ["3:15-3:17"]
|
||||
}, {
|
||||
"id": 1,
|
||||
@ -38,6 +39,7 @@ OUTPUT:
|
||||
"definition_extent": "3:19-3:26",
|
||||
"variable_type": 0,
|
||||
"is_local": true,
|
||||
"is_macro": false,
|
||||
"uses": ["3:24-3:26"]
|
||||
}]
|
||||
}
|
||||
|
@ -26,6 +26,7 @@ OUTPUT:
|
||||
"definition_spelling": "2:7-2:8",
|
||||
"definition_extent": "2:3-2:8",
|
||||
"is_local": true,
|
||||
"is_macro": false,
|
||||
"uses": ["2:7-2:8", "3:3-3:4", "8:3-8:4"]
|
||||
}, {
|
||||
"id": 1,
|
||||
@ -35,6 +36,7 @@ OUTPUT:
|
||||
"definition_spelling": "5:9-5:10",
|
||||
"definition_extent": "5:5-5:10",
|
||||
"is_local": true,
|
||||
"is_macro": false,
|
||||
"uses": ["5:9-5:10", "6:5-6:6"]
|
||||
}]
|
||||
}
|
||||
|
@ -20,6 +20,7 @@ OUTPUT:
|
||||
"definition_spelling": "1:14-1:15",
|
||||
"definition_extent": "1:10-1:15",
|
||||
"is_local": true,
|
||||
"is_macro": false,
|
||||
"uses": ["1:14-1:15"]
|
||||
}, {
|
||||
"id": 1,
|
||||
@ -29,6 +30,7 @@ OUTPUT:
|
||||
"definition_spelling": "2:7-2:8",
|
||||
"definition_extent": "2:3-2:8",
|
||||
"is_local": true,
|
||||
"is_macro": false,
|
||||
"uses": ["2:7-2:8"]
|
||||
}]
|
||||
}
|
||||
|
@ -10,6 +10,7 @@ OUTPUT:
|
||||
"definition_spelling": "1:12-1:18",
|
||||
"definition_extent": "1:1-1:22",
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["1:12-1:18"]
|
||||
}]
|
||||
}
|
||||
|
@ -9,6 +9,7 @@ OUTPUT:
|
||||
"detailed_name": "int global",
|
||||
"declaration": "1:12-1:18",
|
||||
"is_local": false,
|
||||
"is_macro": false,
|
||||
"uses": ["1:12-1:18"]
|
||||
}]
|
||||
}
|
||||
|
@ -45,6 +45,7 @@ OUTPUT:
|
||||
"definition_extent": "4:3-4:6",
|
||||
"variable_type": 1,
|
||||
"is_local": true,
|
||||
"is_macro": false,
|
||||
"uses": ["4:5-4:6"]
|
||||
}]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user