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/libclang/CXIndexDataConsumer.cpp | |
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/libclang/CXIndexDataConsumer.cpp')
-rw-r--r-- | clang/tools/libclang/CXIndexDataConsumer.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
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; } |