diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2017-01-08 23:21:35 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2017-01-08 23:21:35 +0000 |
commit | c900a4b13d5e4746201cb3c8f6229e5cad3b35d9 (patch) | |
tree | a8ff97656465f1c24265262b3453c1b5fab8b355 /tools/c-index-test | |
parent | 3a07c87d4dc20c8d6b02a1d6cf38a5d1eb245a7f (diff) |
[index] Introduce SymbolSubKind for reporting language-specific details.
Initially reports if a constructor symbol is a copy or move constructor.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@291409 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/c-index-test')
-rw-r--r-- | tools/c-index-test/core_main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/c-index-test/core_main.cpp b/tools/c-index-test/core_main.cpp index 8976d91349..0ab24fb6cc 100644 --- a/tools/c-index-test/core_main.cpp +++ b/tools/c-index-test/core_main.cpp @@ -166,6 +166,8 @@ static bool printSourceSymbols(ArrayRef<const char *> Args) { static void printSymbolInfo(SymbolInfo SymInfo, raw_ostream &OS) { OS << getSymbolKindString(SymInfo.Kind); + if (SymInfo.SubKind != SymbolSubKind::None) + OS << '/' << getSymbolSubKindString(SymInfo.SubKind); if (SymInfo.Properties) { OS << '('; printSymbolProperties(SymInfo.Properties, OS); |