MCPcopy Create free account
hub / github.com/andreasfertig/cppinsights / CreateASTConsumer

Method CreateASTConsumer

Insights.cpp:310–319  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

308 }
309
310 std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance& CI, StringRef /*file*/) override
311 {
312 gCI = &CI;
313
314 Preprocessor& pp = CI.getPreprocessor();
315 pp.addPPCallbacks(std::make_unique<FindIncludes>(CI.getSourceManager(), pp, mIncludes));
316
317 mRewriter.setSourceMgr(CI.getSourceManager(), CI.getLangOpts());
318 return std::make_unique<CppInsightASTConsumer>(mRewriter, mIncludes);
319 }
320};
321//-----------------------------------------------------------------------------
322

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected