[PATCH] D27598: [asan][docs] Fix the documentation to use clang++ for the C++ example

Phabricator via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 15 15:05:49 PST 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL289887: [asan][docs] Fix the documentation to use clang++ for the C++ example (authored by zaks).

Changed prior to commit:
  https://reviews.llvm.org/D27598?vs=80841&id=81670#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D27598

Files:
  cfe/trunk/docs/AddressSanitizer.rst


Index: cfe/trunk/docs/AddressSanitizer.rst
===================================================================
--- cfe/trunk/docs/AddressSanitizer.rst
+++ cfe/trunk/docs/AddressSanitizer.rst
@@ -49,16 +49,16 @@
     }
 
     # Compile and link
-    % clang -O1 -g -fsanitize=address -fno-omit-frame-pointer example_UseAfterFree.cc
+    % clang++ -O1 -g -fsanitize=address -fno-omit-frame-pointer example_UseAfterFree.cc
 
 or:
 
 .. code-block:: console
 
     # Compile
-    % clang -O1 -g -fsanitize=address -fno-omit-frame-pointer -c example_UseAfterFree.cc
+    % clang++ -O1 -g -fsanitize=address -fno-omit-frame-pointer -c example_UseAfterFree.cc
     # Link
-    % clang -g -fsanitize=address example_UseAfterFree.o
+    % clang++ -g -fsanitize=address example_UseAfterFree.o
 
 If a bug is detected, the program will print an error message to stderr and
 exit with a non-zero exit code. AddressSanitizer exits on the first detected error.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27598.81670.patch
Type: text/x-patch
Size: 947 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161215/e53b3282/attachment.bin>


More information about the llvm-commits mailing list