reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
114 compiler.createDiagnostics(); 115 compiler.getLangOpts().CPlusPlus = 1; 116 compiler.getLangOpts().CPlusPlus11 = 1; 118 compiler.getTargetOpts().Triple = llvm::Triple::normalize( 120 compiler.setTarget(clang::TargetInfo::CreateTargetInfo( 121 compiler.getDiagnostics(), 123 compiler.getTargetOpts()))); 125 compiler.createFileManager(); 126 compiler.createSourceManager(compiler.getFileManager()); 126 compiler.createSourceManager(compiler.getFileManager()); 127 compiler.createPreprocessor(clang::TU_Prefix); 128 compiler.getPreprocessor().enableIncrementalProcessing(); 130 compiler.createASTContext(); 134 compiler.getDiagnostics(), 136 compiler.getHeaderSearchOpts(), 137 compiler.getPreprocessorOpts(), 138 compiler.getCodeGenOpts(), 140 compiler.setASTConsumer(std::unique_ptr<ASTConsumer>(CG)); 141 compiler.createSema(clang::TU_Prefix, nullptr); 142 Sema& S = compiler.getSema(); 149 M[0] = IncrementalParseAST(compiler, P, *CG, nullptr); 152 M[1] = IncrementalParseAST(compiler, P, *CG, TestProgram1); 156 M[2] = IncrementalParseAST(compiler, P, *CG, TestProgram2);