summaryrefslogtreecommitdiffstats
path: root/clang/docs/UsersManual.html
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-08-19 20:24:43 +0000
committerDouglas Gregor <dgregor@apple.com>2010-08-19 20:24:43 +0000
commiteec975ce5aee18013abc477c63f75e7060996ea5 (patch)
tree63d10358110bfa927d8d38ede09bc0cba7aa4856 /clang/docs/UsersManual.html
parentb2ca0d19f2d43b2b64eb5a6f3c5edbe1532757db (diff)
downloadbcm5719-llvm-eec975ce5aee18013abc477c63f75e7060996ea5.tar.gz
bcm5719-llvm-eec975ce5aee18013abc477c63f75e7060996ea5.zip
Add machine-parseable Fix-It output as part of diagnostics, under the
flag -fdiagnostics-parseable-fixits, from Eelis van der Weegen! llvm-svn: 111557
Diffstat (limited to 'clang/docs/UsersManual.html')
-rw-r--r--clang/docs/UsersManual.html12
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/docs/UsersManual.html b/clang/docs/UsersManual.html
index 2402bf8dd70..1fcd59e26e3 100644
--- a/clang/docs/UsersManual.html
+++ b/clang/docs/UsersManual.html
@@ -358,6 +358,18 @@ exprs.c:47:15:{47:8-47:14}{47:17-47:24}: error: invalid operands to binary expre
<p>The {}'s are generated by -fdiagnostics-print-source-range-info.</p>
</dd>
+<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
+<dt id="opt_fdiagnostics-parseable-fixits">
+<b>-fdiagnostics-parseable-fixits</b>:
+Print Fix-Its in a machine parseable form.</dt>
+<dd><p>This option makes Clang print available Fix-Its in a machine parseable format at the end of diagnostics. The following example illustrates the format:</p>
+
+<pre>
+ fix-it: "t.cpp":{7:25-7:29}: "Gamma"
+</pre>
+
+<p>The range printed is a half-open range, so in this example the characters at column 25 up to but not including column 29 on line 7 in t.cpp should be replaced with the string "Gamma". Either the range or the replacement string may be empty (representing strict insertions and strict erasures, respectively). Both the file name and the insertion string escape '\', tabs (as "\n"), newlines (as "\n"), double quotes(as "\n") and non-printable characters (as octal "\xxx").</p>
+</dd>
</dl>
OpenPOWER on IntegriCloud