| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected