c-index-test: Add "none" filter, useful for performance testing.

llvm-svn: 95800
This commit is contained in:
Daniel Dunbar 2010-02-10 20:42:40 +00:00
parent c42c5243a1
commit d64ce7b611
1 changed files with 1 additions and 0 deletions

View 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;