Home
last modified time | relevance | path

Searched refs:RustTool (Results 1 – 10 of 10) sorted by relevance

/third_party/gn/src/gn/
Drust_tool.cc10 const char* RustTool::kRsToolBin = "rust_bin";
11 const char* RustTool::kRsToolCDylib = "rust_cdylib";
12 const char* RustTool::kRsToolDylib = "rust_dylib";
13 const char* RustTool::kRsToolMacro = "rust_macro";
14 const char* RustTool::kRsToolRlib = "rust_rlib";
15 const char* RustTool::kRsToolStaticlib = "rust_staticlib";
17 RustTool::RustTool(const char* n) : Tool(n) { in RustTool() function in RustTool
26 RustTool::~RustTool() = default;
28 RustTool* RustTool::AsRust() { in AsRust()
31 const RustTool* RustTool::AsRust() const { in AsRust()
[all …]
Dtool.cc49 RustTool* Tool::AsRust() { in AsRust()
52 const RustTool* Tool::AsRust() const { in AsRust()
248 if (RustTool* rust_tool = tool->AsRust()) { in CreateTool()
301 else if (name == RustTool::kRsToolBin) in CreateTool()
302 return std::make_unique<RustTool>(RustTool::kRsToolBin); in CreateTool()
303 else if (name == RustTool::kRsToolCDylib) in CreateTool()
304 return std::make_unique<RustTool>(RustTool::kRsToolCDylib); in CreateTool()
305 else if (name == RustTool::kRsToolDylib) in CreateTool()
306 return std::make_unique<RustTool>(RustTool::kRsToolDylib); in CreateTool()
307 else if (name == RustTool::kRsToolMacro) in CreateTool()
[all …]
Drust_tool.h21 class RustTool : public Tool {
31 explicit RustTool(const char* n);
32 ~RustTool();
42 RustTool* AsRust() override;
43 const RustTool* AsRust() const override;
56 RustTool(const RustTool&) = delete;
57 RustTool& operator=(const RustTool&) = delete;
Dtoolchain.h65 RustTool* GetToolAsRust(const char* name);
66 const RustTool* GetToolAsRust(const char* name) const;
99 const RustTool* GetToolForSourceTypeAsRust(SourceFile::Type type) const;
110 const RustTool* GetToolForTargetFinalOutputAsRust(const Target* target) const;
Dtoolchain.cc82 RustTool* Toolchain::GetToolAsRust(const char* name) { in GetToolAsRust()
89 const RustTool* Toolchain::GetToolAsRust(const char* name) const { in GetToolAsRust()
138 const RustTool* Toolchain::GetToolForSourceTypeAsRust( in GetToolForSourceTypeAsRust()
162 const RustTool* Toolchain::GetToolForTargetFinalOutputAsRust( in GetToolForTargetFinalOutputAsRust()
Dtest_with_scope.cc224 std::unique_ptr<Tool> rustc_tool = Tool::CreateTool(RustTool::kRsToolBin); in SetupToolchain()
246 std::unique_ptr<Tool> cdylib_tool = Tool::CreateTool(RustTool::kRsToolCDylib); in SetupToolchain()
259 std::unique_ptr<Tool> dylib_tool = Tool::CreateTool(RustTool::kRsToolDylib); in SetupToolchain()
273 Tool::CreateTool(RustTool::kRsToolMacro); in SetupToolchain()
286 std::unique_ptr<Tool> rlib_tool = Tool::CreateTool(RustTool::kRsToolRlib); in SetupToolchain()
300 Tool::CreateTool(RustTool::kRsToolStaticlib); in SetupToolchain()
Dtool.h25 class RustTool; variable
64 virtual RustTool* AsRust();
65 virtual const RustTool* AsRust() const;
Dninja_rust_binary_target_writer.h42 const RustTool* tool_;
Drust_project_writer.cc325 std::string_view(RustTool::kRsToolMacro)) { in AddTarget()
332 std::string_view(RustTool::kRsToolMacro)) { in AddTarget()
Dfunction_toolchain_unittest.cc111 const Tool* rust = toolchain->GetTool(RustTool::kRsToolBin); in TEST_F()