diff options
author | Richard Trieu <rtrieu@google.com> | 2019-09-21 03:02:26 +0000 |
---|---|---|
committer | Richard Trieu <rtrieu@google.com> | 2019-09-21 03:02:26 +0000 |
commit | dbb59f794229857ec4acc86f12f3f9172ec253f6 (patch) | |
tree | 25a8129b9adbbe158f87e6d84c477f5c5fae9f51 /docs | |
parent | ca66650e21db892f1acb156d9f1d082591c0eaac (diff) | |
download | clang-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.rst | 3 |
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 ------------------------------------------------- |