Home
last modified time | relevance | path

Searched refs:AttrName (Results 1 – 20 of 20) sorted by relevance

/external/clang/lib/Sema/
DAttributeList.cpp112 static StringRef normalizeAttrName(StringRef AttrName, StringRef ScopeName, in normalizeAttrName() argument
118 if (IsGNU && AttrName.size() >= 4 && AttrName.startswith("__") && in normalizeAttrName()
119 AttrName.endswith("__")) in normalizeAttrName()
120 AttrName = AttrName.slice(2, AttrName.size() - 2); in normalizeAttrName()
122 return AttrName; in normalizeAttrName()
128 StringRef AttrName = Name->getName(); in getKind() local
134 AttrName = normalizeAttrName(AttrName, FullName, SyntaxUsed); in getKind()
140 FullName += AttrName; in getKind()
149 StringRef Name = normalizeAttrName(AttrName->getName(), Scope, in getAttributeSpellingListIndex()
DSemaDeclAttr.cpp1370 static bool normalizeName(StringRef &AttrName) { in normalizeName() argument
1371 if (AttrName.size() > 4 && AttrName.startswith("__") && in normalizeName()
1372 AttrName.endswith("__")) { in normalizeName()
1373 AttrName = AttrName.drop_front(2).drop_back(2); in normalizeName()
5239 StringRef AttrName = Attr.getName()->getName(); in handleNoSanitizeSpecificAttr() local
5240 normalizeName(AttrName); in handleNoSanitizeSpecificAttr()
5242 llvm::StringSwitch<StringRef>(AttrName) in handleNoSanitizeSpecificAttr()
/external/clang/test/Index/
Drecursive-cxx-member-calls.cpp101 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/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/
DAMDGPUAnnotateKernelFeatures.cpp217 for (StringRef AttrName : AttrNames) in copyFeaturesToFunction() local
218 handleAttr(Parent, Callee, AttrName); in copyFeaturesToFunction()
252 StringRef AttrName = intrinsicToAttrName(IID, in addFeatureAttributes() local
254 if (!AttrName.empty() && (IsFunc || !NonKernelOnly)) { in addFeatureAttributes()
255 F.addFnAttr(AttrName); in addFeatureAttributes()
/external/clang/lib/Parse/
DParseDecl.cpp150 IdentifierInfo *AttrName = Tok.getIdentifierInfo(); in ParseGNUAttributes() local
151 if (!AttrName) in ParseGNUAttributes()
157 attrs.addNew(AttrName, AttrNameLoc, nullptr, AttrNameLoc, nullptr, 0, in ParseGNUAttributes()
163 if (!LateAttrs || !isAttributeLateParsed(*AttrName)) { in ParseGNUAttributes()
164 ParseGNUAttributeArgs(AttrName, AttrNameLoc, attrs, endLoc, nullptr, in ParseGNUAttributes()
171 new LateParsedAttribute(this, *AttrName, AttrNameLoc); in ParseGNUAttributes()
242 void Parser::ParseAttributeWithTypeArg(IdentifierInfo &AttrName, in ParseAttributeWithTypeArg() argument
263 Attrs.addNewTypeAttr(&AttrName, in ParseAttributeWithTypeArg()
267 Attrs.addNew(&AttrName, SourceRange(AttrNameLoc, Parens.getCloseLocation()), in ParseAttributeWithTypeArg()
272 IdentifierInfo *AttrName, SourceLocation AttrNameLoc, in ParseAttributeArgsCommon() argument
[all …]
DParseDeclCXX.cpp1071 IdentifierInfo *AttrName = Tok.getIdentifierInfo(); in ParseMicrosoftInheritanceClassAttributes() local
1073 attrs.addNew(AttrName, AttrNameLoc, nullptr, AttrNameLoc, nullptr, 0, in ParseMicrosoftInheritanceClassAttributes()
3648 static bool IsBuiltInOrStandardCXX11Attribute(IdentifierInfo *AttrName, in IsBuiltInOrStandardCXX11Attribute() argument
3650 switch (AttributeList::getKind(AttrName, ScopeName, in IsBuiltInOrStandardCXX11Attribute()
3658 return !ScopeName && AttrName->getName().equals("nodiscard"); in IsBuiltInOrStandardCXX11Attribute()
3660 return !ScopeName && AttrName->getName().equals("maybe_unused"); in IsBuiltInOrStandardCXX11Attribute()
3680 bool Parser::ParseCXX11AttributeArgs(IdentifierInfo *AttrName, in ParseCXX11AttributeArgs() argument
3691 if (!hasAttribute(AttrSyntax::CXX, ScopeName, AttrName, in ParseCXX11AttributeArgs()
3702 ParseGNUAttributeArgs(AttrName, AttrNameLoc, Attrs, EndLoc, ScopeName, in ParseCXX11AttributeArgs()
3706 ParseAttributeArgsCommon(AttrName, AttrNameLoc, Attrs, EndLoc, in ParseCXX11AttributeArgs()
[all …]
DParseObjc.cpp875 SourceLocation AttrName = ConsumeToken(); // consume last attribute name in ParseObjCPropertyAttribute() local
974 Diag(AttrName, diag::err_objc_expected_property_attr) << II; in ParseObjCPropertyAttribute()
2408 SourceLocation AttrName = ConsumeToken(); // consume attribute name in ParseObjCPropertyDynamic() local
2417 Diag(AttrName, diag::err_objc_expected_property_attr) << II; in ParseObjCPropertyDynamic()
/external/llvm/lib/Target/AMDGPU/
DAMDGPUAnnotateKernelFeatures.cpp30 void addAttrToCallers(Function *Intrin, StringRef AttrName);
142 StringRef AttrName) { in addAttrToCallers() argument
151 CallingFunction->addFnAttr(AttrName); in addAttrToCallers()
/external/clang/include/clang/Sema/
DAttributeList.h113 IdentifierInfo *AttrName;
241 : AttrName(attrName), ScopeName(scopeName), AttrRange(attrRange), in AttributeList()
261 : AttrName(attrName), ScopeName(scopeName), AttrRange(attrRange), in AttributeList()
281 : AttrName(attrName), ScopeName(scopeName), AttrRange(attrRange), in AttributeList()
298 : AttrName(attrName), ScopeName(scopeName), AttrRange(attrRange), in AttributeList()
316 : AttrName(attrName), ScopeName(scopeName), AttrRange(attrRange), in AttributeList()
330 : AttrName(attrName), ScopeName(scopeName), AttrRange(attrRange), in AttributeList()
351 IdentifierInfo *getName() const { return AttrName; } in getName()
/external/clang/utils/TableGen/
DClangAttrEmitter.cpp122 static StringRef NormalizeAttrName(StringRef AttrName) { in NormalizeAttrName() argument
123 if (AttrName.startswith("__")) in NormalizeAttrName()
124 AttrName = AttrName.substr(2, AttrName.size()); in NormalizeAttrName()
126 if (AttrName.endswith("__")) in NormalizeAttrName()
127 AttrName = AttrName.substr(0, AttrName.size() - 2); in NormalizeAttrName()
129 return AttrName; in NormalizeAttrName()
2523 static bool isArgVariadic(const Record &R, StringRef AttrName) { in isArgVariadic() argument
2524 return createArgument(R, AttrName)->isVariadic(); in isArgVariadic()
2994 std::string AttrName; in EmitClangAttrParsedAttrKinds() local
2997 AttrName = Attr.getValueAsString("ParseKind"); in EmitClangAttrParsedAttrKinds()
[all …]
/external/clang/include/clang/Parse/
DParser.h955 IdentifierInfo &AttrName; member
961 : Self(P), AttrName(Name), AttrNameLoc(Loc) {} in LateParsedAttribute()
2128 ParseAttributeArgsCommon(IdentifierInfo *AttrName, SourceLocation AttrNameLoc,
2152 void ParseGNUAttributeArgs(IdentifierInfo *AttrName,
2192 bool ParseCXX11AttributeArgs(IdentifierInfo *AttrName,
2215 bool ParseMicrosoftDeclSpecArgs(IdentifierInfo *AttrName,
2255 void ParseTypeTagForDatatypeAttribute(IdentifierInfo &AttrName,
2263 void ParseAttributeWithTypeArg(IdentifierInfo &AttrName,
/external/swiftshader/third_party/llvm-subzero/include/llvm/IR/
DAttributes.inc58 static Attribute::AttrKind getAttrKindFromName(StringRef AttrName) {
59 return StringSwitch<Attribute::AttrKind>(AttrName)
/external/swiftshader/third_party/llvm-subzero/build/Windows/include/llvm/IR/
DAttributes.gen58 static Attribute::AttrKind getAttrKindFromName(StringRef AttrName) {
59 return StringSwitch<Attribute::AttrKind>(AttrName)
/external/swiftshader/third_party/llvm-subzero/build/Fuchsia/include/llvm/IR/
DAttributes.gen58 static Attribute::AttrKind getAttrKindFromName(StringRef AttrName) {
59 return StringSwitch<Attribute::AttrKind>(AttrName)
/external/swiftshader/third_party/llvm-subzero/build/Linux/include/llvm/IR/
DAttributes.gen58 static Attribute::AttrKind getAttrKindFromName(StringRef AttrName) {
59 return StringSwitch<Attribute::AttrKind>(AttrName)
/external/swiftshader/third_party/llvm-subzero/build/MacOS/include/llvm/IR/
DAttributes.gen58 static Attribute::AttrKind getAttrKindFromName(StringRef AttrName) {
59 return StringSwitch<Attribute::AttrKind>(AttrName)
/external/swiftshader/third_party/llvm-subzero/build/Android/include/llvm/IR/
DAttributes.gen58 static Attribute::AttrKind getAttrKindFromName(StringRef AttrName) {
59 return StringSwitch<Attribute::AttrKind>(AttrName)
/external/swiftshader/third_party/llvm-7.0/configs/common/lib/IR/
DAttributesCompatFunc.inc64 static Attribute::AttrKind getAttrKindFromName(StringRef AttrName) {
65 return StringSwitch<Attribute::AttrKind>(AttrName)
/external/swiftshader/third_party/llvm-7.0/configs/common/include/llvm/IR/
DAttributes.inc64 static Attribute::AttrKind getAttrKindFromName(StringRef AttrName) {
65 return StringSwitch<Attribute::AttrKind>(AttrName)
/external/clang/unittests/AST/
DCommentParser.cpp388 StringRef AttrName, in HasHTMLStartTagAt() argument
404 if (ActualName != AttrName) in HasHTMLStartTagAt()
407 "expected \"" << AttrName.str() << "\""; in HasHTMLStartTagAt()