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()
747 if (ImportState == Sema::ModuleImportState::FirstDecl) in ParseTopLevelDecl()
749 ImportState = Sema::ModuleImportState::NotACXX20Module; in ParseTopLevelDecl()
750 else if (ImportState == Sema::ModuleImportState::ImportAllowed) in ParseTopLevelDecl()
752 ImportState = Sema::ModuleImportState::ImportFinished; in ParseTopLevelDecl()
754 Sema::ModuleImportState::PrivateFragmentImportAllowed) in ParseTopLevelDecl()
756 ImportState = Sema::ModuleImportState::PrivateFragmentImportFinished; in ParseTopLevelDecl()
929 CurParsedObjCImpl ? Sema::PCC_ObjCImplementation : Sema::PCC_Namespace); in ParseExternalDeclaration()
932 Sema::ModuleImportState IS = Sema::ModuleImportState::NotACXX20Module; in ParseExternalDeclaration()
1360 Sema::FnBodyKind BodyKind = Sema::FnBodyKind::Other; in ParseFunctionDefinition()
1370 BodyKind = Sema::FnBodyKind::Delete; in ParseFunctionDefinition()
1376 BodyKind = Sema::FnBodyKind::Default; in ParseFunctionDefinition()
1383 << (BodyKind == Sema::FnBodyKind::Delete); in ParseFunctionDefinition()
1386 BodyKind == Sema::FnBodyKind::Delete in ParseFunctionDefinition()
1395 Sema::SkipBodyInfo SkipBody; in ParseFunctionDefinition()
1404 if (BodyKind == Sema::FnBodyKind::Other) in ParseFunctionDefinition()
1417 if (BodyKind != Sema::FnBodyKind::Other) { in ParseFunctionDefinition()
1756 Sema::NameClassification Classification = Actions.ClassifyName( in TryAnnotateName()
1763 if (Classification.getKind() == Sema::NC_UndeclaredTemplate && in TryAnnotateName()
1774 case Sema::NC_Error: in TryAnnotateName()
1777 case Sema::NC_Keyword: in TryAnnotateName()
1787 case Sema::NC_Unknown: in TryAnnotateName()
1791 case Sema::NC_Type: { in TryAnnotateName()
1828 case Sema::NC_OverloadSet: in TryAnnotateName()
1837 case Sema::NC_NonType: in TryAnnotateName()
1852 case Sema::NC_UndeclaredNonType: in TryAnnotateName()
1853 case Sema::NC_DependentNonType: in TryAnnotateName()
1854 Tok.setKind(Classification.getKind() == Sema::NC_UndeclaredNonType in TryAnnotateName()
1865 case Sema::NC_TypeTemplate: in TryAnnotateName()
1873 case Sema::NC_VarTemplate: in TryAnnotateName()
1874 case Sema::NC_FunctionTemplate: in TryAnnotateName()
1875 case Sema::NC_UndeclaredTemplate: { in TryAnnotateName()
1886 case Sema::NC_Concept: { in TryAnnotateName()
2227 Sema::PCC_RecoveryInFunction); in handleUnexpectedCodeCompletionToken()
2233 Actions.CodeCompleteOrdinaryName(getCurScope(), Sema::PCC_Class); in handleUnexpectedCodeCompletionToken()
2239 Actions.CodeCompleteOrdinaryName(getCurScope(), Sema::PCC_Namespace); in handleUnexpectedCodeCompletionToken()
2320 case Sema::IER_Exists: in ParseMicrosoftIfExistsCondition()
2324 case Sema::IER_DoesNotExist: in ParseMicrosoftIfExistsCondition()
2328 case Sema::IER_Dependent: in ParseMicrosoftIfExistsCondition()
2332 case Sema::IER_Error: in ParseMicrosoftIfExistsCondition()
2390 Parser::ParseModuleDecl(Sema::ModuleImportState &ImportState) { in ParseModuleDecl()
2393 Sema::ModuleDeclKind MDK = TryConsumeToken(tok::kw_export) in ParseModuleDecl()
2394 ? Sema::ModuleDeclKind::Interface in ParseModuleDecl()
2395 : Sema::ModuleDeclKind::Implementation; in ParseModuleDecl()
2410 if (ImportState != Sema::ModuleImportState::FirstDecl) { in ParseModuleDecl()
2415 if (MDK == Sema::ModuleDeclKind::Interface) { in ParseModuleDecl()
2419 ImportState = Sema::ModuleImportState::GlobalFragment; in ParseModuleDecl()
2426 if (MDK == Sema::ModuleDeclKind::Interface) { in ParseModuleDecl()
2434 ImportState = ImportState == Sema::ModuleImportState::ImportAllowed in ParseModuleDecl()
2435 ? Sema::ModuleImportState::PrivateFragmentImportAllowed in ParseModuleDecl()
2436 : Sema::ModuleImportState::PrivateFragmentImportFinished; in ParseModuleDecl()
2485 Sema::ModuleImportState &ImportState) { in ParseModuleImport()
2541 case Sema::ModuleImportState::ImportAllowed: in ParseModuleImport()
2544 case Sema::ModuleImportState::FirstDecl: in ParseModuleImport()
2545 case Sema::ModuleImportState::NotACXX20Module: in ParseModuleImport()
2552 case Sema::ModuleImportState::GlobalFragment: in ParseModuleImport()
2553 case Sema::ModuleImportState::PrivateFragmentImportAllowed: in ParseModuleImport()
2564 << (ImportState == Sema::ModuleImportState::GlobalFragment ? 0 : 1); in ParseModuleImport()
2568 case Sema::ModuleImportState::ImportFinished: in ParseModuleImport()
2569 case Sema::ModuleImportState::PrivateFragmentImportFinished: in ParseModuleImport()