Lines Matching refs:Actions
52 : PP(pp), PreferredType(pp.isCodeCompletionEnabled()), Actions(actions), in Parser()
59 Actions.CurScope = nullptr; in Parser()
207 Actions.getASTContext().getPrintingPolicy()) in ConsumeExtraSemi()
408 Actions.CurScope = N; in EnterScope()
410 Actions.CurScope = new Scope(getCurScope(), ScopeFlags, Diags); in EnterScope()
420 Actions.ActOnPopScope(Tok.getLocation(), getCurScope()); in ExitScope()
423 Actions.CurScope = OldScope->getParent(); in ExitScope()
457 Actions.CurScope = nullptr; in ~Parser()
478 Actions.ActOnTranslationUnitScope(getCurScope()); in Initialize()
562 Actions.Initialize(); in Initialize()
586 Actions.ActOnStartOfTranslationUnit(); in ParseFirstTopLevelDecl()
598 if (NoTopLevelDecls && !Actions.getASTContext().getExternalSource() && in ParseFirstTopLevelDecl()
662 Result = Actions.ConvertDeclToDeclGroup(ImportDecl); in ParseTopLevelDecl()
672 Actions.ActOnModuleInclude(Loc, Mod); in ParseTopLevelDecl()
675 Actions.ActOnModuleImport(Loc, SourceLocation(), Loc, Mod); in ParseTopLevelDecl()
677 Result = Actions.ConvertDeclToDeclGroup(ImportDecl); in ParseTopLevelDecl()
684 Actions.ActOnModuleBegin(Tok.getLocation(), reinterpret_cast<Module *>( in ParseTopLevelDecl()
691 Actions.ActOnModuleEnd(Tok.getLocation(), reinterpret_cast<Module *>( in ParseTopLevelDecl()
709 Actions.SetLateTemplateParser(LateTemplateParserCallback, nullptr, this); in ParseTopLevelDecl()
711 Actions.ActOnEndOfTranslationUnit(); in ParseTopLevelDecl()
855 Actions.ActOnEmptyDeclaration(getCurScope(), Attrs, Tok.getLocation()); in ParseExternalDeclaration()
893 SingleDecl = Actions.ActOnFileScopeAsmDecl(Result.get(), StartLoc, EndLoc); in ParseExternalDeclaration()
911 Actions.CodeCompleteObjCMethodDecl(getCurScope(), in ParseExternalDeclaration()
915 Actions.CodeCompleteOrdinaryName( in ParseExternalDeclaration()
997 return Actions.ConvertDeclToDeclGroup(ParseExplicitInstantiation( in ParseExternalDeclaration()
1024 return Actions.ConvertDeclToDeclGroup(SingleDecl); in ParseExternalDeclaration()
1126 Decl *TheDecl = Actions.ParsedFreeStandingDeclSpec( in ParseDeclOrFunctionDefInternal()
1131 return Actions.BuildDeclaratorGroup(decls); in ParseDeclOrFunctionDefInternal()
1133 return Actions.ConvertDeclToDeclGroup(TheDecl); in ParseDeclOrFunctionDefInternal()
1155 Actions.getASTContext().getPrintingPolicy())) in ParseDeclOrFunctionDefInternal()
1164 return Actions.ConvertDeclToDeclGroup( in ParseDeclOrFunctionDefInternal()
1176 return Actions.ConvertDeclToDeclGroup(TheDecl); in ParseDeclOrFunctionDefInternal()
1227 const PrintingPolicy &Policy = Actions.getASTContext().getPrintingPolicy(); in ParseFunctionDefinition()
1269 Actions.canDelayFunctionBody(D)) { in ParseFunctionDefinition()
1277 Decl *DP = Actions.HandleDeclarator(ParentScope, D, in ParseFunctionDefinition()
1282 if (SkipFunctionBodies && (!DP || Actions.canSkipFunctionBody(DP)) && in ParseFunctionDefinition()
1285 return Actions.ActOnSkippedFunctionBody(DP); in ParseFunctionDefinition()
1293 Actions.CheckForFunctionRedefinition(FnD); in ParseFunctionDefinition()
1294 Actions.MarkAsLateParsedTemplate(FnD, DP, Toks); in ParseFunctionDefinition()
1302 Actions.CurContext->isTranslationUnit()) { in ParseFunctionDefinition()
1308 Decl *FuncDecl = Actions.HandleDeclarator(ParentScope, D, in ParseFunctionDefinition()
1363 Decl *Res = Actions.ActOnStartOfFunctionDef(getCurScope(), D, in ParseFunctionDefinition()
1385 Actions.SetFunctionBodyKind(Res, KWLoc, BodyKind); in ParseFunctionDefinition()
1387 Actions.ActOnFinishFunctionBody(Res, GeneratedBody, false); in ParseFunctionDefinition()
1400 if (SkipFunctionBodies && (!Res || Actions.canSkipFunctionBody(Res)) && in ParseFunctionDefinition()
1403 Actions.ActOnSkippedFunctionBody(Res); in ParseFunctionDefinition()
1404 return Actions.ActOnFinishFunctionBody(Res, nullptr, false); in ParseFunctionDefinition()
1418 Actions.ActOnFinishFunctionBody(Res, nullptr); in ParseFunctionDefinition()
1422 Actions.ActOnDefaultCtorInitializers(Res); in ParseFunctionDefinition()
1508 Actions.ActOnParamDeclarator(getCurScope(), ParmDeclarator); in ParseKNRParamDeclarations()
1564 Actions.ActOnFinishKNRParamDeclarations(getCurScope(), D, Tok.getLocation()); in ParseKNRParamDeclarations()
1661 Tok.setAnnotationValue(Actions.SaveNestedNameSpecifierAnnotation(SS)); in AnnotateScopeToken()
1717 Sema::NameClassification Classification = Actions.ClassifyName( in TryAnnotateName()
1730 Actions.ClassifyName(getCurScope(), SS, Name, NameLoc, FakeNext, in TryAnnotateName()
1965 Ty = Actions.ActOnTypenameType(getCurScope(), TypenameLoc, SS, in TryAnnotateTypeOrScopeToken()
1981 : Actions.ActOnTypenameType( in TryAnnotateTypeOrScopeToken()
2021 if (ParsedType Ty = Actions.getTypeName( in TryAnnotateTypeOrScopeTokenAfterScopeSpec()
2077 if (TemplateNameKind TNK = Actions.isTemplateName( in TryAnnotateTypeOrScopeTokenAfterScopeSpec()
2183 Actions.CodeCompleteOrdinaryName(getCurScope(), in handleUnexpectedCodeCompletionToken()
2190 Actions.CodeCompleteOrdinaryName(getCurScope(), Sema::PCC_Class); in handleUnexpectedCodeCompletionToken()
2196 Actions.CodeCompleteOrdinaryName(getCurScope(), Sema::PCC_Namespace); in handleUnexpectedCodeCompletionToken()
2203 Actions.CodeCompletePreprocessorDirective(InConditional); in CodeCompleteDirective()
2207 Actions.CodeCompleteInPreprocessorConditionalExclusion(getCurScope()); in CodeCompleteInConditionalExclusion()
2211 Actions.CodeCompletePreprocessorMacroName(IsDefinition); in CodeCompleteMacroName()
2215 Actions.CodeCompletePreprocessorExpression(); in CodeCompletePreprocessorExpression()
2221 Actions.CodeCompletePreprocessorMacroArgument(getCurScope(), Macro, MacroInfo, in CodeCompleteMacroArgument()
2226 Actions.CodeCompleteIncludedFile(Dir, IsAngled); in CodeCompleteIncludedFile()
2230 Actions.CodeCompleteNaturalLanguage(); in CodeCompleteNaturalLanguage()
2274 switch (Actions.CheckMicrosoftIfExistsSymbol(getCurScope(), Result.KeywordLoc, in ParseMicrosoftIfExistsCondition()
2327 Actions.getASTConsumer().HandleTopLevelDecl(Result.get()); in ParseMicrosoftIfExistsExternalDeclaration()
2376 return Actions.ActOnGlobalModuleFragmentDecl(ModuleLoc); in ParseModuleDecl()
2391 return Actions.ActOnPrivateModuleFragmentDecl(ModuleLoc, PrivateLoc); in ParseModuleDecl()
2419 return Actions.ActOnModuleDecl(StartLoc, ModuleLoc, MDK, Path, Partition, in ParseModuleDecl()
2533 Actions.ActOnModuleImport(StartLoc, ExportLoc, ImportLoc, HeaderUnit); in ParseModuleImport()
2535 Import = Actions.ActOnModuleImport(StartLoc, ExportLoc, ImportLoc, Path, in ParseModuleImport()
2570 Actions.CodeCompleteModuleImport(UseLoc, Path); in ParseModuleName()
2603 Actions.ActOnModuleEnd(Tok.getLocation(), in parseMisplacedModuleImport()
2615 Actions.ActOnModuleBegin(Tok.getLocation(), in parseMisplacedModuleImport()
2624 Actions.ActOnModuleInclude(Tok.getLocation(), in parseMisplacedModuleImport()