From d403d7ad963898cfb1bd9d46220ab57359c3658e Mon Sep 17 00:00:00 2001 From: Jacob Dufault Date: Sun, 5 Mar 2017 14:16:56 -0800 Subject: [PATCH] misc --- full_tests/simple_cross_reference/b.cc | 6 ++++-- .../simple_cross_reference/compile_commands.json | 9 +++++++-- full_tests/simple_cross_reference/test.cc | 13 +++++++++++++ 3 files changed, 24 insertions(+), 4 deletions(-) create mode 100644 full_tests/simple_cross_reference/test.cc diff --git a/full_tests/simple_cross_reference/b.cc b/full_tests/simple_cross_reference/b.cc index 5895b608..d6a820fd 100644 --- a/full_tests/simple_cross_reference/b.cc +++ b/full_tests/simple_cross_reference/b.cc @@ -1,7 +1,9 @@ #include "a.h" #if RANDOM_DEFINE -static void LocaB() { +static void LocalB() { Common(); } -#endif // RANDOM_DEFINE \ No newline at end of file +#endif // RANDOM_DEFINE + +static void LocalC() {} \ No newline at end of file diff --git a/full_tests/simple_cross_reference/compile_commands.json b/full_tests/simple_cross_reference/compile_commands.json index 8a72ba83..0b8a04d8 100644 --- a/full_tests/simple_cross_reference/compile_commands.json +++ b/full_tests/simple_cross_reference/compile_commands.json @@ -2,11 +2,16 @@ { "directory" : "full_tests/simple_cross_reference", "command" : "clang -c -o a.o a.cc", - "file" : "full_tests/simple_cross_reference/a.cc" + "file" : "a.cc" }, { "directory" : "full_tests/simple_cross_reference", "command" : "clang -DRANDOM_DEFINE -c -o b.o b.cc", - "file" : "full_tests/simple_cross_reference/b.cc" + "file" : "b.cc" + }, + { + "directory" : "full_tests/simple_cross_reference", + "command" : "clang -DRANDOM_DEFINE -c -o b.o b.cc", + "file" : "test.cc" } ] \ No newline at end of file diff --git a/full_tests/simple_cross_reference/test.cc b/full_tests/simple_cross_reference/test.cc new file mode 100644 index 00000000..94e5ff8d --- /dev/null +++ b/full_tests/simple_cross_reference/test.cc @@ -0,0 +1,13 @@ +void foo() {} +void bar() {} + +void foobar(); + +void foobar(int a, int b) {}; + +class HelloWorld { + void method() {} +}; + +static void staticfoo() { +} \ No newline at end of file