Home
last modified time | relevance | path

Searched refs:CTool (Results 1 - 24 of 24) sorted by relevance

/third_party/gn/src/gn/
H A Dc_tool.cc11 const char* CTool::kCToolCc = "cc";
12 const char* CTool::kCToolCxx = "cxx";
13 const char* CTool::kCToolCxxModule = "cxx_module";
14 const char* CTool::kCToolObjC = "objc";
15 const char* CTool::kCToolObjCxx = "objcxx";
16 const char* CTool::kCToolRc = "rc";
17 const char* CTool::kCToolAsm = "asm";
18 const char* CTool::kCToolSwift = "swift";
19 const char* CTool::kCToolAlink = "alink";
20 const char* CTool
24 CTool::CTool(const char* n) CTool() function in CTool
[all...]
H A Dtool.cc41 CTool* Tool::AsC() { in AsC()
45 const CTool* Tool::AsC() const { in AsC()
238 if (CTool* c_tool = tool->AsC()) { in CreateTool()
261 if (name == CTool::kCToolCc) in CreateTool()
262 return std::make_unique<CTool>(CTool::kCToolCc); in CreateTool()
263 else if (name == CTool::kCToolCxx) in CreateTool()
264 return std::make_unique<CTool>(CTool::kCToolCxx); in CreateTool()
265 else if (name == CTool in CreateTool()
[all...]
H A Dc_tool.h19 class CTool : public Tool { class
41 CTool(const char* n);
42 ~CTool();
51 CTool* AsC() override;
52 const CTool* AsC() const override;
125 CTool(const CTool&) = delete;
126 CTool& operator=(const CTool&) = delete;
H A Dninja_target_command_util.cc16 if (name == CTool::kCToolCc) in GetPCHLangSuffixForToolType()
18 if (name == CTool::kCToolCxx) in GetPCHLangSuffixForToolType()
20 if (name == CTool::kCToolObjC) in GetPCHLangSuffixForToolType()
22 if (name == CTool::kCToolObjCxx) in GetPCHLangSuffixForToolType()
65 const CTool* tool = target->toolchain()->GetToolAsC(tool_name); in WriteOneFlag()
66 if (tool && tool->precompiled_header_type() == CTool::PCH_MSVC) { in WriteOneFlag()
76 } else if (tool && tool->precompiled_header_type() == CTool::PCH_GCC) { in WriteOneFlag()
117 const CTool* tool = target->toolchain()->GetToolAsC(tool_name); in GetPCHOutputFiles()
139 CTool::PrecompiledHeaderType header_type = tool->precompiled_header_type(); in GetPCHOutputFiles()
141 case CTool in GetPCHOutputFiles()
[all...]
H A Dninja_c_binary_target_writer.cc66 if (name == CTool::kCToolCc) in GetPCHLangForToolType()
68 if (name == CTool::kCToolCxx) in GetPCHLangForToolType()
70 if (name == CTool::kCToolObjC) in GetPCHLangForToolType()
72 if (name == CTool::kCToolObjCxx) in GetPCHLangForToolType()
282 const CTool* tool_c = target_->toolchain()->GetToolAsC(CTool::kCToolCc); in WritePCHCommands()
283 if (tool_c && tool_c->precompiled_header_type() != CTool::PCH_NONE && in WritePCHCommands()
285 WritePCHCommand(&CSubstitutionCFlagsC, CTool::kCToolCc, in WritePCHCommands()
289 const CTool* tool_cxx = target_->toolchain()->GetToolAsC(CTool in WritePCHCommands()
[all...]
H A Dninja_binary_target_writer.cc225 const CTool* tool = source_set->toolchain()->GetToolAsC(CTool::kCToolCc); in AddSourceSetFiles()
226 if (tool && tool->precompiled_header_type() == CTool::PCH_MSVC) { in AddSourceSetFiles()
227 GetPCHOutputFiles(source_set, CTool::kCToolCc, &tool_outputs); in AddSourceSetFiles()
232 const CTool* tool = source_set->toolchain()->GetToolAsC(CTool::kCToolCxx); in AddSourceSetFiles()
233 if (tool && tool->precompiled_header_type() == CTool::PCH_MSVC) { in AddSourceSetFiles()
234 GetPCHOutputFiles(source_set, CTool::kCToolCxx, &tool_outputs); in AddSourceSetFiles()
239 const CTool* tool = in AddSourceSetFiles()
240 source_set->toolchain()->GetToolAsC(CTool in AddSourceSetFiles()
[all...]
H A Dtest_with_scope.cc92 std::unique_ptr<Tool> cc_tool = Tool::CreateTool(CTool::kCToolCc); in SetupToolchain()
102 std::unique_ptr<Tool> cxx_tool = Tool::CreateTool(CTool::kCToolCxx); in SetupToolchain()
113 std::unique_ptr<Tool> objc_tool = Tool::CreateTool(CTool::kCToolObjC); in SetupToolchain()
123 std::unique_ptr<Tool> objcxx_tool = Tool::CreateTool(CTool::kCToolObjCxx); in SetupToolchain()
135 std::unique_ptr<Tool> alink = Tool::CreateTool(CTool::kCToolAlink); in SetupToolchain()
136 CTool* alink_tool = alink->AsC(); in SetupToolchain()
146 std::unique_ptr<Tool> solink = Tool::CreateTool(CTool::kCToolSolink); in SetupToolchain()
147 CTool* solink_tool = solink->AsC(); in SetupToolchain()
172 Tool::CreateTool(CTool::kCToolSolinkModule); in SetupToolchain()
173 CTool* solink_module_too in SetupToolchain()
[all...]
H A Dtoolchain.h63 CTool* GetToolAsC(const char* name);
64 const CTool* GetToolAsC(const char* name) const;
97 const CTool* GetToolForSourceTypeAsC(SourceFile::Type type) const;
107 const CTool* GetToolForTargetFinalOutputAsC(const Target* target) const;
H A Dcompile_commands_writer_unittest.cc278 std::unique_ptr<Tool> cxx = Tool::CreateTool(CTool::kCToolCxx); in TEST_F()
279 CTool* cxx_tool = cxx->AsC(); in TEST_F()
286 cxx_tool->set_precompiled_header_type(CTool::PCH_MSVC); in TEST_F()
290 std::unique_ptr<Tool> cc = Tool::CreateTool(CTool::kCToolCc); in TEST_F()
291 CTool* cc_tool = cc->AsC(); in TEST_F()
298 cc_tool->set_precompiled_header_type(CTool::PCH_MSVC); in TEST_F()
426 std::unique_ptr<Tool> cxx = Tool::CreateTool(CTool::kCToolCxx); in TEST_F()
427 CTool* cxx_tool = cxx->AsC(); in TEST_F()
434 cxx_tool->set_precompiled_header_type(CTool::PCH_GCC); in TEST_F()
439 std::unique_ptr<Tool> cc = Tool::CreateTool(CTool in TEST_F()
[all...]
H A Dtoolchain.cc68 CTool* Toolchain::GetToolAsC(const char* name) { in GetToolAsC()
75 const CTool* Toolchain::GetToolAsC(const char* name) const { in GetToolAsC()
129 const CTool* Toolchain::GetToolForSourceTypeAsC(SourceFile::Type type) const { in GetToolForSourceTypeAsC()
152 const CTool* Toolchain::GetToolForTargetFinalOutputAsC( in GetToolForTargetFinalOutputAsC()
H A Dninja_toolchain_writer_unittest.cc16 writer.WriteToolRule(setup.toolchain()->GetTool(CTool::kCToolCc), in TEST()
31 writer.WriteToolRule(setup.toolchain()->GetTool(CTool::kCToolCxx), in TEST()
H A Dninja_toolchain_writer.cc97 if (CTool* c_tool = tool->AsC()) { in WriteToolRule()
98 if (c_tool->depsformat() == CTool::DEPS_GCC) { in WriteToolRule()
104 } else if (c_tool->depsformat() == CTool::DEPS_MSVC) { in WriteToolRule()
H A Dninja_c_binary_target_writer_unittest.cc871 std::unique_ptr<Tool> cxx = std::make_unique<CTool>(CTool::kCToolCxx); in TEST_F()
872 CTool* cxx_tool = cxx->AsC(); in TEST_F()
879 cxx_tool->set_precompiled_header_type(CTool::PCH_MSVC); in TEST_F()
883 std::unique_ptr<Tool> cc = std::make_unique<CTool>(CTool::kCToolCc); in TEST_F()
884 CTool* cc_tool = cc->AsC(); in TEST_F()
891 cc_tool->set_precompiled_header_type(CTool::PCH_MSVC); in TEST_F()
1016 std::unique_ptr<Tool> cxx = std::make_unique<CTool>(CTool in TEST_F()
[all...]
H A Dninja_target_writer.cc279 const Tool* tool = target_->toolchain()->GetTool(CTool::kCToolLink); in WriteCCompilerVars()
337 has_precompiled_headers, CTool::kCToolCc, in WriteCCompilerVars()
347 CTool::kCToolCxx, &ConfigValues::cflags_cc, opts, path_output_, in WriteCCompilerVars()
355 CTool::kCToolObjC, &ConfigValues::cflags_objc, opts, in WriteCCompilerVars()
363 CTool::kCToolObjCxx, &ConfigValues::cflags_objcc, opts, in WriteCCompilerVars()
408 &CSubstitutionSwiftFlags, false, CTool::kCToolSwift, in WriteCCompilerVars()
H A Dninja_c_binary_target_writer.h52 CTool::PrecompiledHeaderType header_type,
114 const CTool* tool_;
H A Dtool.h23 class CTool;
60 virtual CTool* AsC();
61 virtual const CTool* AsC() const;
H A Dfunction_toolchain_unittest.cc63 const Tool* link = toolchain->GetTool(CTool::kCToolLink); in TEST_F()
156 const Tool* link = toolchain->GetTool(CTool::kCToolCxx); in TEST_F()
H A Dcompile_commands_writer.cc118 CTool::kCToolCc, &ConfigValues::cflags_c); in SetupCompileFlags()
122 CTool::kCToolCxx, &ConfigValues::cflags_cc); in SetupCompileFlags()
126 has_precompiled_headers, CTool::kCToolObjC, &ConfigValues::cflags_objc); in SetupCompileFlags()
130 has_precompiled_headers, CTool::kCToolObjCxx, in SetupCompileFlags()
H A Dtarget_unittest.cc522 std::unique_ptr<Tool> solink = Tool::CreateTool(CTool::kCToolSolink); in TEST_F()
523 CTool* solink_tool = solink->AsC(); in TEST_F()
566 std::unique_ptr<Tool> solink = Tool::CreateTool(CTool::kCToolSolink); in TEST_F()
567 CTool* solink_tool = solink->AsC(); in TEST_F()
619 std::unique_ptr<Tool> tool = Tool::CreateTool(CTool::kCToolCxx); in TEST_F()
620 CTool* cxx = tool->AsC(); in TEST_F()
655 std::unique_ptr<Tool> tool = Tool::CreateTool(CTool::kCToolCxx); in TEST_F()
656 CTool* cxx = tool->AsC(); in TEST_F()
1382 std::unique_ptr<Tool> tool = Tool::CreateTool(CTool::kCToolCxxModule); in TEST_F()
1383 CTool* cxx_modul in TEST_F()
[all...]
H A Dvisual_studio_writer_unittest.cc178 std::unique_ptr<Tool> tool = Tool::CreateTool(CTool::kCToolAlink); in TEST_F()
213 std::unique_ptr<Tool> tool = Tool::CreateTool(CTool::kCToolAlink); in TEST_F()
H A Dsubstitution_writer_unittest.cc297 std::unique_ptr<Tool> tool = Tool::CreateTool(CTool::kCToolLink); in TEST()
H A Danalyzer_unittest.cc443 std::unique_ptr<Tool> fake_tool = Tool::CreateTool(CTool::kCToolLink);
H A Dninja_build_writer_unittest.cc100 other_toolchain.GetTool(CTool::kCToolLink) in TEST_F()
H A Dtarget.cc987 if (const CTool* ctool = tool->AsC()) { in FillOutputFiles()

Completed in 16 milliseconds