[clang] [clang] Update argument checking tablegen code to use a 'full' name (PR #99993)
Justin Bogner via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 23 09:56:06 PDT 2024
================
@@ -314,64 +314,92 @@ void Parser::ParseGNUAttributes(ParsedAttributes &Attrs,
}
/// Determine whether the given attribute has an identifier argument.
-static bool attributeHasIdentifierArg(const IdentifierInfo &II) {
+static bool attributeHasIdentifierArg(const IdentifierInfo &II,
+ ParsedAttr::Syntax Syntax,
+ IdentifierInfo *ScopeName) {
+ std::string FullName = AttributeCommonInfo::getNormalizedFullNameWithSyntax(
+ &II, ScopeName, Syntax);
#define CLANG_ATTR_IDENTIFIER_ARG_LIST
- return llvm::StringSwitch<bool>(normalizeAttrName(II.getName()))
+ return llvm::StringSwitch<bool>(FullName)
----------------
bogner wrote:
Can we remove `normalizeAttrName` since this looks like it replaces all of the uses?
https://github.com/llvm/llvm-project/pull/99993
More information about the cfe-commits
mailing list