/external/clang/lib/Sema/ |
H A D | AttributeList.cpp | 112 StringRef AttrName = Name->getName(); local 115 if (AttrName.startswith("__") && AttrName.endswith("__") && 116 AttrName.size() >= 4) 117 AttrName = AttrName.substr(2, AttrName.size() - 4); 126 Buf += AttrName; 134 StringRef Name = AttrName->getName();
|
H A D | SemaDeclAttr.cpp | 239 StringRef AttrName, 258 std::string Name = std::string("'") + AttrName.str() + std::string("'"); 267 << AttrName << AttrArgNum << IdxExpr->getSourceRange(); 275 << AttrName << IdxExpr->getSourceRange(); 4162 StringRef AttrName = Attr.getName()->getName(); local 4184 if (!checkFunctionOrMethodArgumentIndex(S, D, AttrName, 4190 if (!checkFunctionOrMethodArgumentIndex(S, D, AttrName, 4195 bool IsPointer = (AttrName == "pointer_with_type_tag"); 238 checkFunctionOrMethodArgumentIndex(Sema &S, const Decl *D, StringRef AttrName, SourceLocation AttrLoc, unsigned AttrArgNum, const Expr *IdxExpr, uint64_t &Idx) argument
|
/external/clang/test/Index/ |
H A D | recursive-cxx-member-calls.cpp | 101 llvm::StringRef AttrName = Name->getName(); local 102 if (AttrName.startswith("__") && AttrName.endswith("__")) 103 AttrName = AttrName.substr(2, AttrName.size() - 4); 105 return llvm::StringSwitch < AttributeList::Kind > (AttrName) 909 // CHECK-tokens: Punctuation: "::" [101:7 - 101:9] VarDecl=AttrName:101:19 (Definition) 911 // CHECK-tokens: Identifier: "AttrName" [101:19 - 101:27] VarDecl=AttrName [all...] |
/external/clang/utils/TableGen/ |
H A D | ClangAttrEmitter.cpp | 73 static StringRef NormalizeAttrName(StringRef AttrName) { argument 74 if (AttrName.startswith("__")) 75 AttrName = AttrName.substr(2, AttrName.size()); 77 if (AttrName.endswith("__")) 78 AttrName = AttrName.substr(0, AttrName.size() - 2); 80 return AttrName; 1427 std::string AttrName = (*I)->getValueAsString("Name"); local 1434 StringRef AttrName = Attr.getName(); local 1436 OS << "PARSED_ATTR(" << AttrName << ")\\n"; local 1462 StringRef AttrName = NormalizeAttrName(DistinctSpellings local [all...] |
/external/clang/lib/Parse/ |
H A D | ParseDecl.cpp | 140 IdentifierInfo *AttrName = Tok.getIdentifierInfo(); local 145 if (LateAttrs && isAttributeLateParsed(*AttrName)) { 147 new LateParsedAttribute(this, *AttrName, AttrNameLoc); 163 ParseGNUAttributeArgs(AttrName, AttrNameLoc, attrs, endLoc, 167 attrs.addNew(AttrName, AttrNameLoc, 0, AttrNameLoc, 191 void Parser::ParseGNUAttributeArgs(IdentifierInfo *AttrName, argument 202 if (AttrName->isStr("availability")) { 203 ParseAvailabilityAttribute(*AttrName, AttrNameLoc, Attrs, EndLoc); 208 if (IsThreadSafetyAttribute(AttrName->getName())) { 209 ParseThreadSafetyAttribute(*AttrName, AttrNameLo 339 ParseMicrosoftDeclSpecWithSingleArg(IdentifierInfo *AttrName, SourceLocation AttrNameLoc, ParsedAttributes &Attrs) argument 568 IdentifierInfo *AttrName; local 607 IdentifierInfo *AttrName = Tok.getIdentifierInfo(); local 617 IdentifierInfo *AttrName = Tok.getIdentifierInfo(); local 627 IdentifierInfo *AttrName = Tok.getIdentifierInfo(); local 1121 IsThreadSafetyAttribute(StringRef AttrName) argument 1156 ParseThreadSafetyAttribute(IdentifierInfo &AttrName, SourceLocation AttrNameLoc, ParsedAttributes &Attrs, SourceLocation *EndLoc) argument 1192 ParseTypeTagForDatatypeAttribute(IdentifierInfo &AttrName, SourceLocation AttrNameLoc, ParsedAttributes &Attrs, SourceLocation *EndLoc) argument 2739 IdentifierInfo *AttrName = Tok.getIdentifierInfo(); local [all...] |
H A D | ParseDeclCXX.cpp | 983 IdentifierInfo *AttrName = Tok.getIdentifierInfo(); local 985 attrs.addNew(AttrName, AttrNameLoc, 0, AttrNameLoc, 0, 3114 static bool IsBuiltInOrStandardCXX11Attribute(IdentifierInfo *AttrName, argument 3116 switch (AttributeList::getKind(AttrName, ScopeName, 3193 IdentifierInfo *ScopeName = 0, *AttrName = 0; local 3195 AttrName = TryParseCXX11AttributeIdentifier(AttrLoc); 3196 if (!AttrName) 3204 ScopeName = AttrName; 3207 AttrName = TryParseCXX11AttributeIdentifier(AttrLoc); 3208 if (!AttrName) { [all...] |
H A D | ParseObjc.cpp | 581 SourceLocation AttrName = ConsumeToken(); // consume last attribute name local 645 Diag(AttrName, diag::err_objc_expected_property_attr) << II;
|
/external/clang/include/clang/Sema/ |
H A D | AttributeList.h | 70 IdentifierInfo *AttrName; member in class:clang::AttributeList 187 : AttrName(attrName), ScopeName(scopeName), ParmName(parmName), 207 : AttrName(attrName), ScopeName(scopeName), ParmName(parmName), 227 : AttrName(attrName), ScopeName(scopeName), ParmName(argumentKindName), 245 : AttrName(attrName), ScopeName(scopeName), ParmName(parmName), 261 : AttrName(attrName), ScopeName(scopeName), ParmName(parmName), 283 IdentifierInfo *getName() const { return AttrName; }
|
/external/clang/include/clang/Parse/ |
H A D | Parser.h | 818 IdentifierInfo &AttrName; member in struct:clang::Parser::LateParsedAttribute 824 : Self(P), AttrName(Name), AttrNameLoc(Loc) {} 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/ |
H A D | CommentParser.cpp | 388 StringRef AttrName, 404 if (ActualName != AttrName) 407 "expected \"" << AttrName.str() << "\""; 384 HasHTMLStartTagAt(const Comment *C, size_t Idx, HTMLStartTagComment *&HST, StringRef TagName, StringRef AttrName, StringRef AttrValue) argument
|