[llvm-branch-commits] [clang] [analyzer][NFC] Index parameter lookups by argument position (PR #221977)
DonĂ¡t Nagy via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Sep 8 10:54:26 PDT 2026
================
@@ -837,6 +837,10 @@ void SmartPtrModeling::handleBoolConversion(const CallEvent &Call,
const MemRegion *ThisRegion =
cast<CXXInstanceCall>(&Call)->getCXXThisVal().getAsRegion();
+ // `getCXXThisVal` does not model explicit object parameters and
+ // in case of an explicit object parameter it can be null.
----------------
NagyDonat wrote:
Would it be possible and useful to support explicit object parameters in this checker instead of this early return? If yes, then please add a TODO after this comment block.
https://github.com/llvm/llvm-project/pull/221977
More information about the llvm-branch-commits
mailing list