Skip to content

Commit eac0b67

Browse files
kimgrmordante
authored andcommitted
[docs] Fix include-what-you-use example
The --mapping_file switch was missing; the example would have been rejected. Reviewed By: #libc, Mordante Differential Revision: https://reviews.llvm.org/D157785
1 parent 69a8636 commit eac0b67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcxx/docs/UsingLibcxx.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ IWYU, you should run the tool like so:
133133

134134
.. code-block:: bash
135135
136-
$ include-what-you-use -Xiwyu /path/to/libcxx/include/libcxx.imp file.cpp
136+
$ include-what-you-use -Xiwyu --mapping_file=/path/to/libcxx/include/libcxx.imp file.cpp
137137
138138
If you would prefer to not use that flag, then you can replace ``/path/to/include-what-you-use/share/libcxx.imp``
139139
file with the libc++-provided ``libcxx.imp`` file.

0 commit comments

Comments
 (0)