Lines Matching defs:Scope
35 const IdentifierInfo *Scope, const IdentifierInfo *Attr,
44 StringRef ScopeName = Scope ? Scope->getName() : "";
76 const IdentifierInfo *Scope, const IdentifierInfo *Attr,
78 return hasAttribute(Syntax, Scope, Attr, Target, LangOpts,
93 normalizeAttrScopeName(const IdentifierInfo *Scope,
95 if (!Scope)
100 StringRef ScopeName = Scope->getName();
141 const IdentifierInfo *Scope,
143 StringRef ScopeName = normalizeAttrScopeName(Scope, SyntaxUsed);
180 static AttributeCommonInfo::Scope
182 return llvm::StringSwitch<AttributeCommonInfo::Scope>(ScopeName)
183 .Case("", AttributeCommonInfo::Scope::NONE)
184 .Case("clang", AttributeCommonInfo::Scope::CLANG)
185 .Case("gnu", AttributeCommonInfo::Scope::GNU)
186 .Case("gsl", AttributeCommonInfo::Scope::GSL)
187 .Case("hlsl", AttributeCommonInfo::Scope::HLSL)
188 .Case("msvc", AttributeCommonInfo::Scope::MSVC)
189 .Case("omp", AttributeCommonInfo::Scope::OMP)
190 .Case("riscv", AttributeCommonInfo::Scope::RISCV);
200 AttributeCommonInfo::Scope ComputedScope =