From: Chris Lattner
Date: Tue, 10 Jul 2012 05:03:05 +0000 (+0000)
Subject: Jordan points out that this was incorrect: clang should recover from
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f6385a5d48fb5f17cf7c8d0426a75ab7112a8402;p=clang
Jordan points out that this was incorrect: clang should recover from
*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
---
diff --git a/docs/InternalsManual.html b/docs/InternalsManual.html
index 6a67368916..38cd8498e6 100644
--- a/docs/InternalsManual.html
+++ b/docs/InternalsManual.html
@@ -453,8 +453,7 @@ the user the ability to automatically fix the problem.
Since they are automatically applied if -Xclang -fixit
is passed to the driver, they should only be used when it's very likely they
match the user's intent.
-Clang must recover from the error or warning as if the fix-it had been
-applied.
+Clang must recover from errors as if the fix-it had been applied.
If a fix-it can't obey these rules, put the fix-it on a note. Fix-its on