Lines Matching refs:Sema

34   Sema &S;
37 explicit ActionCommentHandler(Sema &S) : S(S) { } in ActionCommentHandler()
54 Parser::Parser(Preprocessor &pp, Sema &actions, bool skipFunctionBodies) in Parser()
602 Sema::ModuleImportState &ImportState) { in ParseFirstTopLevelDecl()
607 ImportState = Sema::ModuleImportState::FirstDecl; in ParseFirstTopLevelDecl()
629 Sema::ModuleImportState &ImportState) { in ParseTopLevelDecl()
705 ImportState = Sema::ModuleImportState::NotACXX20Module; in ParseTopLevelDecl()
713 ImportState = Sema::ModuleImportState::NotACXX20Module; in ParseTopLevelDecl()
767 if (ImportState == Sema::ModuleImportState::FirstDecl) in ParseTopLevelDecl()
769 ImportState = Sema::ModuleImportState::NotACXX20Module; in ParseTopLevelDecl()
770 else if (ImportState == Sema::ModuleImportState::ImportAllowed) in ParseTopLevelDecl()
772 ImportState = Sema::ModuleImportState::ImportFinished; in ParseTopLevelDecl()
774 Sema::ModuleImportState::PrivateFragmentImportAllowed) in ParseTopLevelDecl()
776 ImportState = Sema::ModuleImportState::PrivateFragmentImportFinished; in ParseTopLevelDecl()
965 Sema::ModuleImportState IS = Sema::ModuleImportState::NotACXX20Module; in ParseExternalDeclaration()
1410 Sema::FnBodyKind BodyKind = Sema::FnBodyKind::Other; in ParseFunctionDefinition()
1420 BodyKind = Sema::FnBodyKind::Delete; in ParseFunctionDefinition()
1427 BodyKind = Sema::FnBodyKind::Default; in ParseFunctionDefinition()
1434 << (BodyKind == Sema::FnBodyKind::Delete); in ParseFunctionDefinition()
1437 BodyKind == Sema::FnBodyKind::Delete in ParseFunctionDefinition()
1444 Sema::FPFeaturesStateRAII SaveFPFeatures(Actions); in ParseFunctionDefinition()
1457 if (BodyKind == Sema::FnBodyKind::Other) in ParseFunctionDefinition()
1481 if (BodyKind != Sema::FnBodyKind::Other) { in ParseFunctionDefinition()
1821 Sema::NameClassification Classification = Actions.ClassifyName( in TryAnnotateName()
1828 if (Classification.getKind() == Sema::NC_UndeclaredTemplate && in TryAnnotateName()
1839 case Sema::NC_Error: in TryAnnotateName()
1842 case Sema::NC_Keyword: in TryAnnotateName()
1852 case Sema::NC_Unknown: in TryAnnotateName()
1856 case Sema::NC_Type: { in TryAnnotateName()
1893 case Sema::NC_OverloadSet: in TryAnnotateName()
1902 case Sema::NC_NonType: in TryAnnotateName()
1917 case Sema::NC_UndeclaredNonType: in TryAnnotateName()
1918 case Sema::NC_DependentNonType: in TryAnnotateName()
1919 Tok.setKind(Classification.getKind() == Sema::NC_UndeclaredNonType in TryAnnotateName()
1930 case Sema::NC_TypeTemplate: in TryAnnotateName()
1938 case Sema::NC_Concept: in TryAnnotateName()
1939 case Sema::NC_VarTemplate: in TryAnnotateName()
1940 case Sema::NC_FunctionTemplate: in TryAnnotateName()
1941 case Sema::NC_UndeclaredTemplate: { in TryAnnotateName()
1942 bool IsConceptName = Classification.getKind() == Sema::NC_Concept; in TryAnnotateName()
2393 case Sema::IER_Exists: in ParseMicrosoftIfExistsCondition()
2397 case Sema::IER_DoesNotExist: in ParseMicrosoftIfExistsCondition()
2401 case Sema::IER_Dependent: in ParseMicrosoftIfExistsCondition()
2405 case Sema::IER_Error: in ParseMicrosoftIfExistsCondition()
2463 Parser::ParseModuleDecl(Sema::ModuleImportState &ImportState) { in ParseModuleDecl()
2466 Sema::ModuleDeclKind MDK = TryConsumeToken(tok::kw_export) in ParseModuleDecl()
2467 ? Sema::ModuleDeclKind::Interface in ParseModuleDecl()
2468 : Sema::ModuleDeclKind::Implementation; in ParseModuleDecl()
2483 if (ImportState != Sema::ModuleImportState::FirstDecl) { in ParseModuleDecl()
2488 if (MDK == Sema::ModuleDeclKind::Interface) { in ParseModuleDecl()
2492 ImportState = Sema::ModuleImportState::GlobalFragment; in ParseModuleDecl()
2499 if (MDK == Sema::ModuleDeclKind::Interface) { in ParseModuleDecl()
2507 ImportState = ImportState == Sema::ModuleImportState::ImportAllowed in ParseModuleDecl()
2508 ? Sema::ModuleImportState::PrivateFragmentImportAllowed in ParseModuleDecl()
2509 : Sema::ModuleImportState::PrivateFragmentImportFinished; in ParseModuleDecl()
2559 Sema::ModuleImportState &ImportState) { in ParseModuleImport()
2616 case Sema::ModuleImportState::ImportAllowed: in ParseModuleImport()
2619 case Sema::ModuleImportState::FirstDecl: in ParseModuleImport()
2622 ImportState = Sema::ModuleImportState::NotACXX20Module; in ParseModuleImport()
2624 case Sema::ModuleImportState::NotACXX20Module: in ParseModuleImport()
2631 case Sema::ModuleImportState::GlobalFragment: in ParseModuleImport()
2632 case Sema::ModuleImportState::PrivateFragmentImportAllowed: in ParseModuleImport()
2643 << (ImportState == Sema::ModuleImportState::GlobalFragment ? 0 : 1); in ParseModuleImport()
2647 case Sema::ModuleImportState::ImportFinished: in ParseModuleImport()
2648 case Sema::ModuleImportState::PrivateFragmentImportFinished: in ParseModuleImport()