]> granicus.if.org Git - clang/commitdiff
Jordan points out that this was incorrect: clang should recover from
authorChris Lattner <sabre@nondot.org>
Tue, 10 Jul 2012 05:03:05 +0000 (05:03 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 10 Jul 2012 05:03:05 +0000 (05:03 +0000)
*errors* with fixits on them by following the recovery advised by the
fixit, but if it is a fixit on a warning, then obviously the AST
should be for the code as-written.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159980 91177308-0d34-0410-b5e6-96231b3b80d8

docs/InternalsManual.html

index 6a6736891687d19b071431d3d524a7541d0d98fb..38cd8498e66e6f278a40ae360b802936808c69de 100644 (file)
@@ -453,8 +453,7 @@ the user the ability to automatically fix the problem.</p>
 <li>Since they are automatically applied if <code>-Xclang -fixit</code>
 is passed to the driver, they should only be used when it's very likely they
 match the user's intent.</li>
-<li>Clang must recover from the error or warning as if the fix-it had been
-applied.</li>
+<li>Clang must recover from errors as if the fix-it had been applied.</li>
 </ul>
 
 <p>If a fix-it can't obey these rules, put the fix-it on a note. Fix-its on