/external/clang/lib/Sema/ |
D | AttributeList.cpp | 101 StringRef AttrName = Name->getName(); in getKind() local 104 if (AttrName.startswith("__") && AttrName.endswith("__") && in getKind() 105 AttrName.size() >= 4) in getKind() 106 AttrName = AttrName.substr(2, AttrName.size() - 4); in getKind() 108 return llvm::StringSwitch<AttributeList::Kind>(AttrName) in getKind()
|
D | SemaType.cpp | 3906 const char *AttrName) { in HandleNeonVectorTypeAttr() argument 3919 << AttrName << numEltsExpr->getSourceRange(); in HandleNeonVectorTypeAttr()
|
/external/clang/test/Index/ |
D | recursive-cxx-member-calls.cpp | 101 llvm::StringRef AttrName = Name->getName(); in getKind() local 102 if (AttrName.startswith("__") && AttrName.endswith("__")) in getKind() 103 AttrName = AttrName.substr(2, AttrName.size() - 4); in getKind() 105 return llvm::StringSwitch < AttributeList::Kind > (AttrName) in getKind()
|
/external/clang/utils/TableGen/ |
D | ClangAttrEmitter.cpp | 72 static StringRef NormalizeAttrName(StringRef AttrName) { in NormalizeAttrName() argument 73 if (AttrName.startswith("__")) in NormalizeAttrName() 74 AttrName = AttrName.substr(2, AttrName.size()); in NormalizeAttrName() 76 if (AttrName.endswith("__")) in NormalizeAttrName() 77 AttrName = AttrName.substr(0, AttrName.size() - 2); in NormalizeAttrName() 79 return AttrName; in NormalizeAttrName() 1049 StringRef AttrName = *I; in run() local 1051 AttrName = NormalizeAttrName(AttrName); in run() 1053 if (ProcessedAttrs.find(AttrName) != ProcessedAttrs.end()) in run() 1056 ProcessedAttrs.insert(AttrName); in run() [all …]
|
/external/clang/lib/Parse/ |
D | ParseDecl.cpp | 132 IdentifierInfo *AttrName = Tok.getIdentifierInfo(); in ParseGNUAttributes() local 137 if (LateAttrs && isAttributeLateParsed(*AttrName)) { in ParseGNUAttributes() 139 new LateParsedAttribute(this, *AttrName, AttrNameLoc); in ParseGNUAttributes() 155 ParseGNUAttributeArgs(AttrName, AttrNameLoc, attrs, endLoc); in ParseGNUAttributes() 158 attrs.addNew(AttrName, AttrNameLoc, 0, AttrNameLoc, in ParseGNUAttributes() 175 void Parser::ParseGNUAttributeArgs(IdentifierInfo *AttrName, in ParseGNUAttributeArgs() argument 183 if (AttrName->isStr("availability")) { in ParseGNUAttributeArgs() 184 ParseAvailabilityAttribute(*AttrName, AttrNameLoc, Attrs, EndLoc); in ParseGNUAttributeArgs() 189 if (IsThreadSafetyAttribute(AttrName->getName())) { in ParseGNUAttributeArgs() 190 ParseThreadSafetyAttribute(*AttrName, AttrNameLoc, Attrs, EndLoc); in ParseGNUAttributeArgs() [all …]
|
D | ParseDeclCXX.cpp | 2914 IdentifierInfo *ScopeName = 0, *AttrName = 0; in ParseCXX11AttributeSpecifier() local 2916 AttrName = TryParseCXX11AttributeIdentifier(AttrLoc); in ParseCXX11AttributeSpecifier() 2917 if (!AttrName) in ParseCXX11AttributeSpecifier() 2925 ScopeName = AttrName; in ParseCXX11AttributeSpecifier() 2928 AttrName = TryParseCXX11AttributeIdentifier(AttrLoc); in ParseCXX11AttributeSpecifier() 2929 if (!AttrName) { in ParseCXX11AttributeSpecifier() 2940 switch (AttributeList::getKind(AttrName)) { in ParseCXX11AttributeSpecifier() 2946 << AttrName->getName(); in ParseCXX11AttributeSpecifier() 2950 attrs.addNew(AttrName, AttrLoc, 0, AttrLoc, 0, in ParseCXX11AttributeSpecifier() 2971 << AttrName->getName(); in ParseCXX11AttributeSpecifier()
|
D | ParseObjc.cpp | 566 SourceLocation AttrName = ConsumeToken(); // consume last attribute name in ParseObjCPropertyAttribute() local 630 Diag(AttrName, diag::err_objc_expected_property_attr) << II; in ParseObjCPropertyAttribute()
|
/external/clang/include/clang/Sema/ |
D | AttributeList.h | 56 IdentifierInfo *AttrName; 127 : AttrName(attrName), ScopeName(scopeName), ParmName(parmName), in AttributeList() 146 : AttrName(attrName), ScopeName(scopeName), ParmName(parmName), in AttributeList() 181 IdentifierInfo *getName() const { return AttrName; } in getName()
|
/external/clang/include/clang/Parse/ |
D | Parser.h | 797 IdentifierInfo &AttrName; member 803 : Self(P), AttrName(Name), AttrNameLoc(Loc) {} in LateParsedAttribute() 1910 void ParseGNUAttributeArgs(IdentifierInfo *AttrName, 1964 bool IsThreadSafetyAttribute(llvm::StringRef AttrName); 1965 void ParseThreadSafetyAttribute(IdentifierInfo &AttrName,
|