Update with warning message for comparison to NULL pointer
authorKrishna Narayanan <krishnanarayanan132002@gmail.com>
Wed, 14 Jun 2023 12:28:35 +0000 (08:28 -0400)
committerAaron Ballman <aaron@aaronballman.com>
Wed, 14 Jun 2023 12:28:35 +0000 (08:28 -0400)
commit20e81a80e9cb6403f850ab981438f3d9d88b5a4b
tree9d536fa1744ced5f62be2a90183a4f7c109067f6
parente829eb9075c44ea708b8b6f95d7766f9681efc90
Update with warning message for comparison to NULL pointer

The tautological comparison warning was not properly looking through
parenthesized expressions, which is now fixed.

Fixes https://github.com/llvm/llvm-project/issues/42992
Differential Revision: https://reviews.llvm.org/D149000
clang/docs/ReleaseNotes.rst
clang/lib/Sema/SemaChecking.cpp
clang/test/Sema/conditional-expr.c
clang/test/Sema/warn-tautological-compare.c