/third_party/gn/src/gn/ |
D | tool.cc | 41 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::kCToolCxxModule) in CreateTool() 266 return std::make_unique<CTool>(CTool::kCToolCxxModule); in CreateTool() 267 else if (name == CTool::kCToolObjC) in CreateTool() [all …]
|
D | c_tool.cc | 11 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::kCToolSolink = "solink"; [all …]
|
D | ninja_target_command_util.cc | 16 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::PCH_MSVC: in GetPCHOutputFiles() [all …]
|
D | c_tool.h | 19 class CTool : public Tool { 41 CTool(const char* n); 42 ~CTool(); 51 CTool* AsC() override; 52 const CTool* AsC() const override; 122 CTool(const CTool&) = delete; 123 CTool& operator=(const CTool&) = delete;
|
D | ninja_c_binary_target_writer.cc | 65 if (name == CTool::kCToolCc) in GetPCHLangForToolType() 67 if (name == CTool::kCToolCxx) in GetPCHLangForToolType() 69 if (name == CTool::kCToolObjC) in GetPCHLangForToolType() 71 if (name == CTool::kCToolObjCxx) in GetPCHLangForToolType() 276 const CTool* tool_c = target_->toolchain()->GetToolAsC(CTool::kCToolCc); in WritePCHCommands() 277 if (tool_c && tool_c->precompiled_header_type() != CTool::PCH_NONE && in WritePCHCommands() 279 WritePCHCommand(&CSubstitutionCFlagsC, CTool::kCToolCc, in WritePCHCommands() 283 const CTool* tool_cxx = target_->toolchain()->GetToolAsC(CTool::kCToolCxx); in WritePCHCommands() 284 if (tool_cxx && tool_cxx->precompiled_header_type() != CTool::PCH_NONE && in WritePCHCommands() 286 WritePCHCommand(&CSubstitutionCFlagsCc, CTool::kCToolCxx, in WritePCHCommands() [all …]
|
D | ninja_binary_target_writer.cc | 241 const CTool* tool = source_set->toolchain()->GetToolAsC(CTool::kCToolCc); in AddSourceSetFiles() 242 if (tool && tool->precompiled_header_type() == CTool::PCH_MSVC) { in AddSourceSetFiles() 243 GetPCHOutputFiles(source_set, CTool::kCToolCc, &tool_outputs); in AddSourceSetFiles() 248 const CTool* tool = source_set->toolchain()->GetToolAsC(CTool::kCToolCxx); in AddSourceSetFiles() 249 if (tool && tool->precompiled_header_type() == CTool::PCH_MSVC) { in AddSourceSetFiles() 250 GetPCHOutputFiles(source_set, CTool::kCToolCxx, &tool_outputs); in AddSourceSetFiles() 255 const CTool* tool = in AddSourceSetFiles() 256 source_set->toolchain()->GetToolAsC(CTool::kCToolObjC); in AddSourceSetFiles() 257 if (tool && tool->precompiled_header_type() == CTool::PCH_MSVC) { in AddSourceSetFiles() 258 GetPCHOutputFiles(source_set, CTool::kCToolObjC, &tool_outputs); in AddSourceSetFiles() [all …]
|
D | test_with_scope.cc | 92 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_tool = solink_module->AsC(); in SetupToolchain() [all …]
|
D | compile_commands_writer_unittest.cc | 265 std::unique_ptr<Tool> cxx = Tool::CreateTool(CTool::kCToolCxx); in TEST_F() 266 CTool* cxx_tool = cxx->AsC(); in TEST_F() 273 cxx_tool->set_precompiled_header_type(CTool::PCH_MSVC); in TEST_F() 277 std::unique_ptr<Tool> cc = Tool::CreateTool(CTool::kCToolCc); in TEST_F() 278 CTool* cc_tool = cc->AsC(); in TEST_F() 285 cc_tool->set_precompiled_header_type(CTool::PCH_MSVC); in TEST_F() 413 std::unique_ptr<Tool> cxx = Tool::CreateTool(CTool::kCToolCxx); in TEST_F() 414 CTool* cxx_tool = cxx->AsC(); in TEST_F() 421 cxx_tool->set_precompiled_header_type(CTool::PCH_GCC); in TEST_F() 426 std::unique_ptr<Tool> cc = Tool::CreateTool(CTool::kCToolCc); in TEST_F() [all …]
|
D | toolchain.h | 63 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;
|
D | toolchain.cc | 68 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()
|
D | ninja_toolchain_writer_unittest.cc | 16 writer.WriteToolRule(setup.toolchain()->GetTool(CTool::kCToolCc), in TEST() 31 writer.WriteToolRule(setup.toolchain()->GetTool(CTool::kCToolCxx), in TEST()
|
D | ninja_toolchain_writer.cc | 96 if (CTool* c_tool = tool->AsC()) { in WriteToolRule() 97 if (c_tool->depsformat() == CTool::DEPS_GCC) { in WriteToolRule() 103 } else if (c_tool->depsformat() == CTool::DEPS_MSVC) { in WriteToolRule()
|
D | ninja_c_binary_target_writer_unittest.cc | 871 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::kCToolCxx); in TEST_F() 1017 CTool* cxx_tool = cxx->AsC(); in TEST_F() 1024 cxx_tool->set_precompiled_header_type(CTool::PCH_GCC); in TEST_F() 1029 std::unique_ptr<Tool> cc = std::make_unique<CTool>(CTool::kCToolCc); in TEST_F() [all …]
|
D | ninja_target_writer.cc | 210 const Tool* tool = target_->toolchain()->GetTool(CTool::kCToolLink); in WriteCCompilerVars() 268 has_precompiled_headers, CTool::kCToolCc, in WriteCCompilerVars() 278 CTool::kCToolCxx, &ConfigValues::cflags_cc, opts, path_output_, in WriteCCompilerVars() 286 CTool::kCToolObjC, &ConfigValues::cflags_objc, opts, in WriteCCompilerVars() 294 CTool::kCToolObjCxx, &ConfigValues::cflags_objcc, opts, in WriteCCompilerVars() 339 &CSubstitutionSwiftFlags, false, CTool::kCToolSwift, in WriteCCompilerVars()
|
D | ninja_c_binary_target_writer.h | 52 CTool::PrecompiledHeaderType header_type, 106 const CTool* tool_;
|
D | compile_commands_writer.cc | 118 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()
|
D | tool.h | 23 class CTool; variable 60 virtual CTool* AsC(); 61 virtual const CTool* AsC() const;
|
D | function_toolchain_unittest.cc | 63 const Tool* link = toolchain->GetTool(CTool::kCToolLink); in TEST_F() 156 const Tool* link = toolchain->GetTool(CTool::kCToolCxx); in TEST_F()
|
D | visual_studio_writer_unittest.cc | 178 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()
|
D | target_unittest.cc | 774 std::unique_ptr<Tool> solink = Tool::CreateTool(CTool::kCToolSolink); in TEST_F() 775 CTool* solink_tool = solink->AsC(); in TEST_F() 818 std::unique_ptr<Tool> solink = Tool::CreateTool(CTool::kCToolSolink); in TEST_F() 819 CTool* solink_tool = solink->AsC(); in TEST_F() 871 std::unique_ptr<Tool> tool = Tool::CreateTool(CTool::kCToolCxx); in TEST_F() 872 CTool* cxx = tool->AsC(); in TEST_F() 907 std::unique_ptr<Tool> tool = Tool::CreateTool(CTool::kCToolCxx); in TEST_F() 908 CTool* cxx = tool->AsC(); in TEST_F() 1667 std::unique_ptr<Tool> tool = Tool::CreateTool(CTool::kCToolCxxModule); in TEST_F() 1668 CTool* cxx_module = tool->AsC(); in TEST_F()
|
D | ninja_build_writer_unittest.cc | 99 other_toolchain.GetTool(CTool::kCToolLink) in TEST_F()
|
D | substitution_writer_unittest.cc | 297 std::unique_ptr<Tool> tool = Tool::CreateTool(CTool::kCToolLink); in TEST()
|
D | analyzer_unittest.cc | 443 std::unique_ptr<Tool> fake_tool = Tool::CreateTool(CTool::kCToolLink);
|
D | target.cc | 983 if (const CTool* ctool = tool->AsC()) { in FillOutputFiles()
|