summaryrefslogtreecommitdiffstats
path: root/clang/tools/index-test/index-test.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2009-07-14 03:20:21 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2009-07-14 03:20:21 +0000
commit1506d9bc2580f0fa4a4b4e128c462864ae8aa9e1 (patch)
tree2a1bc026f2efe6a073b258b971b516bc44ebc601 /clang/tools/index-test/index-test.cpp
parent0736c5ca3b6d98d0b2d9df76e6e6c98c8ea45938 (diff)
downloadbcm5719-llvm-1506d9bc2580f0fa4a4b4e128c462864ae8aa9e1.tar.gz
bcm5719-llvm-1506d9bc2580f0fa4a4b4e128c462864ae8aa9e1.zip
Introduce redecl_iterator, used for iterating over the redeclarations of a FunctionDecl or VarDecl.
It iterates over all the redeclarations, regardless of the starting point. For example: 1) int f(); 2) int f(); 3) int f(); if you have the (2) FunctionDecl and call redecls_begin/redecls_end to iterate, you'll get this sequence: (2) (1) (3) The motivation to introduce this was that, previously, if (3) was a function definition, and you called getBody() at (2), it would not return it, since getBody() iterated over the previous declarations only, so it would only check (2) and (1). llvm-svn: 75604
Diffstat (limited to 'clang/tools/index-test/index-test.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud