Home
last modified time | relevance | path

Searched refs:KWLoc (Results 1 – 11 of 11) sorted by relevance

/external/clang/lib/Parse/
DParseCXXInlineMethods.cpp71 SourceLocation KWLoc; in ParseCXXInlineMethodDef() local
73 if (TryConsumeToken(tok::kw_delete, KWLoc)) { in ParseCXXInlineMethodDef()
74 Diag(KWLoc, getLangOpts().CPlusPlus11 in ParseCXXInlineMethodDef()
77 Actions.SetDeclDeleted(FnD, KWLoc); in ParseCXXInlineMethodDef()
82 } else if (TryConsumeToken(tok::kw_default, KWLoc)) { in ParseCXXInlineMethodDef()
83 Diag(KWLoc, getLangOpts().CPlusPlus11 in ParseCXXInlineMethodDef()
86 Actions.SetDeclDefaulted(FnD, KWLoc); in ParseCXXInlineMethodDef()
95 Diag(KWLoc, diag::err_default_delete_in_multiple_declaration) in ParseCXXInlineMethodDef()
DParser.cpp1053 SourceLocation KWLoc; in ParseFunctionDefinition() local
1054 if (TryConsumeToken(tok::kw_delete, KWLoc)) { in ParseFunctionDefinition()
1055 Diag(KWLoc, getLangOpts().CPlusPlus11 in ParseFunctionDefinition()
1058 Actions.SetDeclDeleted(Res, KWLoc); in ParseFunctionDefinition()
1060 } else if (TryConsumeToken(tok::kw_default, KWLoc)) { in ParseFunctionDefinition()
1061 Diag(KWLoc, getLangOpts().CPlusPlus11 in ParseFunctionDefinition()
1064 Actions.SetDeclDefaulted(Res, KWLoc); in ParseFunctionDefinition()
1070 Diag(KWLoc, diag::err_default_delete_in_multiple_declaration) in ParseFunctionDefinition()
DParseDecl.cpp2397 SourceLocation KWLoc = ConsumeToken(); in ParseAlignmentSpecifier() local
2416 Attrs.addNew(KWName, KWLoc, nullptr, KWLoc, ArgExprs.data(), 1, in ParseAlignmentSpecifier()
/external/clang/lib/Sema/
DSemaTemplate.cpp833 SourceLocation KWLoc, CXXScopeSpec &SS, in CheckClassTemplate() argument
856 Diag(KWLoc, diag::err_template_unnamed_class); in CheckClassTemplate()
987 TUK == TUK_Definition, KWLoc, *Name)) { in CheckClassTemplate()
988 Diag(KWLoc, diag::err_use_with_wrong_tag) in CheckClassTemplate()
990 << FixItHint::CreateReplacement(KWLoc, PrevRecordDecl->getKindName()); in CheckClassTemplate()
1007 Listener->RedefinedHiddenDefinition(Hidden, KWLoc); in CheckClassTemplate()
1008 Listener->RedefinedHiddenDefinition(Tmpl, KWLoc); in CheckClassTemplate()
1066 CXXRecordDecl::Create(Context, Kind, SemanticContext, KWLoc, NameLoc, Name, in CheckClassTemplate()
6056 SourceLocation KWLoc, in ActOnClassTemplateSpecialization() argument
6068 ? TemplateParameterLists[0]->getTemplateLoc() : KWLoc; in ActOnClassTemplateSpecialization()
[all …]
DSemaExprCXX.cpp3743 static bool evaluateTypeTrait(Sema &S, TypeTrait Kind, SourceLocation KWLoc, in evaluateTypeTrait() argument
3747 return EvaluateUnaryTypeTrait(S, Kind, KWLoc, Args[0]->getType()); in evaluateTypeTrait()
3780 if (S.RequireCompleteType(KWLoc, ArgTy, in evaluateTypeTrait()
3815 InitializationKind InitKind(InitializationKind::CreateDirect(KWLoc, KWLoc, in evaluateTypeTrait()
3852 ExprResult Sema::BuildTypeTrait(TypeTrait Kind, SourceLocation KWLoc, in BuildTypeTrait() argument
3858 *this, Kind, KWLoc, Args[0]->getType())) in BuildTypeTrait()
3871 Result = evaluateTypeTrait(*this, Kind, KWLoc, Args, RParenLoc); in BuildTypeTrait()
3873 return TypeTraitExpr::Create(Context, ResultType, KWLoc, Kind, Args, in BuildTypeTrait()
3877 ExprResult Sema::ActOnTypeTrait(TypeTrait Kind, SourceLocation KWLoc, in ActOnTypeTrait() argument
3887 TInfo = Context.getTrivialTypeSourceInfo(T, KWLoc); in ActOnTypeTrait()
[all …]
DSemaDecl.cpp11276 SourceLocation KWLoc, CXXScopeSpec &SS, in ActOnTag() argument
11307 KWLoc, NameLoc, SS, nullptr, TemplateParameterLists, in ActOnTag()
11310 Diag(KWLoc, diag::err_enum_template); in ActOnTag()
11322 DeclResult Result = CheckClassTemplate(S, TagSpec, TUK, KWLoc, in ActOnTag()
11635 TUK == TUK_Definition, KWLoc, in ActOnTag()
11641 Diag(KWLoc, diag::err_use_with_wrong_tag) in ActOnTag()
11643 << FixItHint::CreateReplacement(SourceRange(KWLoc), in ActOnTag()
11646 Diag(KWLoc, diag::err_use_with_wrong_tag) << Name; in ActOnTag()
11681 if (CheckEnumRedeclaration(NameLoc.isValid() ? NameLoc : KWLoc, in ActOnTag()
11738 Listener->RedefinedHiddenDefinition(Hidden, KWLoc); in ActOnTag()
[all …]
DTreeTransform.h1026 QualType RebuildAtomicType(QualType ValueType, SourceLocation KWLoc);
10588 SourceLocation KWLoc) { in RebuildAtomicType() argument
10589 return SemaRef.BuildAtomicType(ValueType, KWLoc); in RebuildAtomicType()
/external/clang/include/clang/AST/
DTypeLoc.h1585 SourceLocation KWLoc, LParenLoc, RParenLoc; member
1594 SourceLocation getKWLoc() const { return getLocalData()->KWLoc; } in getKWLoc()
1595 void setKWLoc(SourceLocation Loc) { getLocalData()->KWLoc = Loc; } in setKWLoc()
1900 SourceLocation KWLoc, LParenLoc, RParenLoc; member
1915 return this->getLocalData()->KWLoc; in getKWLoc()
1918 this->getLocalData()->KWLoc = Loc; in setKWLoc()
DStmt.h654 SwitchCase(StmtClass SC, SourceLocation KWLoc, SourceLocation ColonLoc) in SwitchCase() argument
655 : Stmt(SC), NextSwitchCase(nullptr), KeywordLoc(KWLoc), ColonLoc(ColonLoc) { in SwitchCase()
/external/clang/include/clang/Sema/
DSema.h1728 SourceLocation KWLoc, CXXScopeSpec &SS,
4461 ExprResult ActOnTypeTrait(TypeTrait Kind, SourceLocation KWLoc,
4464 ExprResult BuildTypeTrait(TypeTrait Kind, SourceLocation KWLoc,
4471 SourceLocation KWLoc,
4477 SourceLocation KWLoc,
4485 SourceLocation KWLoc,
4490 SourceLocation KWLoc,
5346 SourceLocation KWLoc, CXXScopeSpec &SS,
5424 SourceLocation KWLoc,
5460 SourceLocation KWLoc,
[all …]
/external/clang/lib/Lex/
DModuleMap.cpp1920 auto KWLoc = consumeToken(); in parseUseDecl() local
1926 Diags.Report(KWLoc, diag::err_mmap_use_decl_submodule); in parseUseDecl()