Lines Matching refs:m_compiler
363 : ExpressionParser(exe_scope, expr, generate_debug_info), m_compiler(), in ClangExpressionParser()
391 m_compiler = std::make_unique<CompilerInstance>(); in ClangExpressionParser()
397 m_compiler->setModuleDepCollector( in ClangExpressionParser()
400 DependencyOutputOptions &opts = m_compiler->getDependencyOutputOpts(); in ClangExpressionParser()
406 m_compiler->createFileManager(FileSystem::Instance().GetVirtualFileSystem()); in ClangExpressionParser()
440 m_compiler->getTargetOpts().Triple = triple; in ClangExpressionParser()
442 m_compiler->getTargetOpts().Triple.c_str()); in ClangExpressionParser()
450 m_compiler->getTargetOpts().Triple = llvm::sys::getDefaultTargetTriple(); in ClangExpressionParser()
452 m_compiler->getTargetOpts().Triple.c_str()); in ClangExpressionParser()
456 if (m_compiler->getTargetOpts().Triple.find("arm64") == std::string::npos && in ClangExpressionParser()
457 m_compiler->getTargetOpts().Triple.find("arm") != std::string::npos && in ClangExpressionParser()
458 m_compiler->getTargetOpts().Triple.find("ios") != std::string::npos) { in ClangExpressionParser()
459 m_compiler->getTargetOpts().ABI = "apcs-gnu"; in ClangExpressionParser()
464 m_compiler->getTargetOpts().Features.push_back("+sse"); in ClangExpressionParser()
465 m_compiler->getTargetOpts().Features.push_back("+sse2"); in ClangExpressionParser()
471 m_compiler->getTargetOpts().CPU = target_arch.GetClangTargetCPU(); in ClangExpressionParser()
476 m_compiler->getTargetOpts().ABI = abi; in ClangExpressionParser()
488 renderscript_rt->GetOverrideExprOptions(m_compiler->getTargetOpts()); in ClangExpressionParser()
495 auto opts = m_compiler->getTargetOpts(); in ClangExpressionParser()
506 m_compiler->createDiagnostics(); in ClangExpressionParser()
509 m_compiler->getDiagnostics().setErrorLimit(target_sp->GetExprErrorLimit()); in ClangExpressionParser()
512 m_compiler->getDiagnostics(), m_compiler->getInvocation().TargetOpts); in ClangExpressionParser()
522 m_compiler->setTarget(target_info); in ClangExpressionParser()
524 assert(m_compiler->hasTarget()); in ClangExpressionParser()
528 LangOptions &lang_opts = m_compiler->getLangOpts(); in ClangExpressionParser()
560 m_compiler->getHeaderSearchOpts().UseLibcxx = true; in ClangExpressionParser()
574 m_compiler->getHeaderSearchOpts().UseLibcxx = true; in ClangExpressionParser()
586 lang_opts.CharIsSigned = ArchSpec(m_compiler->getTargetOpts().Triple.c_str()) in ClangExpressionParser()
618 SetupModuleHeaderPaths(m_compiler.get(), m_include_directories, in ClangExpressionParser()
645 m_compiler->getCodeGenOpts().EmitDeclMetadata = true; in ClangExpressionParser()
646 m_compiler->getCodeGenOpts().InstrumentFunctions = false; in ClangExpressionParser()
647 m_compiler->getCodeGenOpts().setFramePointer( in ClangExpressionParser()
650 m_compiler->getCodeGenOpts().setDebugInfo(codegenoptions::FullDebugInfo); in ClangExpressionParser()
652 m_compiler->getCodeGenOpts().setDebugInfo(codegenoptions::NoDebugInfo); in ClangExpressionParser()
655 SetupDefaultClangDiagnostics(*m_compiler); in ClangExpressionParser()
661 m_compiler->getTarget().adjust(m_compiler->getDiagnostics(), in ClangExpressionParser()
662 m_compiler->getLangOpts()); in ClangExpressionParser()
667 m_compiler->getDiagnostics().getDiagnosticOptions()); in ClangExpressionParser()
668 m_compiler->getDiagnostics().setClient(diag_mgr); in ClangExpressionParser()
671 m_compiler->createFileManager(); in ClangExpressionParser()
672 if (!m_compiler->hasSourceManager()) in ClangExpressionParser()
673 m_compiler->createSourceManager(m_compiler->getFileManager()); in ClangExpressionParser()
674 m_compiler->createPreprocessor(TU_Complete); in ClangExpressionParser()
685 RemoveAllCppKeywords(m_compiler->getPreprocessor().getIdentifierTable()); in ClangExpressionParser()
698 m_compiler->getSourceManager())); in ClangExpressionParser()
701 m_compiler->getPreprocessor().addPPCallbacks(std::move(pp_callbacks)); in ClangExpressionParser()
708 auto &PP = m_compiler->getPreprocessor(); in ClangExpressionParser()
711 m_compiler->getLangOpts()); in ClangExpressionParser()
713 m_compiler->createASTContext(); in ClangExpressionParser()
714 clang::ASTContext &ast_context = m_compiler->getASTContext(); in ClangExpressionParser()
723 m_compiler->getDiagnostics(), module_name, in ClangExpressionParser()
724 m_compiler->getHeaderSearchOpts(), m_compiler->getPreprocessorOpts(), in ClangExpressionParser()
725 m_compiler->getCodeGenOpts(), *m_llvm_context)); in ClangExpressionParser()
1020 CodeComplete CC(m_compiler->getLangOpts(), llvm_expr->GetUserText(), in Complete()
1041 m_compiler->getDiagnostics().getClient()); in ParseInternal()
1047 clang::SourceManager &source_mgr = m_compiler->getSourceManager(); in ParseInternal()
1057 should_create_file |= m_compiler->getCodeGenOpts().getDebugInfo() == in ParseInternal()
1078 if (auto fileEntry = m_compiler->getFileManager().getOptionalFileRef( in ParseInternal()
1096 adapter->BeginSourceFile(m_compiler->getLangOpts(), in ParseInternal()
1097 &m_compiler->getPreprocessor()); in ParseInternal()
1108 auto &PP = m_compiler->getPreprocessor(); in ParseInternal()
1128 clang::ASTContext &ast_context = m_compiler->getASTContext(); in ParseInternal()
1130 m_compiler->setSema(new Sema(m_compiler->getPreprocessor(), ast_context, in ParseInternal()
1132 m_compiler->setASTConsumer(std::move(Consumer)); in ParseInternal()
1135 m_compiler->createASTReader(); in ParseInternal()
1136 m_ast_context->setSema(&m_compiler->getSema()); in ParseInternal()
1141 decl_map->InstallCodeGenerator(&m_compiler->getASTConsumer()); in ParseInternal()
1164 assert(m_compiler->getASTContext().getExternalSource() && in ParseInternal()
1166 assert(m_compiler->getSema().getExternalSource() && in ParseInternal()
1172 &m_compiler->getSema()); in ParseInternal()
1173 ParseAST(m_compiler->getSema(), false, false); in ParseInternal()
1181 m_compiler->setSema(nullptr); in ParseInternal()
1250 clang::SourceManager &source_manager = m_compiler->getSourceManager(); in RewriteExpression()
1251 clang::edit::EditedSource editor(source_manager, m_compiler->getLangOpts(), in RewriteExpression()
1254 clang::Rewriter rewriter(source_manager, m_compiler->getLangOpts()); in RewriteExpression()
1391 m_compiler->getTargetOpts().Features); in PrepareForExecution()