commit | 5641111e3fedf70e032e096d5aa40e6734e9cecf | [log] [tgz] |
---|---|---|
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | Sun Jul 05 22:22:35 2009 +0000 |
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | Sun Jul 05 22:22:35 2009 +0000 |
tree | 5c17a2b4eeb50ec4661f4051f95bf463cb491d51 | |
parent | fe37cc831b186f3327b2bcfba9c30e579392b363 [diff] [blame] |
Make use of the Index library through the index-test tool. 'index-test' is now able to provide additional info for a Decl, through multiple AST files: -Find declarations -Find definitions -Find references llvm-svn: 74803
diff --git a/clang/test/Index/t2.c b/clang/test/Index/t2.c new file mode 100644 index 0000000..8e405cc --- /dev/null +++ b/clang/test/Index/t2.c
@@ -0,0 +1,8 @@ +#include "foo.h" + +int global_var = 10; + +void bar_func(void) { + global_var += 100; + foo_func(global_var); +}