Update index tests

This commit is contained in:
Jacob Dufault 2017-11-29 19:21:23 -08:00
parent aeab1a0b79
commit 29185c2fe3
9 changed files with 148 additions and 156 deletions

View File

@ -26,7 +26,6 @@ void caller22() {
/*
OUTPUT: make_functions.h
{
"dependencies": ["C:/Users/jacob/Desktop/cquery/tests/constructors/make_functions.cc"],
"types": [{
"id": 0,
"usr": "c:@S@Bar",
@ -83,9 +82,8 @@ OUTPUT: make_functions.cc
{
"includes": [{
"line": 1,
"resolved_path": "C:/Users/jacob/Desktop/cquery/tests/constructors/make_functions.h"
"resolved_path": "&make_functions.h"
}],
"dependencies": ["C:/Users/jacob/Desktop/cquery/tests/constructors/make_functions.h"],
"types": [{
"id": 0,
"usr": "c:make_functions.cc@41",

View File

@ -8,7 +8,6 @@ enum Foo {
OUTPUT: funky_enum.h
{
"dependencies": ["C:/Users/jacob/Desktop/cquery/tests/multi_file/funky_enum.cc"],
"types": [{
"id": 0,
"usr": "c:@E@Foo",
@ -56,9 +55,8 @@ OUTPUT: funky_enum.cc
{
"includes": [{
"line": 2,
"resolved_path": "C:/Users/jacob/Desktop/cquery/tests/multi_file/funky_enum.h"
"resolved_path": "&funky_enum.h"
}],
"dependencies": ["C:/Users/jacob/Desktop/cquery/tests/multi_file/funky_enum.h"],
"types": [{
"id": 0,
"usr": "c:@E@Foo",

View File

@ -7,7 +7,6 @@ void Impl() {
/*
OUTPUT: header.h
{
"dependencies": ["C:/Users/jacob/Desktop/cquery/tests/multi_file/impl.cc"],
"types": [{
"id": 0,
"usr": "c:@S@Base",
@ -123,9 +122,8 @@ OUTPUT: impl.cc
{
"includes": [{
"line": 1,
"resolved_path": "C:/Users/jacob/Desktop/cquery/tests/multi_file/header.h"
"resolved_path": "&header.h"
}],
"dependencies": ["C:/Users/jacob/Desktop/cquery/tests/multi_file/header.h"],
"funcs": [{
"id": 0,
"usr": "c:@F@Impl#",

View File

@ -7,7 +7,6 @@ void impl() {
/*
OUTPUT: simple_header.h
{
"dependencies": ["C:/Users/jacob/Desktop/cquery/tests/multi_file/simple_impl.cc"],
"funcs": [{
"id": 0,
"usr": "c:@F@header#",
@ -24,9 +23,8 @@ OUTPUT: simple_impl.cc
{
"includes": [{
"line": 1,
"resolved_path": "C:/Users/jacob/Desktop/cquery/tests/multi_file/simple_header.h"
"resolved_path": "&simple_header.h"
}],
"dependencies": ["C:/Users/jacob/Desktop/cquery/tests/multi_file/simple_header.h"],
"funcs": [{
"id": 0,
"usr": "c:@F@impl#",

View File

@ -5,7 +5,6 @@ void Buffer::CreateSharedBuffer() {}
/*
OUTPUT: static.h
{
"dependencies": ["C:/Users/jacob/Desktop/cquery/tests/multi_file/static.cc"],
"types": [{
"id": 0,
"usr": "c:@S@Buffer",
@ -33,9 +32,8 @@ OUTPUT: static.cc
{
"includes": [{
"line": 1,
"resolved_path": "C:/Users/jacob/Desktop/cquery/tests/multi_file/static.h"
"resolved_path": "&static.h"
}],
"dependencies": ["C:/Users/jacob/Desktop/cquery/tests/multi_file/static.h"],
"types": [{
"id": 0,
"usr": "c:@S@Buffer",

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -9,7 +9,6 @@ void Foo::Register(Manager* m) {
/*
OUTPUT: static_function_in_type.h
{
"dependencies": ["C:/Users/jacob/Desktop/cquery/tests/outline/static_function_in_type.cc"],
"types": [{
"id": 0,
"usr": "c:@N@ns@S@Manager",
@ -42,9 +41,8 @@ OUTPUT: static_function_in_type.cc
{
"includes": [{
"line": 1,
"resolved_path": "C:/Users/jacob/Desktop/cquery/tests/outline/static_function_in_type.h"
"resolved_path": "&static_function_in_type.h"
}],
"dependencies": ["C:/Users/jacob/Desktop/cquery/tests/outline/static_function_in_type.h"],
"types": [{
"id": 0,
"usr": "c:@N@ns@S@Foo",

File diff suppressed because one or more lines are too long