- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for BlockOpen (0.1 sec)
-
tensorflow/c/experimental/ops/gen/cpp/renderers/renderer.h
} // Append a line of code which starts a new block: trailing with '{') and // indenting. Renderer &BlockOpen(const string &text); template <typename... Args> Renderer BlockOpen(absl::string_view text, const Args &...args) { return BlockOpen(absl::Substitute(text, args...)); } // Append a line of code ending a block: unindenting and adding '}'.
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
void Render() { CommentLine("File level comment."); CodeLine("#include \"header.h\""); BlankLine(); BlockOpen("void TestFunction()"); { Statement("int i = 1"); BlankLine(); BlockOpen("while (i == 1)"); { CommentLine("Do nothing, really...."); CodeLine("#if 0"); Statement("call()");
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
} Renderer& Renderer::CommentLine(const string& text) { context_.code.AddLineWithIndent(absl::StrCat("// ", text)); 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) {
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
: Renderer(context), op_(op), comment_(context, op) {} void OpRenderer::Render() { comment_.Render(); if (context_.mode == RendererContext::kHeader) { Statement(Signature()); } else { BlockOpen(Signature()); OpImplementationRenderer(context_, op_).Render(); BlockClose(); } BlankLine(); } } // namespace cpp } // namespace generator
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 28 05:51:40 UTC 2024 - 2.9K bytes - Viewed (0)