[PATCH] D156858: Add Documentation for Execution Results Handling in Clang-REPL
QuillPusher via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Aug 13 06:46:44 PDT 2023
QuillPusher added inline comments.
================
Comment at: clang/docs/ClangRepl.rst:393-396
+
+.. image:: autoprint.png
+ :align: center
+ :alt: autoprint design
----------------
Please replace the image reference with the following Graphviz code (do not delete the image .png for now, we need to commit and see if graphviz works out of the box).
.. graphviz::
:name: automaticprintf
:caption: Automatic PrintF
:alt: Shows how Automatic PrintF can be used
:align: center
digraph "AutomaticPrintF" {
size="6,4";
rankdir="LR";
graph [fontname="Verdana", fontsize="12"];
node [fontname="Verdana", fontsize="12"];
edge [fontname="Sans", fontsize="9"];
manual [label=" Manual PrintF ", shape="box"];
int1 [label=" int ( &) 42 ", shape="box"]
auto [label=" Automatic PrintF ", shape="box"];
int2 [label=" int ( &) 42 ", shape="box"]
auto -> int2 [label="int x = 42; \n x"];
manual -> int1 [label="int x = 42; \n printf("(int &) %d \\n", x);"];
}
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D156858/new/
https://reviews.llvm.org/D156858
More information about the cfe-commits
mailing list