[libcxx-commits] [PATCH] D157785: [docs] Fix include-what-you-use example

Kim Gräsman via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Sat Aug 12 08:33:03 PDT 2023


kimgr created this revision.
Herald added a project: All.
kimgr requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.

The --mapping_file switch was missing; the example would have been
rejected.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D157785

Files:
  libcxx/docs/UsingLibcxx.rst


Index: libcxx/docs/UsingLibcxx.rst
===================================================================
--- libcxx/docs/UsingLibcxx.rst
+++ libcxx/docs/UsingLibcxx.rst
@@ -133,7 +133,7 @@
 
 .. code-block:: bash
 
-  $ include-what-you-use -Xiwyu /path/to/libcxx/include/libcxx.imp file.cpp
+  $ include-what-you-use -Xiwyu --mapping_file=/path/to/libcxx/include/libcxx.imp file.cpp
 
 If you would prefer to not use that flag, then you can replace ``/path/to/include-what-you-use/share/libcxx.imp``
 file with the libc++-provided ``libcxx.imp`` file.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D157785.549616.patch
Type: text/x-patch
Size: 551 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20230812/9977080d/attachment.bin>


More information about the libcxx-commits mailing list