diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-11-17 18:09:14 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-11-17 18:09:14 +0000 |
commit | f5d9c9340b1a5ecd6ab62b916600b6e19e69539f (patch) | |
tree | d49a8452c452f31ac2b1a0eb32fe48ca0ca8cf2c /test | |
parent | 4a2614e94672c47395abcde60518776fbebec589 (diff) |
Clean up c-index-test command line usage a bit by requiring a "-test-load-tu" option when testing clang_loadTranslationUnit(). Running c-index-test without the correct arguments now also prints a useful summary of its correct usage.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89115 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r-- | test/Index/c-index-api-test.m | 2 | ||||
-rw-r--r-- | test/Index/c-index-pch.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/test/Index/c-index-api-test.m b/test/Index/c-index-api-test.m index ada5236e75..b34aa35c52 100644 --- a/test/Index/c-index-api-test.m +++ b/test/Index/c-index-api-test.m @@ -1,5 +1,5 @@ // RUN: clang-cc -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -fblocks -emit-pch -x objective-c %s -o %t.ast -// RUN: c-index-test %t.ast all | FileCheck %s +// RUN: c-index-test -test-load-tu %t.ast all | FileCheck %s // CHECK: <invalid loc>:0:0: TypedefDecl=__int128_t:0:0 [Context=c-index-api-test.m] // CHECK: <invalid loc>:0:0: TypedefDecl=__uint128_t:0:0 [Context=c-index-api-test.m] diff --git a/test/Index/c-index-pch.c b/test/Index/c-index-pch.c index cbd078633c..1ce1085251 100644 --- a/test/Index/c-index-pch.c +++ b/test/Index/c-index-pch.c @@ -1,7 +1,7 @@ // RUN: clang-cc -emit-pch -x c -o %t.pch %S/Inputs/c-index-pch.h // RUN: clang-cc -include-pch %t.pch -x c -emit-pch -o %t.ast %s -// RUN: c-index-test %t.ast all | FileCheck -check-prefix=ALL %s -// RUN: c-index-test %t.ast local | FileCheck -check-prefix=LOCAL %s +// RUN: c-index-test -test-load-tu %t.ast all | FileCheck -check-prefix=ALL %s +// RUN: c-index-test -test-load-tu %t.ast local | FileCheck -check-prefix=LOCAL %s // ALL: FunctionDecl=foo // ALL: VarDecl=bar // ALL: FunctionDecl=wibble |