Lines Matching refs:Sema

31   Sema &S;
34 explicit ActionCommentHandler(Sema &S) : S(S) { } in ActionCommentHandler()
51 Parser::Parser(Preprocessor &pp, Sema &actions, bool skipFunctionBodies) in Parser()
585 Sema::ModuleImportState &ImportState) { in ParseFirstTopLevelDecl()
590 ImportState = Sema::ModuleImportState::FirstDecl; in ParseFirstTopLevelDecl()
612 Sema::ModuleImportState &ImportState) { in ParseTopLevelDecl()
687 ImportState = Sema::ModuleImportState::NotACXX20Module; in ParseTopLevelDecl()
694 ImportState = Sema::ModuleImportState::NotACXX20Module; in ParseTopLevelDecl()
741 if (ImportState == Sema::ModuleImportState::FirstDecl) in ParseTopLevelDecl()
743 ImportState = Sema::ModuleImportState::NotACXX20Module; in ParseTopLevelDecl()
744 else if (ImportState == Sema::ModuleImportState::ImportAllowed) in ParseTopLevelDecl()
746 ImportState = Sema::ModuleImportState::ImportFinished; in ParseTopLevelDecl()
917 CurParsedObjCImpl ? Sema::PCC_ObjCImplementation : Sema::PCC_Namespace); in ParseExternalDeclaration()
920 Sema::ModuleImportState IS = Sema::ModuleImportState::NotACXX20Module; in ParseExternalDeclaration()
1327 Sema::FnBodyKind BodyKind = Sema::FnBodyKind::Other; in ParseFunctionDefinition()
1337 BodyKind = Sema::FnBodyKind::Delete; in ParseFunctionDefinition()
1343 BodyKind = Sema::FnBodyKind::Default; in ParseFunctionDefinition()
1350 << (BodyKind == Sema::FnBodyKind::Delete); in ParseFunctionDefinition()
1353 BodyKind == Sema::FnBodyKind::Delete in ParseFunctionDefinition()
1362 Sema::SkipBodyInfo SkipBody; in ParseFunctionDefinition()
1371 if (BodyKind == Sema::FnBodyKind::Other) in ParseFunctionDefinition()
1384 if (BodyKind != Sema::FnBodyKind::Other) { in ParseFunctionDefinition()
1717 Sema::NameClassification Classification = Actions.ClassifyName( in TryAnnotateName()
1724 if (Classification.getKind() == Sema::NC_UndeclaredTemplate && in TryAnnotateName()
1735 case Sema::NC_Error: in TryAnnotateName()
1738 case Sema::NC_Keyword: in TryAnnotateName()
1748 case Sema::NC_Unknown: in TryAnnotateName()
1752 case Sema::NC_Type: { in TryAnnotateName()
1789 case Sema::NC_OverloadSet: in TryAnnotateName()
1798 case Sema::NC_NonType: in TryAnnotateName()
1813 case Sema::NC_UndeclaredNonType: in TryAnnotateName()
1814 case Sema::NC_DependentNonType: in TryAnnotateName()
1815 Tok.setKind(Classification.getKind() == Sema::NC_UndeclaredNonType in TryAnnotateName()
1826 case Sema::NC_TypeTemplate: in TryAnnotateName()
1834 case Sema::NC_VarTemplate: in TryAnnotateName()
1835 case Sema::NC_FunctionTemplate: in TryAnnotateName()
1836 case Sema::NC_UndeclaredTemplate: { in TryAnnotateName()
1847 case Sema::NC_Concept: { in TryAnnotateName()
2184 Sema::PCC_RecoveryInFunction); in handleUnexpectedCodeCompletionToken()
2190 Actions.CodeCompleteOrdinaryName(getCurScope(), Sema::PCC_Class); in handleUnexpectedCodeCompletionToken()
2196 Actions.CodeCompleteOrdinaryName(getCurScope(), Sema::PCC_Namespace); in handleUnexpectedCodeCompletionToken()
2277 case Sema::IER_Exists: in ParseMicrosoftIfExistsCondition()
2281 case Sema::IER_DoesNotExist: in ParseMicrosoftIfExistsCondition()
2285 case Sema::IER_Dependent: in ParseMicrosoftIfExistsCondition()
2289 case Sema::IER_Error: in ParseMicrosoftIfExistsCondition()
2346 Parser::ParseModuleDecl(Sema::ModuleImportState &ImportState) { in ParseModuleDecl()
2349 Sema::ModuleDeclKind MDK = TryConsumeToken(tok::kw_export) in ParseModuleDecl()
2350 ? Sema::ModuleDeclKind::Interface in ParseModuleDecl()
2351 : Sema::ModuleDeclKind::Implementation; in ParseModuleDecl()
2366 if (ImportState != Sema::ModuleImportState::FirstDecl) { in ParseModuleDecl()
2371 if (MDK == Sema::ModuleDeclKind::Interface) { in ParseModuleDecl()
2375 ImportState = Sema::ModuleImportState::GlobalFragment; in ParseModuleDecl()
2382 if (MDK == Sema::ModuleDeclKind::Interface) { in ParseModuleDecl()
2390 ImportState = Sema::ModuleImportState::PrivateFragment; in ParseModuleDecl()
2439 Sema::ModuleImportState &ImportState) { in ParseModuleImport()
2495 case Sema::ModuleImportState::ImportAllowed: in ParseModuleImport()
2498 case Sema::ModuleImportState::FirstDecl: in ParseModuleImport()
2499 case Sema::ModuleImportState::NotACXX20Module: in ParseModuleImport()
2506 case Sema::ModuleImportState::GlobalFragment: in ParseModuleImport()
2515 case Sema::ModuleImportState::ImportFinished: in ParseModuleImport()
2521 case Sema::ModuleImportState::PrivateFragment: in ParseModuleImport()