• Home
  • Raw
  • Download

Lines Matching refs:SS

139                                       CXXScopeSpec &SS,  in isTemplateName()  argument
172 LookupTemplateName(R, S, SS, ObjectType, EnteringContext, in isTemplateName()
199 if (SS.isSet() && !SS.isInvalid()) { in isTemplateName()
200 NestedNameSpecifier *Qualifier = SS.getScopeRep(); in isTemplateName()
228 const CXXScopeSpec *SS, in DiagnoseUnknownTemplateName() argument
234 if (!SS || !SS->isSet() || !isDependentScopeSpecifier(*SS) || in DiagnoseUnknownTemplateName()
235 computeDeclContext(*SS)) in DiagnoseUnknownTemplateName()
240 NestedNameSpecifier *Qualifier = (NestedNameSpecifier*)SS->getScopeRep(); in DiagnoseUnknownTemplateName()
251 Scope *S, CXXScopeSpec &SS, in LookupTemplateName() argument
262 assert(!SS.isSet() && "ObjectType and scope specifier cannot coexist"); in LookupTemplateName()
274 } else if (SS.isSet()) { in LookupTemplateName()
277 LookupCtx = computeDeclContext(SS, EnteringContext); in LookupTemplateName()
278 isDependent = isDependentScopeSpecifier(SS); in LookupTemplateName()
281 if (LookupCtx && RequireCompleteDeclContext(SS, LookupCtx)) in LookupTemplateName()
331 Found.getLookupNameInfo(), Found.getLookupKind(), S, &SS, in LookupTemplateName()
344 << SS.getRange()); in LookupTemplateName()
411 Sema::ActOnDependentIdExpression(const CXXScopeSpec &SS, in ActOnDependentIdExpression() argument
442 /*Op*/ SourceLocation(), SS.getWithLocInContext(Context), TemplateKWLoc, in ActOnDependentIdExpression()
446 return BuildDependentDeclRefExpr(SS, TemplateKWLoc, NameInfo, TemplateArgs); in ActOnDependentIdExpression()
450 Sema::BuildDependentDeclRefExpr(const CXXScopeSpec &SS, in BuildDependentDeclRefExpr() argument
455 Context, SS.getWithLocInContext(Context), TemplateKWLoc, NameInfo, in BuildDependentDeclRefExpr()
842 static void SetNestedNameSpecifier(TagDecl *T, const CXXScopeSpec &SS) { in SetNestedNameSpecifier() argument
843 if (SS.isSet()) in SetNestedNameSpecifier()
844 T->setQualifierInfo(SS.getWithLocInContext(T->getASTContext())); in SetNestedNameSpecifier()
849 SourceLocation KWLoc, CXXScopeSpec &SS, in CheckClassTemplate() argument
881 (SS.isEmpty() && TUK == TUK_Friend) in CheckClassTemplate()
884 if (SS.isNotEmpty() && !SS.isInvalid()) { in CheckClassTemplate()
885 SemanticContext = computeDeclContext(SS, true); in CheckClassTemplate()
893 << SS.getScopeRep() << SS.getRange(); in CheckClassTemplate()
897 if (RequireCompleteDeclContext(SS, SemanticContext)) in CheckClassTemplate()
908 diagnoseQualifiedDeclaration(SS, SemanticContext, Name, NameLoc); in CheckClassTemplate()
966 if (!SS.isSet()) { in CheckClassTemplate()
999 S, SS.isValid())) in CheckClassTemplate()
1004 if (SS.isEmpty() && in CheckClassTemplate()
1086 (SS.isSet() && SemanticContext && SemanticContext->isRecord() && in CheckClassTemplate()
1093 if (SS.isSet()) { in CheckClassTemplate()
1096 if (!SS.isInvalid() && !Invalid && !PrevClassTemplate) { in CheckClassTemplate()
1099 << Name << SemanticContext << /*IsDefinition*/true << SS.getRange(); in CheckClassTemplate()
1109 SetNestedNameSpecifier(NewClass, SS); in CheckClassTemplate()
1611 const CXXScopeSpec &SS) { in getRangeOfTypeInNestedNameSpecifier() argument
1612 NestedNameSpecifierLoc NNSLoc(SS.getScopeRep(), SS.location_data()); in getRangeOfTypeInNestedNameSpecifier()
1659 SourceLocation DeclStartLoc, SourceLocation DeclLoc, const CXXScopeSpec &SS, in MatchTemplateParametersToScopeSpecifier() argument
1671 if (SS.getScopeRep()) { in MatchTemplateParametersToScopeSpecifier()
1673 = dyn_cast_or_null<CXXRecordDecl>(computeDeclContext(SS, true))) in MatchTemplateParametersToScopeSpecifier()
1676 T = QualType(SS.getScopeRep()->getAsType(), 0); in MatchTemplateParametersToScopeSpecifier()
1889 << getRangeOfTypeInNestedNameSpecifier(Context, T, SS); in MatchTemplateParametersToScopeSpecifier()
1901 getRangeOfTypeInNestedNameSpecifier(Context, T, SS))) in MatchTemplateParametersToScopeSpecifier()
1939 << getRangeOfTypeInNestedNameSpecifier(Context, T, SS); in MatchTemplateParametersToScopeSpecifier()
2278 Sema::ActOnTemplateIdType(CXXScopeSpec &SS, SourceLocation TemplateKWLoc, in ActOnTemplateIdType() argument
2284 if (SS.isInvalid()) in ActOnTemplateIdType()
2304 SpecTL.setQualifierLoc(SS.getWithLocInContext(Context)); in ActOnTemplateIdType()
2333 if (SS.isNotEmpty() && !IsCtorOrDtorName) { in ActOnTemplateIdType()
2335 Result = Context.getElaboratedType(ETK_None, SS.getScopeRep(), Result); in ActOnTemplateIdType()
2338 ElabTL.setQualifierLoc(SS.getWithLocInContext(Context)); in ActOnTemplateIdType()
2347 CXXScopeSpec &SS, in ActOnTagTemplateIdType() argument
2376 SpecTL.setQualifierLoc(SS.getWithLocInContext(Context)); in ActOnTagTemplateIdType()
2429 Result = Context.getElaboratedType(Keyword, SS.getScopeRep(), Result); in ActOnTagTemplateIdType()
2432 ElabTL.setQualifierLoc(SS.getWithLocInContext(Context)); in ActOnTagTemplateIdType()
2913 Sema::CheckVarTemplateId(const CXXScopeSpec &SS, in CheckVarTemplateId() argument
2929 return BuildDeclarationNameExpr(SS, NameInfo, Var, in CheckVarTemplateId()
2933 ExprResult Sema::BuildTemplateIdExpr(const CXXScopeSpec &SS, in BuildTemplateIdExpr() argument
2957 return CheckVarTemplateId(SS, R.getLookupNameInfo(), in BuildTemplateIdExpr()
2967 SS.getWithLocInContext(Context), in BuildTemplateIdExpr()
2978 Sema::BuildQualifiedTemplateIdExpr(CXXScopeSpec &SS, in BuildQualifiedTemplateIdExpr() argument
2985 if (!(DC = computeDeclContext(SS, false)) || in BuildQualifiedTemplateIdExpr()
2987 RequireCompleteDeclContext(SS, DC)) in BuildQualifiedTemplateIdExpr()
2988 return BuildDependentDeclRefExpr(SS, TemplateKWLoc, NameInfo, TemplateArgs); in BuildQualifiedTemplateIdExpr()
2992 LookupTemplateName(R, (Scope*)nullptr, SS, QualType(), /*Entering*/ false, in BuildQualifiedTemplateIdExpr()
3000 << NameInfo.getName() << SS.getRange(); in BuildQualifiedTemplateIdExpr()
3006 << SS.getScopeRep() in BuildQualifiedTemplateIdExpr()
3007 << NameInfo.getName().getAsString() << SS.getRange(); in BuildQualifiedTemplateIdExpr()
3012 return BuildTemplateIdExpr(SS, TemplateKWLoc, R, /*ADL*/ false, TemplateArgs); in BuildQualifiedTemplateIdExpr()
3023 CXXScopeSpec &SS, in ActOnDependentTemplateName() argument
3037 if (SS.isSet()) in ActOnDependentTemplateName()
3038 LookupCtx = computeDeclContext(SS, EnteringContext); in ActOnDependentTemplateName()
3059 TemplateNameKind TNK = isTemplateName(S, SS, TemplateKWLoc.isValid(), Name, in ActOnDependentTemplateName()
3080 NestedNameSpecifier *Qualifier = SS.getScopeRep(); in ActOnDependentTemplateName()
3139 CXXScopeSpec SS; in CheckTemplateTypeArgument() local
3143 SS.Adopt(ArgExpr->getQualifierLoc()); in CheckTemplateTypeArgument()
3147 SS.Adopt(ArgExpr->getQualifierLoc()); in CheckTemplateTypeArgument()
3152 SS.Adopt(ArgExpr->getQualifierLoc()); in CheckTemplateTypeArgument()
3159 LookupParsedName(Result, CurScope, &SS); in CheckTemplateTypeArgument()
3175 Context.getDependentNameType(ETK_Typename, SS.getScopeRep(), II); in CheckTemplateTypeArgument()
3179 TL.setQualifierLoc(SS.getWithLocInContext(Context)); in CheckTemplateTypeArgument()
3578 CXXScopeSpec SS; in CheckTemplateArgument() local
3579 SS.Adopt(Arg.getTemplateQualifierLoc()); in CheckTemplateArgument()
3585 Context, SS.getWithLocInContext(Context), TemplateKWLoc, NameInfo, in CheckTemplateArgument()
5447 CXXScopeSpec SS; in BuildExpressionFromDeclTemplateArgument() local
5448 SS.MakeTrivial(Context, Qualifier, Loc); in BuildExpressionFromDeclTemplateArgument()
5461 &SS); in BuildExpressionFromDeclTemplateArgument()
6189 CXXScopeSpec &SS = TemplateId.SS; in ActOnClassTemplateSpecialization() local
6221 KWLoc, TemplateNameLoc, SS, &TemplateId, in ActOnClassTemplateSpecialization()
6366 return CheckClassTemplate(S, TagSpec, TUK, KWLoc, SS, in ActOnClassTemplateSpecialization()
6390 SetNestedNameSpecifier(Partial, SS); in ActOnClassTemplateSpecialization()
6391 if (TemplateParameterLists.size() > 1 && SS.isSet()) { in ActOnClassTemplateSpecialization()
6443 SetNestedNameSpecifier(Specialization, SS); in ActOnClassTemplateSpecialization()
7298 static bool ScopeSpecifierHasTemplateId(const CXXScopeSpec &SS) { in ScopeSpecifierHasTemplateId() argument
7299 if (!SS.isSet()) in ScopeSpecifierHasTemplateId()
7309 for (NestedNameSpecifier *NNS = SS.getScopeRep(); NNS; in ScopeSpecifierHasTemplateId()
7325 const CXXScopeSpec &SS, in ActOnExplicitInstantiation() argument
7443 SS.isSet())) in ActOnExplicitInstantiation()
7488 SetNestedNameSpecifier(Specialization, SS); in ActOnExplicitInstantiation()
7606 CXXScopeSpec &SS, in ActOnExplicitInstantiation() argument
7614 KWLoc, SS, Name, NameLoc, Attr, AS_none, in ActOnExplicitInstantiation()
7645 if (!ScopeSpecifierHasTemplateId(SS)) in ActOnExplicitInstantiation()
7647 << Record << SS.getRange(); in ActOnExplicitInstantiation()
8111 const CXXScopeSpec &SS, IdentifierInfo *Name, in ActOnDependentTag() argument
8116 NestedNameSpecifier *NNS = SS.getScopeRep(); in ActOnDependentTag()
8124 << (TUK == TUK_Definition) << Kind << SS.getRange(); in ActOnDependentTag()
8136 TL.setQualifierLoc(SS.getWithLocInContext(Context)); in ActOnDependentTag()
8143 const CXXScopeSpec &SS, const IdentifierInfo &II, in ActOnTypenameType() argument
8145 if (SS.isInvalid()) in ActOnTypenameType()
8155 NestedNameSpecifierLoc QualifierLoc = SS.getWithLocInContext(Context); in ActOnTypenameType()
8180 const CXXScopeSpec &SS, in ActOnTypenameType() argument
8202 assert(DTN->getQualifier() == SS.getScopeRep()); in ActOnTypenameType()
8213 SpecTL.setQualifierLoc(SS.getWithLocInContext(Context)); in ActOnTypenameType()
8238 T = Context.getElaboratedType(ETK_Typename, SS.getScopeRep(), T); in ActOnTypenameType()
8241 TL.setQualifierLoc(SS.getWithLocInContext(Context)); in ActOnTypenameType()
8292 CXXScopeSpec SS; in CheckTypenameType() local
8293 SS.Adopt(QualifierLoc); in CheckTypenameType()
8295 DeclContext *Ctx = computeDeclContext(SS); in CheckTypenameType()
8311 if (RequireCompleteDeclContext(SS, Ctx)) in CheckTypenameType()
8316 LookupQualifiedName(Result, Ctx, SS); in CheckTypenameType()
8337 SourceRange FullRange(KeywordLoc.isValid() ? KeywordLoc : SS.getBeginLoc(), in CheckTypenameType()
8382 SourceRange FullRange(KeywordLoc.isValid() ? KeywordLoc : SS.getBeginLoc(), in CheckTypenameType()
8479 bool Sema::RebuildNestedNameSpecifierInCurrentInstantiation(CXXScopeSpec &SS) { in RebuildNestedNameSpecifierInCurrentInstantiation() argument
8480 if (SS.isInvalid()) in RebuildNestedNameSpecifierInCurrentInstantiation()
8483 NestedNameSpecifierLoc QualifierLoc = SS.getWithLocInContext(Context); in RebuildNestedNameSpecifierInCurrentInstantiation()
8484 CurrentInstantiationRebuilder Rebuilder(*this, SS.getRange().getBegin(), in RebuildNestedNameSpecifierInCurrentInstantiation()
8491 SS.Adopt(Rebuilt); in RebuildNestedNameSpecifierInCurrentInstantiation()