summaryrefslogtreecommitdiff
path: root/tools/c-index-test/core_main.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2016-04-22 07:21:04 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2016-04-22 07:21:04 +0000
commita0cb91f335b5f60bc7b0e7e193c34e4d664368f0 (patch)
treedcf09d49138b2f659ee05acc3d5af76fd9073a99 /tools/c-index-test/core_main.cpp
parent23e8dcbd81759478c5856aedf000867f30c1753b (diff)
downloadclang-a0cb91f335b5f60bc7b0e7e193c34e4d664368f0.tar.gz
[index] Change SymbolCXXTemplateKind to a 'SymbolSubKinds' bitset.
This provides a more general and flexible way to annotate special symbols. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@267116 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/c-index-test/core_main.cpp')
-rw-r--r--tools/c-index-test/core_main.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/c-index-test/core_main.cpp b/tools/c-index-test/core_main.cpp
index 1881e31e20..b19c8cbba7 100644
--- a/tools/c-index-test/core_main.cpp
+++ b/tools/c-index-test/core_main.cpp
@@ -168,8 +168,9 @@ static bool printSourceSymbols(ArrayRef<const char *> Args) {
static void printSymbolInfo(SymbolInfo SymInfo, raw_ostream &OS) {
OS << getSymbolKindString(SymInfo.Kind);
- if (SymInfo.TemplateKind != SymbolCXXTemplateKind::NonTemplate) {
- OS << '-' << getTemplateKindStr(SymInfo.TemplateKind);
+ if (SymInfo.SubKinds) {
+ OS << '-';
+ printSymbolSubKinds(SymInfo.SubKinds, OS);
}
OS << '/' << getSymbolLanguageString(SymInfo.Lang);
}