]> granicus.if.org Git - clang/commitdiff
c-index-test: Add "none" filter, useful for performance testing.
authorDaniel Dunbar <daniel@zuster.org>
Wed, 10 Feb 2010 20:42:40 +0000 (20:42 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Wed, 10 Feb 2010 20:42:40 +0000 (20:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95800 91177308-0d34-0410-b5e6-96231b3b80d8

tools/c-index-test/c-index-test.c

index 423fa9343af10c103cc0583c160b9a508a4f040a..26df528ca651480ae804f45e1d46020f94bc4a7d 100644 (file)
@@ -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;