diff options
Diffstat (limited to 'clang/lib/Basic/Attributes.cpp')
| -rw-r--r-- | clang/lib/Basic/Attributes.cpp | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/clang/lib/Basic/Attributes.cpp b/clang/lib/Basic/Attributes.cpp index a39eb85f7e8f..867d241a2cf8 100644 --- a/clang/lib/Basic/Attributes.cpp +++ b/clang/lib/Basic/Attributes.cpp @@ -153,40 +153,6 @@ std::string AttributeCommonInfo::getNormalizedFullName() const { normalizeName(getAttrName(), getScopeName(), getSyntax())); } -static StringRef getSyntaxName(AttributeCommonInfo::Syntax SyntaxUsed) { - switch (SyntaxUsed) { - case AttributeCommonInfo::AS_GNU: - return "GNU"; - case AttributeCommonInfo::AS_CXX11: - return "CXX11"; - case AttributeCommonInfo::AS_C23: - return "C23"; - case AttributeCommonInfo::AS_Declspec: - return "Declspec"; - case AttributeCommonInfo::AS_Microsoft: - return "Microsoft"; - case AttributeCommonInfo::AS_Keyword: - return "Keyword"; - case AttributeCommonInfo::AS_Pragma: - return "Pragma"; - case AttributeCommonInfo::AS_ContextSensitiveKeyword: - return "ContextSensitiveKeyword"; - case AttributeCommonInfo::AS_HLSLAnnotation: - return "HLSLAnnotation"; - case AttributeCommonInfo::AS_Implicit: - return "Implicit"; - } - llvm_unreachable("Invalid attribute syntax"); -} - -std::string AttributeCommonInfo::normalizeFullNameWithSyntax( - const IdentifierInfo *Name, const IdentifierInfo *ScopeName, - Syntax SyntaxUsed) { - return (Twine(getSyntaxName(SyntaxUsed)) + - "::" + normalizeName(Name, ScopeName, SyntaxUsed)) - .str(); -} - unsigned AttributeCommonInfo::calculateAttributeSpellingListIndex() const { // Both variables will be used in tablegen generated // attribute spell list index matching code. |
