[all-commits] [llvm/llvm-project] e65b4e: [clang-tidy] Avoid invalid fixes in `readability-d...
flovent via All-commits
all-commits at lists.llvm.org
Wed Jun 10 01:15:28 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e65b4e7fa233fd15fb1e84a66329b8936a594b2d
https://github.com/llvm/llvm-project/commit/e65b4e7fa233fd15fb1e84a66329b8936a594b2d
Author: flovent <flbven at protonmail.com>
Date: 2026-06-10 (Wed, 10 Jun 2026)
Changed paths:
M clang-tools-extra/clang-tidy/readability/DeleteNullPointerCheck.cpp
M clang-tools-extra/docs/ReleaseNotes.rst
M clang-tools-extra/test/clang-tidy/checkers/readability/delete-null-pointer.cpp
Log Message:
-----------
[clang-tidy] Avoid invalid fixes in `readability-delete-null-pointer` (#202488)
Only provide warnings (not fixits) when `IfStmt` has condition variable
or initializer.
Note that i didn't provide fixit for the situation that conditon
variable is different with the pointer variable being cast to bool
because i think this is rare. (the third newly added testcase)
Closes #202312.
---------
Co-authored-by: Zeyi Xu <zeyi2 at nekoarch.cc>
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list