diff options
| author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2016-11-11 23:49:55 +0000 |
|---|---|---|
| committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2016-11-11 23:49:55 +0000 |
| commit | db4698352ebc37659a7c3226017d0221df9cf323 (patch) | |
| tree | 734152766d0ea0ddfef57bc9c14bc1a5c4afd3ee /clang/tools | |
| parent | e0c75007353d176a607c1898b454a1a3390a3962 (diff) | |
| download | bcm5719-llvm-db4698352ebc37659a7c3226017d0221df9cf323.tar.gz bcm5719-llvm-db4698352ebc37659a7c3226017d0221df9cf323.zip | |
[index] Rename SymbolSubKind -> SymbolProperty, NFC.
This better reflects what it represents.
llvm-svn: 286680
Diffstat (limited to 'clang/tools')
| -rw-r--r-- | clang/tools/c-index-test/core_main.cpp | 4 | ||||
| -rw-r--r-- | clang/tools/libclang/CXIndexDataConsumer.cpp | 12 |
2 files changed, 8 insertions, 8 deletions
diff --git a/clang/tools/c-index-test/core_main.cpp b/clang/tools/c-index-test/core_main.cpp index 7b7acf07704..3e4052c93ef 100644 --- a/clang/tools/c-index-test/core_main.cpp +++ b/clang/tools/c-index-test/core_main.cpp @@ -167,9 +167,9 @@ static bool printSourceSymbols(ArrayRef<const char *> Args) { static void printSymbolInfo(SymbolInfo SymInfo, raw_ostream &OS) { OS << getSymbolKindString(SymInfo.Kind); - if (SymInfo.SubKinds) { + if (SymInfo.Properties) { OS << '('; - printSymbolSubKinds(SymInfo.SubKinds, OS); + printSymbolProperties(SymInfo.Properties, OS); OS << ')'; } OS << '/' << getSymbolLanguageString(SymInfo.Lang); diff --git a/clang/tools/libclang/CXIndexDataConsumer.cpp b/clang/tools/libclang/CXIndexDataConsumer.cpp index 74d8f2415c6..45198dd1b16 100644 --- a/clang/tools/libclang/CXIndexDataConsumer.cpp +++ b/clang/tools/libclang/CXIndexDataConsumer.cpp @@ -1142,7 +1142,7 @@ void CXIndexDataConsumer::translateLoc(SourceLocation Loc, static CXIdxEntityKind getEntityKindFromSymbolKind(SymbolKind K, SymbolLanguage L); static CXIdxEntityCXXTemplateKind -getEntityKindFromSymbolSubKinds(SymbolSubKindSet K); +getEntityKindFromSymbolProperties(SymbolPropertySet K); static CXIdxEntityLanguage getEntityLangFromSymbolLang(SymbolLanguage L); void CXIndexDataConsumer::getEntityInfo(const NamedDecl *D, @@ -1158,7 +1158,7 @@ void CXIndexDataConsumer::getEntityInfo(const NamedDecl *D, SymbolInfo SymInfo = getSymbolInfo(D); EntityInfo.kind = getEntityKindFromSymbolKind(SymInfo.Kind, SymInfo.Lang); - EntityInfo.templateKind = getEntityKindFromSymbolSubKinds(SymInfo.SubKinds); + EntityInfo.templateKind = getEntityKindFromSymbolProperties(SymInfo.Properties); EntityInfo.lang = getEntityLangFromSymbolLang(SymInfo.Lang); if (D->hasAttrs()) { @@ -1298,12 +1298,12 @@ static CXIdxEntityKind getEntityKindFromSymbolKind(SymbolKind K, SymbolLanguage } static CXIdxEntityCXXTemplateKind -getEntityKindFromSymbolSubKinds(SymbolSubKindSet K) { - if (K & (unsigned)SymbolSubKind::TemplatePartialSpecialization) +getEntityKindFromSymbolProperties(SymbolPropertySet K) { + if (K & (unsigned)SymbolProperty::TemplatePartialSpecialization) return CXIdxEntity_TemplatePartialSpecialization; - if (K & (unsigned)SymbolSubKind::TemplateSpecialization) + if (K & (unsigned)SymbolProperty::TemplateSpecialization) return CXIdxEntity_TemplateSpecialization; - if (K & (unsigned)SymbolSubKind::Generic) + if (K & (unsigned)SymbolProperty::Generic) return CXIdxEntity_Template; return CXIdxEntity_NonTemplate; } |

