summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/docs/ReleaseNotes.rst
diff options
context:
space:
mode:
authorGabor Horvath <xazax.hun@gmail.com>2017-12-20 12:22:16 +0000
committerGabor Horvath <xazax.hun@gmail.com>2017-12-20 12:22:16 +0000
commit91c6671a71449fbd51a6f6214bca43aa7ce690c5 (patch)
tree31a7b5170a55ad673e906f2a7b69d2601e541a28 /clang-tools-extra/docs/ReleaseNotes.rst
parentbf8519b5c9aa2c381b5f4725c21601a99b1b37c2 (diff)
downloadbcm5719-llvm-91c6671a71449fbd51a6f6214bca43aa7ce690c5.tar.gz
bcm5719-llvm-91c6671a71449fbd51a6f6214bca43aa7ce690c5.zip
[clang-tidy] Misc redundant expression checker updated for ineffective bitwise operator expressions
Examples: * Always evaluates to 0: ``` int X; if (0 & X) return; ``` * Always evaluates to ~0: ``` int Y; if (Y | ~0) return; ``` * The symbol is unmodified: ``` int Z; Z &= ~0; ``` Patch by: Lilla Barancsuk! Differential Revision: https://reviews.llvm.org/D39285 llvm-svn: 321168
Diffstat (limited to 'clang-tools-extra/docs/ReleaseNotes.rst')
-rw-r--r--clang-tools-extra/docs/ReleaseNotes.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/clang-tools-extra/docs/ReleaseNotes.rst b/clang-tools-extra/docs/ReleaseNotes.rst
index b8901785b57..bc2ba1d305a 100644
--- a/clang-tools-extra/docs/ReleaseNotes.rst
+++ b/clang-tools-extra/docs/ReleaseNotes.rst
@@ -268,6 +268,15 @@ Improvements to clang-tidy
- Added the ability to suppress specific checks (or all checks) in a ``NOLINT`` or ``NOLINTNEXTLINE`` comment.
+- Added new functionality to `misc-redundant-expression
+ http://clang.llvm.org/extra/clang-tidy/checks/misc-redundant-expression.html`_ check
+
+ Finds redundant binary operator expressions where the operators are overloaded,
+ and ones that contain the same macros twice.
+ Also checks for assignment expressions that do not change the value of the
+ assigned variable, and expressions that always evaluate to the same value
+ because of possible operator confusion.
+
Improvements to include-fixer
-----------------------------
OpenPOWER on IntegriCloud