summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWieland Hoffmann <themineo@gmail.com>2017-01-16 19:39:15 +0100
committerKim Gräsman <kim.grasman@gmail.com>2017-01-22 16:05:06 +0100
commitf5e3a3e68261c14418673a1385978ab492247105 (patch)
tree70e7f8b2c4797c27bb2696555543b91ddecd0b30
parentb217a90c66ef65724123a3485fe5b3f0dc9fb36d (diff)
How to Run: Redirect stderr to /tmp/iwyu.out
The messages from include-what-you-use are printed on stderr, so redirect that to the log file.
-rw-r--r--README.md4
-rw-r--r--docs/InstructionsForUsers.md2
2 files changed, 3 insertions, 3 deletions
diff --git a/README.md b/README.md
index 032471c..0bccb06 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
# Include What You Use #
-This README was generated on 2016-02-01 00:55:37 UTC.
+This README was generated on 2017-01-16 18:38:58 UTC.
For more in-depth documentation, see http://github.com/include-what-you-use/include-what-you-use/tree/master/docs.
@@ -98,7 +98,7 @@ Include-what-you-use only analyzes .cc (or .cpp) files built by `make`, along wi
We also include, in this directory, a tool that automatically fixes up your source files based on the IWYU recommendations. This is also alpha-quality software! Here's how to use it (requires python):
- make -k CXX=/path/to/llvm/Debug+Asserts/bin/include-what-you-use > /tmp/iwyu.out
+ make -k CXX=/path/to/llvm/Debug+Asserts/bin/include-what-you-use 2> /tmp/iwyu.out
python fix_includes.py < /tmp/iwyu.out
If you don't like the way `fix_includes.py` munges your `#include` lines, you can control its behavior via flags. `fix_includes.py --help` will give a full list, but these are some common ones:
diff --git a/docs/InstructionsForUsers.md b/docs/InstructionsForUsers.md
index 826d7b4..905bc6a 100644
--- a/docs/InstructionsForUsers.md
+++ b/docs/InstructionsForUsers.md
@@ -91,7 +91,7 @@ Include-what-you-use only analyzes .cc (or .cpp) files built by `make`, along wi
We also include, in this directory, a tool that automatically fixes up your source files based on the IWYU recommendations. This is also alpha-quality software! Here's how to use it (requires python):
- make -k CXX=/path/to/llvm/Debug+Asserts/bin/include-what-you-use > /tmp/iwyu.out
+ make -k CXX=/path/to/llvm/Debug+Asserts/bin/include-what-you-use 2> /tmp/iwyu.out
python fix_includes.py < /tmp/iwyu.out
If you don't like the way `fix_includes.py` munges your `#include` lines, you can control its behavior via flags. `fix_includes.py --help` will give a full list, but these are some common ones: