[PATCH] D62470: Clarify when fix-it hints on warnings are appropriate
Aaron Puchert via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri May 31 14:25:17 PDT 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL362266: Clarify when fix-it hints on warnings are appropriate (authored by aaronpuchert, committed by ).
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D62470/new/
https://reviews.llvm.org/D62470
Files:
cfe/trunk/docs/InternalsManual.rst
Index: cfe/trunk/docs/InternalsManual.rst
===================================================================
--- cfe/trunk/docs/InternalsManual.rst
+++ cfe/trunk/docs/InternalsManual.rst
@@ -423,6 +423,9 @@
driver, they should only be used when it's very likely they match the user's
intent.
* Clang must recover from errors as if the fix-it had been applied.
+* Fix-it hints on a warning must not change the meaning of the code.
+ However, a hint may clarify the meaning as intentional, for example by adding
+ parentheses when the precedence of operators isn't obvious.
If a fix-it can't obey these rules, put the fix-it on a note. Fix-its on notes
are not applied automatically.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62470.202485.patch
Type: text/x-patch
Size: 697 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190531/5fd6f5db/attachment.bin>
More information about the cfe-commits
mailing list