Skip to content

Commit 8ccd570

Browse files
committed
Document output formats
1 parent 75cbe79 commit 8ccd570

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

scripts/cpplint.py

+8-2
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,15 @@
7777
7878
Flags:
7979
80-
output=vs7
80+
output=emacs|vs7|eclipse|sed|gsed
8181
By default, the output is formatted to ease emacs parsing. Visual Studio
82-
compatible output (vs7) may also be used. Other formats are unsupported.
82+
(vs7) or eclipse (eclipse) compatible output may also be used.
83+
84+
The sed format outputs sed commands that should fix the reported errors.
85+
Note that this requires gnu sed. If that is installed as gsed on your system
86+
(common on MacOS e.g. with homebrew) you can use the gsed output format.
87+
Sed commands are written to stdout, not stderr, so you should be able to
88+
pipe output straight to bash to run the fixes.
8389
8490
verbose=#
8591
Specify a number 0-5 to restrict errors to certain verbosity levels.

0 commit comments

Comments
 (0)