summaryrefslogtreecommitdiffstats
path: root/clang/tools/c-index-test
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-05-13 15:54:42 +0000
committerDouglas Gregor <dgregor@apple.com>2011-05-13 15:54:42 +0000
commita8d0c774dac02eddee023506eb466c6ec0ab2f4b (patch)
treef5d054a3f3af6fd8c74f89eaba0e7f8e986cd5d5 /clang/tools/c-index-test
parente53b7d1a11d180ed7b33190a837d8898ab2a0b71 (diff)
downloadbcm5719-llvm-a8d0c774dac02eddee023506eb466c6ec0ab2f4b.tar.gz
bcm5719-llvm-a8d0c774dac02eddee023506eb466c6ec0ab2f4b.zip
Add c-index-test printing and tests for static and virtual method
query functions, from Erik Verbruggen! llvm-svn: 131295
Diffstat (limited to 'clang/tools/c-index-test')
-rw-r--r--clang/tools/c-index-test/c-index-test.c5
1 files changed, 5 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 a5d4909e63c..837fc8929e5 100644
--- a/clang/tools/c-index-test/c-index-test.c
+++ b/clang/tools/c-index-test/c-index-test.c
@@ -221,6 +221,11 @@ static void PrintCursor(CXTranslationUnit TU, CXCursor Cursor) {
break;
}
+ if (clang_CXXMethod_isStatic(Cursor))
+ printf(" (static)");
+ if (clang_CXXMethod_isVirtual(Cursor))
+ printf(" (virtual)");
+
if (Cursor.kind == CXCursor_IBOutletCollectionAttr) {
CXType T =
clang_getCanonicalType(clang_getIBOutletCollectionType(Cursor));
OpenPOWER on IntegriCloud