Skip to content
Snippets Groups Projects
Commit e8d44dd5 authored by Douglas Gregor's avatar Douglas Gregor
Browse files

Document -f{no-}color-diagnostics

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@107985 91177308-0d34-0410-b5e6-96231b3b80d8
parent 6b3f1ebc
No related branches found
No related tags found
No related merge requests found
...@@ -251,11 +251,28 @@ when this is enabled, Clang will print something like:</p> ...@@ -251,11 +251,28 @@ when this is enabled, Clang will print something like:</p>
<p>When this is disabled, Clang will just print:</p> <p>When this is disabled, Clang will just print:</p>
<pre> <pre>
test.c:28:8: warning: extra tokens at end of #endif directive [-Wextra-tokens] <b><font color="black">test.c:28:8: <font color="magenta">warning</font>: extra tokens at end of #endif directive [-Wextra-tokens]</font></b>
#endif bad
<font color="green">^</font>
<font color="green">//</font>
</pre> </pre>
</dd> </dd>
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<dt id="opt_fcolor_diagnostics"><b>-f[no-]color-diagnostics</b>: </dt>
<dd>This option, which defaults to on when a color-capable terminal is
detected, controls whether or not Clang prints diagnostics in color.
When this option is enabled, Clang will use colors to highlight
specific parts of the diagnostic, e.g.,
<pre>
<test.c:2:8: warning: extra tokens at end of #endif directive [-Wextra-tokens]
#endif bad
^
//
</pre>
</dd>'
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - --> <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<dt id="opt_fdiagnostics-show-option"><b>-f[no-]diagnostics-show-option</b>: <dt id="opt_fdiagnostics-show-option"><b>-f[no-]diagnostics-show-option</b>:
Enable <tt>[-Woption]</tt> information in diagnostic line.</dt> Enable <tt>[-Woption]</tt> information in diagnostic line.</dt>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment