• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/contrib/llvm-project/clang/lib/Parse/

Lines Matching refs:SS

83                                         IdentifierInfo &II, CXXScopeSpec &SS) {
95 if (!Actions.isTemplateName(getCurScope(), SS, /*hasTemplateKeyword=*/false,
120 /// \param SS the scope specifier that will be set to the parsed
149 bool Parser::ParseOptionalCXXScopeSpecifier(CXXScopeSpec &SS,
165 SS);
194 if (Actions.ActOnCXXGlobalScopeSpecifier(ConsumeToken(), SS))
208 return Actions.ActOnSuperScopeSpecifier(SuperLoc, ConsumeToken(), SS);
226 if (Actions.ActOnCXXNestedNameSpecifierDecltype(SS, DS, CCLoc))
227 SS.SetInvalid(SourceRange(DeclLoc, CCLoc));
239 Actions.CodeCompleteQualifiedId(getCurScope(), SS, EnteringContext,
241 SavedType.get(SS.getBeginLoc()));
246 SS.setEndLoc(Tok.getLocation());
289 if (ParseUnqualifiedIdOperator(SS, EnteringContext, ObjectType,
320 getCurScope(), SS, TemplateKWLoc, TemplateName, ObjectType,
322 if (AnnotateTemplateIdToken(Template, TNK, SS, TemplateKWLoc,
360 SS,
370 = SS.getBeginLoc().isValid()? SS.getBeginLoc()
372 SS.SetInvalid(SourceRange(StartLoc, CCLoc));
396 if (Actions.IsInvalidUnlessNestedName(getCurScope(), SS, IdInfo,
422 !Actions.isNonTypeNestedNameSpecifier(getCurScope(), SS, IdInfo)) {
457 getCurScope(), IdInfo, EnteringContext, SS, false,
468 SS.SetInvalid(SourceRange(IdLoc, CCLoc));
474 CheckForTemplateAndDigraph(Next, ObjectType, EnteringContext, II, SS);
484 if (TemplateNameKind TNK = Actions.isTemplateName(getCurScope(), SS,
507 if (AnnotateTemplateIdToken(Template, TNK, SS, SourceLocation(),
513 if (MemberOfUnknownSpecialization && (ObjectType || SS.isSet()) &&
528 getCurScope(), SS, Tok.getLocation(), TemplateName, ObjectType,
532 if (AnnotateTemplateIdToken(Template, TNK, SS, SourceLocation(),
557 ExprResult Parser::tryParseCXXIdExpression(CXXScopeSpec &SS,
567 E = Actions.ActOnNameClassifiedAsNonType(getCurScope(), SS, ND, Loc, Tok);
580 E = Actions.ActOnNameClassifiedAsDependentNonType(SS, II, Loc,
586 assert(SS.isEmpty() &&
597 if (ParseUnqualifiedId(SS,
611 getCurScope(), SS, TemplateKWLoc, Name, Tok.is(tok::l_paren),
669 CXXScopeSpec SS;
670 ParseOptionalCXXScopeSpecifier(SS, nullptr, /*EnteringContext=*/false);
674 tryParseCXXIdExpression(SS, isAddressOfOperand, Replacement);
679 Result = tryParseCXXIdExpression(SS, isAddressOfOperand, Replacement);
1707 CXXScopeSpec &SS,
1740 if (Tok.is(tok::kw_decltype) && !FirstTypeName.isValid() && SS.isEmpty()) {
1763 ParseUnqualifiedIdTemplateId(SS, SourceLocation(),
1770 SS, FirstTypeName, CCLoc, TildeLoc,
2249 /// \param SS the nested-name-specifier that precedes this template-id, if
2272 bool Parser::ParseUnqualifiedIdTemplateId(CXXScopeSpec &SS,
2292 getCurScope(), SS, TemplateKWLoc, Id, ObjectType, EnteringContext,
2298 TNK = Actions.isTemplateName(getCurScope(), SS,
2329 getCurScope(), SS, TemplateKWLoc, Id, ObjectType, EnteringContext,
2341 TNK = Actions.isTemplateName(getCurScope(), SS, TemplateKWLoc.isValid(),
2354 getCurScope(), SS, TemplateKWLoc, TemplateName, ObjectType,
2359 TNK = Actions.isTemplateName(getCurScope(), SS, TemplateKWLoc.isValid(),
2366 << Name << SS.getRange();
2415 getCurScope(), SS, TemplateKWLoc, Template, Name, NameLoc, LAngleLoc,
2456 /// \param SS The nested-name-specifier that preceded this unqualified-id. If
2468 bool Parser::ParseUnqualifiedIdOperator(CXXScopeSpec &SS, bool EnteringContext,
2632 return Actions.checkLiteralOperatorId(SS, Result);
2681 /// \param SS The nested-name-specifier that preceded this unqualified-id. If
2699 bool Parser::ParseUnqualifiedId(CXXScopeSpec &SS, bool EnteringContext,
2713 if (TemplateKWLoc && (ObjectType || SS.isSet())) {
2740 Actions.isCurrentClassName(*Id, getCurScope(), &SS)) {
2742 ParsedType Ty = Actions.getConstructorName(*Id, IdLoc, getCurScope(), SS,
2748 AllowDeductionGuide && SS.isEmpty() &&
2762 SS, TemplateKWLoc ? *TemplateKWLoc : SourceLocation(), Id, IdLoc,
2766 getCurScope(), SS, *TemplateKWLoc, Result, ObjectType,
2781 Actions.isCurrentClassName(*TemplateId->Name, getCurScope(), &SS)) {
2782 if (SS.isSet()) {
2793 *TemplateId->Name, TemplateId->TemplateNameLoc, getCurScope(), SS,
2813 if (TemplateKWLoc && (ObjectType || SS.isSet()))
2827 if (ParseUnqualifiedIdOperator(SS, EnteringContext, ObjectType, Result))
2840 SS, TemplateKWLoc ? *TemplateKWLoc : SourceLocation(), nullptr,
2845 getCurScope(), SS, *TemplateKWLoc, Result, ObjectType,
2854 (AllowDestructorName || SS.isSet()) && Tok.is(tok::tilde)) {
2863 if (SS.isEmpty() && Tok.is(tok::kw_decltype)) {
2881 DeclaratorScopeObj DeclScopeObj(*this, SS);
2888 if (SS.isSet()) {
2889 AnnotateScopeToken(SS, /*NewAnnotation*/true);
2890 SS.clear();
2892 if (ParseOptionalCXXScopeSpecifier(SS, ObjectType, EnteringContext))
2894 if (SS.isNotEmpty())
2897 !SS.isSet()) {
2908 if (Actions.ShouldEnterDeclaratorScope(getCurScope(), SS))
2919 SS, TemplateKWLoc ? *TemplateKWLoc : SourceLocation(), ClassName,
2926 SS, ObjectType,
3386 CXXScopeSpec SS;
3390 SS);
3395 Expression.get(), NoexceptLoc, SS, takeTemplateIdAnnotation(Tok),
3483 CXXScopeSpec SS;
3486 Tok.getAnnotationValue(), Tok.getAnnotationRange(), SS);
3504 if (auto *Req = Actions.ActOnTypeRequirement(TypenameKWLoc, SS,