- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for BlockClose (0.23 sec)
-
tensorflow/c/experimental/ops/gen/cpp/renderers/renderer.h
// Note: optional trailing text is often a comment, e.g. '// namespace xyz'. Renderer &BlockClose(const string &text = ""); template <typename... Args> Renderer BlockClose(absl::string_view text, const Args &...args) { return BlockClose(absl::Substitute(text, args...)); } protected: RendererContext context_; }; } // namespace cpp } // namespace generator
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 28 05:51:40 UTC 2024 - 3.7K bytes - Viewed (0) -
tensorflow/c/experimental/ops/gen/cpp/renderers/renderer_test.cc
BlockOpen("while (i == 1)"); { CommentLine("Do nothing, really...."); CodeLine("#if 0"); Statement("call()"); CodeLine("#endif"); BlockClose(); } BlockClose(" // comment ending TestFunction"); } } }; SourceCode code; TestRenderer(code).Render(); string expected = R"(// File level comment. #include "header.h"
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 28 05:51:40 UTC 2024 - 2.3K bytes - Viewed (0) -
tensorflow/c/experimental/ops/gen/cpp/renderers/renderer.cc
return *this; } Renderer& Renderer::BlockOpen(const string& text) { context_.code.AddLineWithIndent(absl::StrCat(text, " {")); context_.code.IncreaseIndent(); return *this; } Renderer& Renderer::BlockClose(const string& text) { context_.code.DecreaseIndent(); context_.code.AddLineWithIndent(absl::StrCat("}", text)); return *this; } } // namespace cpp } // namespace generator
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 28 05:51:40 UTC 2024 - 2.6K bytes - Viewed (0) -
tensorflow/c/experimental/ops/gen/cpp/renderers/op_renderer.cc
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 28 05:51:40 UTC 2024 - 2.9K bytes - Viewed (0)