Lines Matching refs:m_compiler
364 : ExpressionParser(exe_scope, expr, generate_debug_info), m_compiler(), in ClangExpressionParser()
392 m_compiler = std::make_unique<CompilerInstance>(); in ClangExpressionParser()
398 m_compiler->setModuleDepCollector( in ClangExpressionParser()
401 DependencyOutputOptions &opts = m_compiler->getDependencyOutputOpts(); in ClangExpressionParser()
407 m_compiler->createFileManager(FileSystem::Instance().GetVirtualFileSystem()); in ClangExpressionParser()
441 m_compiler->getTargetOpts().Triple = triple; in ClangExpressionParser()
443 m_compiler->getTargetOpts().Triple.c_str()); in ClangExpressionParser()
451 m_compiler->getTargetOpts().Triple = llvm::sys::getDefaultTargetTriple(); in ClangExpressionParser()
453 m_compiler->getTargetOpts().Triple.c_str()); in ClangExpressionParser()
457 if (m_compiler->getTargetOpts().Triple.find("arm64") == std::string::npos && in ClangExpressionParser()
458 m_compiler->getTargetOpts().Triple.find("arm") != std::string::npos && in ClangExpressionParser()
459 m_compiler->getTargetOpts().Triple.find("ios") != std::string::npos) { in ClangExpressionParser()
460 m_compiler->getTargetOpts().ABI = "apcs-gnu"; in ClangExpressionParser()
465 m_compiler->getTargetOpts().Features.push_back("+sse"); in ClangExpressionParser()
466 m_compiler->getTargetOpts().Features.push_back("+sse2"); in ClangExpressionParser()
472 m_compiler->getTargetOpts().CPU = target_arch.GetClangTargetCPU(); in ClangExpressionParser()
477 m_compiler->getTargetOpts().ABI = abi; in ClangExpressionParser()
489 renderscript_rt->GetOverrideExprOptions(m_compiler->getTargetOpts()); in ClangExpressionParser()
496 auto opts = m_compiler->getTargetOpts(); in ClangExpressionParser()
507 m_compiler->createDiagnostics(); in ClangExpressionParser()
510 m_compiler->getDiagnostics().setErrorLimit(target_sp->GetExprErrorLimit()); in ClangExpressionParser()
513 m_compiler->getDiagnostics(), m_compiler->getInvocation().TargetOpts); in ClangExpressionParser()
523 m_compiler->setTarget(target_info); in ClangExpressionParser()
525 assert(m_compiler->hasTarget()); in ClangExpressionParser()
529 LangOptions &lang_opts = m_compiler->getLangOpts(); in ClangExpressionParser()
561 m_compiler->getHeaderSearchOpts().UseLibcxx = true; in ClangExpressionParser()
575 m_compiler->getHeaderSearchOpts().UseLibcxx = true; in ClangExpressionParser()
587 lang_opts.CharIsSigned = ArchSpec(m_compiler->getTargetOpts().Triple.c_str()) in ClangExpressionParser()
619 SetupModuleHeaderPaths(m_compiler.get(), m_include_directories, in ClangExpressionParser()
646 m_compiler->getCodeGenOpts().EmitDeclMetadata = true; in ClangExpressionParser()
647 m_compiler->getCodeGenOpts().InstrumentFunctions = false; in ClangExpressionParser()
648 m_compiler->getCodeGenOpts().setFramePointer( in ClangExpressionParser()
651 m_compiler->getCodeGenOpts().setDebugInfo(codegenoptions::FullDebugInfo); in ClangExpressionParser()
653 m_compiler->getCodeGenOpts().setDebugInfo(codegenoptions::NoDebugInfo); in ClangExpressionParser()
656 SetupDefaultClangDiagnostics(*m_compiler); in ClangExpressionParser()
662 m_compiler->getTarget().adjust(m_compiler->getDiagnostics(), in ClangExpressionParser()
663 m_compiler->getLangOpts()); in ClangExpressionParser()
668 m_compiler->getDiagnostics().getDiagnosticOptions()); in ClangExpressionParser()
669 m_compiler->getDiagnostics().setClient(diag_mgr); in ClangExpressionParser()
672 m_compiler->createFileManager(); in ClangExpressionParser()
673 if (!m_compiler->hasSourceManager()) in ClangExpressionParser()
674 m_compiler->createSourceManager(m_compiler->getFileManager()); in ClangExpressionParser()
675 m_compiler->createPreprocessor(TU_Complete); in ClangExpressionParser()
686 RemoveAllCppKeywords(m_compiler->getPreprocessor().getIdentifierTable()); in ClangExpressionParser()
699 m_compiler->getSourceManager())); in ClangExpressionParser()
702 m_compiler->getPreprocessor().addPPCallbacks(std::move(pp_callbacks)); in ClangExpressionParser()
709 auto &PP = m_compiler->getPreprocessor(); in ClangExpressionParser()
712 m_compiler->getLangOpts()); in ClangExpressionParser()
714 m_compiler->createASTContext(); in ClangExpressionParser()
715 clang::ASTContext &ast_context = m_compiler->getASTContext(); in ClangExpressionParser()
724 m_compiler->getDiagnostics(), module_name, in ClangExpressionParser()
725 &m_compiler->getVirtualFileSystem(), m_compiler->getHeaderSearchOpts(), in ClangExpressionParser()
726 m_compiler->getPreprocessorOpts(), m_compiler->getCodeGenOpts(), in ClangExpressionParser()
1023 CodeComplete CC(m_compiler->getLangOpts(), llvm_expr->GetUserText(), in Complete()
1044 m_compiler->getDiagnostics().getClient()); in ParseInternal()
1050 clang::SourceManager &source_mgr = m_compiler->getSourceManager(); in ParseInternal()
1060 should_create_file |= m_compiler->getCodeGenOpts().getDebugInfo() == in ParseInternal()
1081 if (auto fileEntry = m_compiler->getFileManager().getOptionalFileRef( in ParseInternal()
1099 adapter->BeginSourceFile(m_compiler->getLangOpts(), in ParseInternal()
1100 &m_compiler->getPreprocessor()); in ParseInternal()
1111 auto &PP = m_compiler->getPreprocessor(); in ParseInternal()
1131 clang::ASTContext &ast_context = m_compiler->getASTContext(); in ParseInternal()
1133 m_compiler->setSema(new Sema(m_compiler->getPreprocessor(), ast_context, in ParseInternal()
1135 m_compiler->setASTConsumer(std::move(Consumer)); in ParseInternal()
1138 m_compiler->createASTReader(); in ParseInternal()
1139 m_ast_context->setSema(&m_compiler->getSema()); in ParseInternal()
1144 decl_map->InstallCodeGenerator(&m_compiler->getASTConsumer()); in ParseInternal()
1167 assert(m_compiler->getASTContext().getExternalSource() && in ParseInternal()
1169 assert(m_compiler->getSema().getExternalSource() && in ParseInternal()
1175 &m_compiler->getSema()); in ParseInternal()
1176 ParseAST(m_compiler->getSema(), false, false); in ParseInternal()
1184 m_compiler->setSema(nullptr); in ParseInternal()
1253 clang::SourceManager &source_manager = m_compiler->getSourceManager(); in RewriteExpression()
1254 clang::edit::EditedSource editor(source_manager, m_compiler->getLangOpts(), in RewriteExpression()
1257 clang::Rewriter rewriter(source_manager, m_compiler->getLangOpts()); in RewriteExpression()
1394 m_compiler->getTargetOpts().Features); in PrepareForExecution()