diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-07-09 16:31:58 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-07-09 16:31:58 +0000 |
commit | e8d44dd52cd484e486945470bcdf4ae47027dec5 (patch) | |
tree | 26e5c50cc40a25dceae8c1c782262bb2ef88667c /docs/UsersManual.html | |
parent | 6b3f1ebce775499aff03845193de78128671262f (diff) |
Document -f{no-}color-diagnostics
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@107985 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/UsersManual.html')
-rw-r--r-- | docs/UsersManual.html | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/docs/UsersManual.html b/docs/UsersManual.html index 049711abf8..51e699fc32 100644 --- a/docs/UsersManual.html +++ b/docs/UsersManual.html @@ -251,12 +251,29 @@ when this is enabled, Clang will print something like:</p> <p>When this is disabled, Clang will just print:</p> <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> </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>: Enable <tt>[-Woption]</tt> information in diagnostic line.</dt> <dd>This option, which defaults to on, |