[PATCH] D126947: [clang][doc][NFC] Update get_started.html

Sheng via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 2 23:43:00 PDT 2022


0x59616e created this revision.
Herald added a project: All.
0x59616e requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

-cc1 is replaced by -Xclang. Update get_started.html
to reflect this change.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D126947

Files:
  clang/www/get_started.html


Index: clang/www/get_started.html
===================================================================
--- clang/www/get_started.html
+++ clang/www/get_started.html
@@ -279,13 +279,13 @@
 
 <h3>Pretty printing from the AST:</h3>
 
-<p>Note, the <tt>-cc1</tt> argument indicates the compiler front-end, and
+<p>Note, the <tt>-Xclang</tt> argument indicates the compiler front-end, and
 not the driver, should be run. The compiler front-end has several additional
 Clang specific features which are not exposed through the GCC compatible driver
 interface.</p>
 
 <pre class="code">
-$ <b>clang -cc1 ~/t.c -ast-print</b>
+$ <b>clang -Xclang ~/t.c -ast-print</b>
 typedef float V __attribute__(( vector_size(16) ));
 V foo(V a, V b) {
    return a + b * a;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D126947.433964.patch
Type: text/x-patch
Size: 753 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220603/e7f7be8f/attachment.bin>


More information about the cfe-commits mailing list