12 #include "clang/Sema/Sema.h" 13 #include "cling/Utils/ParserStateRAII.h" 14 #include "clang/Lex/Preprocessor.h" 24 using PIFAV_t = decltype(clang::Sema::ParsingInitForAutoVars);
28 fSavedPIFAV.swap(PIFAV);
31 fSavedPIFAV.swap(fSemaPIFAV);
51 fCleanupRAII(sema.getPreprocessor()),
52 fSavedCurToken(parser),
53 fParserRAII(parser, false ),
55 fPushedDCAndS(sema, sema.getASTContext().getTranslationUnitDecl(),
57 fSemaParsingInitForAutoVarsRAII(sema.ParsingInitForAutoVars)
61 clang::Token& Tok =
const_cast<clang::Token&
>(parser.getCurToken());
62 Tok.setKind(clang::tok::semi);
SemaParsingInitForAutoVarsRAII fSemaParsingInitForAutoVarsRAII
clang::Parser::ParserCurTokRestoreRAII fSavedCurToken
This namespace contains pre-defined functions to be used in conjuction with TExecutor::Map and TExecu...
~SemaParsingInitForAutoVarsRAII()
clang::Sema::DelayedInfoRAII fSemaInfoRAII
RAII used to store Parser, Sema, Preprocessor state for recursive parsing.
clang::Preprocessor::CleanupAndRestoreCacheRAII fCleanupRAII
clang::Sema::ContextAndScopeRAII fPushedDCAndS
cling::ParserStateRAII fParserRAII
ParsingStateRAII(clang::Parser &parser, clang::Sema &sema)
decltype(clang::Sema::ParsingInitForAutoVars) PIFAV_t
SemaParsingInitForAutoVarsRAII(PIFAV_t &PIFAV)