summaryrefslogtreecommitdiffstats
path: root/clang/tools/c-index-test/c-index-test.c
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-02-10 20:42:40 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-02-10 20:42:40 +0000
commitd64ce7b611eb08549a7db7cd9ce21497d6a06e6e (patch)
treed8d4bc495991a22ad8696d7f8af8ceaaca420eb2 /clang/tools/c-index-test/c-index-test.c
parentc42c5243a1b83f40f50e72d2eec747f995889fba (diff)
downloadbcm5719-llvm-d64ce7b611eb08549a7db7cd9ce21497d6a06e6e.tar.gz
bcm5719-llvm-d64ce7b611eb08549a7db7cd9ce21497d6a06e6e.zip
c-index-test: Add "none" filter, useful for performance testing.
llvm-svn: 95800
Diffstat (limited to 'clang/tools/c-index-test/c-index-test.c')
-rw-r--r--clang/tools/c-index-test/c-index-test.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/tools/c-index-test/c-index-test.c b/clang/tools/c-index-test/c-index-test.c
index 423fa9343af..26df528ca65 100644
--- a/clang/tools/c-index-test/c-index-test.c
+++ b/clang/tools/c-index-test/c-index-test.c
@@ -464,6 +464,7 @@ static int perform_test_load(CXIndex Idx, CXTranslationUnit TU,
/* Perform some simple filtering. */
if (!strcmp(filter, "all") || !strcmp(filter, "local")) ck = NULL;
+ else if (!strcmp(filter, "none")) K = (enum CXCursorKind) ~0;
else if (!strcmp(filter, "category")) K = CXCursor_ObjCCategoryDecl;
else if (!strcmp(filter, "interface")) K = CXCursor_ObjCInterfaceDecl;
else if (!strcmp(filter, "protocol")) K = CXCursor_ObjCProtocolDecl;
OpenPOWER on IntegriCloud