[PATCH] D152109: Update clang-repl documentation
Vassil Vassilev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 9 23:58:32 PDT 2023
v.g.vassilev added inline comments.
================
Comment at: clang/docs/ClangRepl.rst:119
+ clang-repl> int c = sum(9,10);
+ clang-repl> std::cout << c;
+ 19clang-repl>
----------------
================
Comment at: clang/docs/ClangRepl.rst:120
+ clang-repl> std::cout << c;
+ 19clang-repl>
+
----------------
================
Comment at: clang/docs/ClangRepl.rst:145
+
+ clang-repl> #include<iostream>
+ clang-repl> class Rectangle {int width, height; public: void set_values (int,int);int area() {return width*height;}};
----------------
================
Comment at: clang/docs/ClangRepl.rst:146
+ clang-repl> #include<iostream>
+ clang-repl> class Rectangle {int width, height; public: void set_values (int,int);int area() {return width*height;}};
+ clang-repl> void Rectangle::set_values (int x, int y) { width = x;height = y;}
----------------
We can use `\` to break lines.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D152109/new/
https://reviews.llvm.org/D152109
More information about the cfe-commits
mailing list