3 #include "llvm/ADT/StringSwitch.h"
9 StringRef Name = Attr->
getName();
11 if (Name.size() >= 4 && Name.startswith(
"__") && Name.endswith(
"__"))
12 Name = Name.substr(2, Name.size() - 4);
14 #include "clang/Basic/AttrHasAttributeImpl.inc"
int hasAttribute(AttrSyntax Syntax, const IdentifierInfo *Scope, const IdentifierInfo *Attr, const llvm::Triple &T, const LangOptions &LangOpts)
Return the version number associated with the attribute if we recognize and implement the attribute s...
Keeps track of the various options that can be enabled, which controls the dialect of C or C++ that i...
StringRef getName() const
Return the actual identifier string.
Defines the clang::IdentifierInfo, clang::IdentifierTable, and clang::Selector interfaces.
Attr - This represents one attribute.