reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
44 compiler.createDiagnostics(); 45 compiler.getLangOpts().CPlusPlus = 1; 46 compiler.getLangOpts().CPlusPlus11 = 1; 48 compiler.getTargetOpts().Triple = llvm::Triple::normalize( 50 compiler.setTarget(clang::TargetInfo::CreateTargetInfo( 51 compiler.getDiagnostics(), 53 compiler.getTargetOpts()))); 55 compiler.createFileManager(); 56 compiler.createSourceManager(compiler.getFileManager()); 56 compiler.createSourceManager(compiler.getFileManager()); 57 compiler.createPreprocessor(clang::TU_Prefix); 59 compiler.createASTContext(); 61 compiler.setASTConsumer(std::unique_ptr<ASTConsumer>( 63 compiler.getDiagnostics(), 65 compiler.getHeaderSearchOpts(), 66 compiler.getPreprocessorOpts(), 67 compiler.getCodeGenOpts(), 70 compiler.createSema(clang::TU_Prefix, nullptr); 72 clang::SourceManager &sm = compiler.getSourceManager(); 76 clang::ParseAST(compiler.getSema(), false, false);