summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorRichard Trieu <rtrieu@google.com>2019-09-21 03:02:26 +0000
committerRichard Trieu <rtrieu@google.com>2019-09-21 03:02:26 +0000
commitdbb59f794229857ec4acc86f12f3f9172ec253f6 (patch)
tree25a8129b9adbbe158f87e6d84c477f5c5fae9f51 /docs
parentca66650e21db892f1acb156d9f1d082591c0eaac (diff)
downloadclang-dbb59f794229857ec4acc86f12f3f9172ec253f6.tar.gz
Merge and improve code that detects same value in comparisons.
-Wtautological-overlap-compare and self-comparison from -Wtautological-compare relay on detecting the same operand in different locations. Previously, each warning had it's own operand checker. Now, both are merged together into one function that each can call. The function also now looks through member access and array accesses. Differential Revision: https://reviews.llvm.org/D66045 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@372453 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs')
-rw-r--r--docs/ReleaseNotes.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/ReleaseNotes.rst b/docs/ReleaseNotes.rst
index e04e568ddb..bb93fb5477 100644
--- a/docs/ReleaseNotes.rst
+++ b/docs/ReleaseNotes.rst
@@ -53,6 +53,9 @@ Improvements to Clang's diagnostics
- -Wtautological-overlap-compare will warn on negative numbers and non-int
types.
+- -Wtautological-compare for self comparisons and
+ -Wtautological-overlap-compare will now look through member and array
+ access to determine if two operand expressions are the same.
Non-comprehensive list of changes in this release
-------------------------------------------------