/external/clang/lib/Sema/ |
D | AttributeList.cpp | 112 StringRef AttrName = Name->getName(); in getKind() local 115 if (AttrName.startswith("__") && AttrName.endswith("__") && in getKind() 116 AttrName.size() >= 4) in getKind() 117 AttrName = AttrName.substr(2, AttrName.size() - 4); in getKind() 126 Buf += AttrName; in getKind() 134 StringRef Name = AttrName->getName(); in getAttributeSpellingListIndex()
|
D | SemaDeclAttr.cpp | 239 StringRef AttrName, in checkFunctionOrMethodArgumentIndex() argument 258 std::string Name = std::string("'") + AttrName.str() + std::string("'"); in checkFunctionOrMethodArgumentIndex() 267 << AttrName << AttrArgNum << IdxExpr->getSourceRange(); in checkFunctionOrMethodArgumentIndex() 275 << AttrName << IdxExpr->getSourceRange(); in checkFunctionOrMethodArgumentIndex() 4162 StringRef AttrName = Attr.getName()->getName(); in handleArgumentWithTypeTagAttr() local 4184 if (!checkFunctionOrMethodArgumentIndex(S, D, AttrName, in handleArgumentWithTypeTagAttr() 4190 if (!checkFunctionOrMethodArgumentIndex(S, D, AttrName, in handleArgumentWithTypeTagAttr() 4195 bool IsPointer = (AttrName == "pointer_with_type_tag"); in handleArgumentWithTypeTagAttr()
|
/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 | 73 static StringRef NormalizeAttrName(StringRef AttrName) { in NormalizeAttrName() argument 74 if (AttrName.startswith("__")) in NormalizeAttrName() 75 AttrName = AttrName.substr(2, AttrName.size()); in NormalizeAttrName() 77 if (AttrName.endswith("__")) in NormalizeAttrName() 78 AttrName = AttrName.substr(0, AttrName.size() - 2); in NormalizeAttrName() 80 return AttrName; in NormalizeAttrName() 1427 std::string AttrName = (*I)->getValueAsString("Name"); in EmitClangAttrParsedAttrList() local 1429 StringRef Spelling = NormalizeAttrName(AttrName); in EmitClangAttrParsedAttrList() 1434 StringRef AttrName = Attr.getName(); in EmitClangAttrParsedAttrList() local 1435 AttrName = NormalizeAttrName(AttrName); in EmitClangAttrParsedAttrList() [all …]
|
/external/clang/lib/Parse/ |
D | ParseDecl.cpp | 140 IdentifierInfo *AttrName = Tok.getIdentifierInfo(); in ParseGNUAttributes() local 145 if (LateAttrs && isAttributeLateParsed(*AttrName)) { in ParseGNUAttributes() 147 new LateParsedAttribute(this, *AttrName, AttrNameLoc); in ParseGNUAttributes() 163 ParseGNUAttributeArgs(AttrName, AttrNameLoc, attrs, endLoc, in ParseGNUAttributes() 167 attrs.addNew(AttrName, AttrNameLoc, 0, AttrNameLoc, in ParseGNUAttributes() 191 void Parser::ParseGNUAttributeArgs(IdentifierInfo *AttrName, in ParseGNUAttributeArgs() argument 202 if (AttrName->isStr("availability")) { in ParseGNUAttributeArgs() 203 ParseAvailabilityAttribute(*AttrName, AttrNameLoc, Attrs, EndLoc); in ParseGNUAttributeArgs() 208 if (IsThreadSafetyAttribute(AttrName->getName())) { in ParseGNUAttributeArgs() 209 ParseThreadSafetyAttribute(*AttrName, AttrNameLoc, Attrs, EndLoc); in ParseGNUAttributeArgs() [all …]
|
D | ParseDeclCXX.cpp | 983 IdentifierInfo *AttrName = Tok.getIdentifierInfo(); in ParseMicrosoftInheritanceClassAttributes() local 985 attrs.addNew(AttrName, AttrNameLoc, 0, AttrNameLoc, 0, in ParseMicrosoftInheritanceClassAttributes() 3114 static bool IsBuiltInOrStandardCXX11Attribute(IdentifierInfo *AttrName, in IsBuiltInOrStandardCXX11Attribute() argument 3116 switch (AttributeList::getKind(AttrName, ScopeName, in IsBuiltInOrStandardCXX11Attribute() 3193 IdentifierInfo *ScopeName = 0, *AttrName = 0; in ParseCXX11AttributeSpecifier() local 3195 AttrName = TryParseCXX11AttributeIdentifier(AttrLoc); in ParseCXX11AttributeSpecifier() 3196 if (!AttrName) in ParseCXX11AttributeSpecifier() 3204 ScopeName = AttrName; in ParseCXX11AttributeSpecifier() 3207 AttrName = TryParseCXX11AttributeIdentifier(AttrLoc); in ParseCXX11AttributeSpecifier() 3208 if (!AttrName) { in ParseCXX11AttributeSpecifier() [all …]
|
D | ParseObjc.cpp | 581 SourceLocation AttrName = ConsumeToken(); // consume last attribute name in ParseObjCPropertyAttribute() local 645 Diag(AttrName, diag::err_objc_expected_property_attr) << II; in ParseObjCPropertyAttribute()
|
/external/clang/include/clang/Sema/ |
D | AttributeList.h | 70 IdentifierInfo *AttrName; 187 : AttrName(attrName), ScopeName(scopeName), ParmName(parmName), in AttributeList() 207 : AttrName(attrName), ScopeName(scopeName), ParmName(parmName), in AttributeList() 227 : AttrName(attrName), ScopeName(scopeName), ParmName(argumentKindName), in AttributeList() 245 : AttrName(attrName), ScopeName(scopeName), ParmName(parmName), in AttributeList() 261 : AttrName(attrName), ScopeName(scopeName), ParmName(parmName), in AttributeList() 283 IdentifierInfo *getName() const { return AttrName; } in getName()
|
/external/clang/include/clang/Parse/ |
D | Parser.h | 818 IdentifierInfo &AttrName; member 824 : Self(P), AttrName(Name), AttrNameLoc(Loc) {} in LateParsedAttribute() 1897 void ParseGNUAttributeArgs(IdentifierInfo *AttrName, 1948 void ParseMicrosoftDeclSpecWithSingleArg(IdentifierInfo *AttrName, 1963 bool IsThreadSafetyAttribute(StringRef AttrName); 1964 void ParseThreadSafetyAttribute(IdentifierInfo &AttrName, 1969 void ParseTypeTagForDatatypeAttribute(IdentifierInfo &AttrName,
|
/external/clang/unittests/AST/ |
D | CommentParser.cpp | 388 StringRef AttrName, in HasHTMLStartTagAt() argument 404 if (ActualName != AttrName) in HasHTMLStartTagAt() 407 "expected \"" << AttrName.str() << "\""; in HasHTMLStartTagAt()
|