Searched refs:AttrName (Results 1 - 11 of 11) sorted by relevance

/external/clang/lib/Sema/
H A DAttributeList.cpp110 StringRef AttrName = Name->getName(); local
113 if (AttrName.startswith("__") && AttrName.endswith("__") &&
114 AttrName.size() >= 4)
115 AttrName = AttrName.substr(2, AttrName.size() - 4);
124 Buf += AttrName;
H A DSemaDeclAttr.cpp229 StringRef AttrName,
247 << AttrName << AttrArgNum << IdxExpr->getSourceRange();
254 << AttrName << AttrArgNum << IdxExpr->getSourceRange();
262 << AttrName << IdxExpr->getSourceRange();
3759 StringRef AttrName = Attr.getName()->getName(); local
3781 if (!checkFunctionOrMethodArgumentIndex(S, D, AttrName,
3787 if (!checkFunctionOrMethodArgumentIndex(S, D, AttrName,
3792 bool IsPointer = (AttrName == "pointer_with_type_tag");
3798 << AttrName;
228 checkFunctionOrMethodArgumentIndex(Sema &S, const Decl *D, StringRef AttrName, SourceLocation AttrLoc, unsigned AttrArgNum, const Expr *IdxExpr, uint64_t &Idx) argument
H A DSemaType.cpp4073 const char *AttrName) {
4086 << AttrName << numEltsExpr->getSourceRange();
4070 HandleNeonVectorTypeAttr(QualType& CurType, const AttributeList &Attr, Sema &S, VectorType::VectorKind VecKind, const char *AttrName) argument
/external/clang/test/Index/
H A Drecursive-cxx-member-calls.cpp101 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 DClangAttrEmitter.cpp73 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;
1101 std::string AttrName = (*I)->getValueAsString("Name"); local
1108 StringRef AttrName = Attr.getName(); local
1110 OS << "PARSED_ATTR(" << AttrName << ")\\n"; local
1137 StringRef AttrName = NormalizeAttrName(DistinctSpellings local
[all...]
/external/clang/lib/Parse/
H A DParseDecl.cpp134 IdentifierInfo *AttrName = Tok.getIdentifierInfo(); local
139 if (LateAttrs && isAttributeLateParsed(*AttrName)) {
141 new LateParsedAttribute(this, *AttrName, AttrNameLoc);
157 ParseGNUAttributeArgs(AttrName, AttrNameLoc, attrs, endLoc);
160 attrs.addNew(AttrName, AttrNameLoc, 0, AttrNameLoc,
177 void Parser::ParseGNUAttributeArgs(IdentifierInfo *AttrName, argument
185 if (AttrName->isStr("availability")) {
186 ParseAvailabilityAttribute(*AttrName, AttrNameLoc, Attrs, EndLoc);
191 if (IsThreadSafetyAttribute(AttrName->getName())) {
192 ParseThreadSafetyAttribute(*AttrName, AttrNameLo
291 ParseMicrosoftDeclSpecWithSingleArg(IdentifierInfo *AttrName, SourceLocation AttrNameLoc, ParsedAttributes &Attrs) argument
417 IdentifierInfo *AttrName; local
456 IdentifierInfo *AttrName = Tok.getIdentifierInfo(); local
466 IdentifierInfo *AttrName = Tok.getIdentifierInfo(); local
962 IsThreadSafetyAttribute(llvm::StringRef AttrName) argument
997 ParseThreadSafetyAttribute(IdentifierInfo &AttrName, SourceLocation AttrNameLoc, ParsedAttributes &Attrs, SourceLocation *EndLoc) argument
1032 ParseTypeTagForDatatypeAttribute(IdentifierInfo &AttrName, SourceLocation AttrNameLoc, ParsedAttributes &Attrs, SourceLocation *EndLoc) argument
2484 IdentifierInfo *AttrName = Tok.getIdentifierInfo(); local
[all...]
H A DParseDeclCXX.cpp922 IdentifierInfo *AttrName = Tok.getIdentifierInfo(); local
924 attrs.addNew(AttrName, AttrNameLoc, 0, AttrNameLoc, 0,
2913 IdentifierInfo *ScopeName = 0, *AttrName = 0; local
2915 AttrName = TryParseCXX11AttributeIdentifier(AttrLoc);
2916 if (!AttrName)
2924 ScopeName = AttrName;
2927 AttrName = TryParseCXX11AttributeIdentifier(AttrLoc);
2928 if (!AttrName) {
2936 switch (AttributeList::getKind(AttrName, ScopeName,
2946 << AttrName
[all...]
H A DParseObjc.cpp566 SourceLocation AttrName = ConsumeToken(); // consume last attribute name local
630 Diag(AttrName, diag::err_objc_expected_property_attr) << II;
/external/clang/include/clang/Sema/
H A DAttributeList.h67 IdentifierInfo *AttrName; member in class:clang::AttributeList
156 : AttrName(attrName), ScopeName(scopeName), ParmName(parmName),
175 : AttrName(attrName), ScopeName(scopeName), ParmName(parmName),
195 : AttrName(attrName), ScopeName(scopeName), ParmName(argumentKindName),
219 IdentifierInfo *getName() const { return AttrName; }
/external/clang/include/clang/Parse/
H A DParser.h801 IdentifierInfo &AttrName; member in struct:clang::Parser::LateParsedAttribute
807 : Self(P), AttrName(Name), AttrNameLoc(Loc) {}
1818 void ParseGNUAttributeArgs(IdentifierInfo *AttrName,
1865 void ParseMicrosoftDeclSpecWithSingleArg(IdentifierInfo *AttrName,
1880 bool IsThreadSafetyAttribute(llvm::StringRef AttrName);
1881 void ParseThreadSafetyAttribute(IdentifierInfo &AttrName,
1886 void ParseTypeTagForDatatypeAttribute(IdentifierInfo &AttrName,
/external/clang/unittests/AST/
H A DCommentParser.cpp387 StringRef AttrName,
403 if (ActualName != AttrName)
406 "expected \"" << AttrName.str() << "\"";
383 HasHTMLStartTagAt(const Comment *C, size_t Idx, HTMLStartTagComment *&HST, StringRef TagName, StringRef AttrName, StringRef AttrValue) argument

Completed in 1178 milliseconds