diff options
author | Ted Kremenek <kremenek@apple.com> | 2010-04-16 21:31:52 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2010-04-16 21:31:52 +0000 |
commit | 7afa85b8fa6b19b9a1f77e1f23af67851b22b295 (patch) | |
tree | f7984a003bf3fe337bcbd1222e2951f4fc5aa95b /clang/tools/c-index-test/c-index-test.c | |
parent | 69ed4d5249f46b5ba6284f04a39649ba482a400f (diff) | |
download | bcm5719-llvm-7afa85b8fa6b19b9a1f77e1f23af67851b22b295.tar.gz bcm5719-llvm-7afa85b8fa6b19b9a1f77e1f23af67851b22b295.zip |
Rework USR generation for symbols with no linkage. Many of the USRs are now shortened,
and we now include the file name that declares the symbol with no linkage in the USR.
USRs for such symbols are generated only in restructed cases, e.g., anonymous enum declarations,
typedefs, etc.
llvm-svn: 101542
Diffstat (limited to 'clang/tools/c-index-test/c-index-test.c')
-rw-r--r-- | clang/tools/c-index-test/c-index-test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/tools/c-index-test/c-index-test.c b/clang/tools/c-index-test/c-index-test.c index d7f3483ffbf..c15b69cb1c0 100644 --- a/clang/tools/c-index-test/c-index-test.c +++ b/clang/tools/c-index-test/c-index-test.c @@ -374,7 +374,7 @@ enum CXChildVisitResult USRVisitor(CXCursor C, CXCursor parent, CXString USR = clang_getCursorUSR(C); if (!clang_getCString(USR)) { clang_disposeString(USR); - return CXChildVisit_Continue; + return CXChildVisit_Recurse; } printf("// %s: %s %s", FileCheckPrefix, GetCursorSource(C), clang_getCString(USR)); |