From 4c05de8c1d157f4b5e0091a52dbbcce7242ee485 Mon Sep 17 00:00:00 2001 From: Richard Trieu Date: Sat, 21 Sep 2019 03:02:26 +0000 Subject: 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 llvm-svn: 372453 --- clang/docs/ReleaseNotes.rst | 3 +++ 1 file changed, 3 insertions(+) (limited to 'clang/docs/ReleaseNotes.rst') diff --git a/clang/docs/ReleaseNotes.rst b/clang/docs/ReleaseNotes.rst index e04e568ddb0..bb93fb54777 100644 --- a/clang/docs/ReleaseNotes.rst +++ b/clang/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 ------------------------------------------------- -- cgit v1.2.3