aboutsummaryrefslogtreecommitdiff
path: root/tools/c-index-test/c-index-test.c
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2010-04-16 21:31:52 +0000
committerTed Kremenek <kremenek@apple.com>2010-04-16 21:31:52 +0000
commite74ef1289d5fff0a6ea573198bf354fa8cd84d51 (patch)
treee6f460a392a777df23ae272f5a0538c64d6ea24a /tools/c-index-test/c-index-test.c
parente8262048c6d911d209b61976d3fb4ed43f60835f (diff)
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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@101542 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/c-index-test/c-index-test.c')
-rw-r--r--tools/c-index-test/c-index-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/c-index-test/c-index-test.c b/tools/c-index-test/c-index-test.c
index d7f3483ffb..c15b69cb1c 100644
--- a/tools/c-index-test/c-index-test.c
+++ b/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));