[clang-tools-extra] [clang-tidy] [NFC] Potential dereference of nullptr. (PR #143145)
Carlos Galvez via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 6 11:31:48 PDT 2025
https://github.com/carlosgalvezp approved this pull request.
I think this is the correct thing to do. It's a programming error if these pointers are null, and so assertions are the correct tool for this.
Other checks do `if (const auto* Found = ...)`, but that's not correct, since it silences programming errors.
https://github.com/llvm/llvm-project/pull/143145
More information about the cfe-commits
mailing list