Jacob Dufault
8 years ago
13 changed files with 87 additions and 78 deletions
@ -1,26 +1,33 @@ |
|||
struct Foo; |
|||
|
|||
void foo() { |
|||
int a; |
|||
Foo* a; |
|||
} |
|||
/*
|
|||
OUTPUT: |
|||
{ |
|||
"types": [{ |
|||
"id": 0 |
|||
"id": 0, |
|||
"usr": "c:@S@Foo", |
|||
"short_name": "Foo", |
|||
"qualified_name": "Foo", |
|||
"declaration": "tests/vars/function_local.cc:1:8", |
|||
"uses": ["tests/vars/function_local.cc:4:8"] |
|||
}], |
|||
"functions": [{ |
|||
"id": 0, |
|||
"usr": "c:@F@foo#", |
|||
"short_name": "foo", |
|||
"qualified_name": "foo", |
|||
"definition": "tests/vars/function_local.cc:1:6" |
|||
"definition": "tests/vars/function_local.cc:3:6" |
|||
}], |
|||
"variables": [{ |
|||
"id": 0, |
|||
"usr": "c:function_local.cc@16@F@foo#@a", |
|||
"usr": "c:function_local.cc@31@F@foo#@a", |
|||
"short_name": "a", |
|||
"qualified_name": "a", |
|||
"declaration": "tests/vars/function_local.cc:2:7", |
|||
"initializations": ["tests/vars/function_local.cc:2:7"], |
|||
"declaration": "tests/vars/function_local.cc:4:8", |
|||
"initializations": ["tests/vars/function_local.cc:4:8"], |
|||
"variable_type": 0 |
|||
}] |
|||
} |
|||
|
@ -1,32 +1,39 @@ |
|||
void foo(int p0, int p1) {} |
|||
struct Foo; |
|||
|
|||
void foo(Foo* p0, Foo* p1) {} |
|||
/*
|
|||
OUTPUT: |
|||
{ |
|||
"types": [{ |
|||
"id": 0 |
|||
"id": 0, |
|||
"usr": "c:@S@Foo", |
|||
"short_name": "Foo", |
|||
"qualified_name": "Foo", |
|||
"declaration": "tests/vars/function_param.cc:1:8", |
|||
"uses": ["tests/vars/function_param.cc:3:15", "tests/vars/function_param.cc:3:24"] |
|||
}], |
|||
"functions": [{ |
|||
"id": 0, |
|||
"usr": "c:@F@foo#I#I#", |
|||
"usr": "c:@F@foo#*$@S@Foo#S0_#", |
|||
"short_name": "foo", |
|||
"qualified_name": "foo", |
|||
"definition": "tests/vars/function_param.cc:1:6" |
|||
"definition": "tests/vars/function_param.cc:3:6" |
|||
}], |
|||
"variables": [{ |
|||
"id": 0, |
|||
"usr": "c:function_param.cc@9@F@foo#I#I#@p0", |
|||
"usr": "c:function_param.cc@24@F@foo#*$@S@Foo#S0_#@p0", |
|||
"short_name": "p0", |
|||
"qualified_name": "p0", |
|||
"declaration": "tests/vars/function_param.cc:1:14", |
|||
"initializations": ["tests/vars/function_param.cc:1:14"], |
|||
"declaration": "tests/vars/function_param.cc:3:15", |
|||
"initializations": ["tests/vars/function_param.cc:3:15"], |
|||
"variable_type": 0 |
|||
}, { |
|||
"id": 1, |
|||
"usr": "c:function_param.cc@17@F@foo#I#I#@p1", |
|||
"usr": "c:function_param.cc@33@F@foo#*$@S@Foo#S0_#@p1", |
|||
"short_name": "p1", |
|||
"qualified_name": "p1", |
|||
"declaration": "tests/vars/function_param.cc:1:22", |
|||
"initializations": ["tests/vars/function_param.cc:1:22"], |
|||
"declaration": "tests/vars/function_param.cc:3:24", |
|||
"initializations": ["tests/vars/function_param.cc:3:24"], |
|||
"variable_type": 0 |
|||
}] |
|||
} |
|||
|
Loading…
Reference in new issue