[clang] [Lifetime Safety] Highlight lifetimebound calls in alias chain diagnostics (PR #206337)

via cfe-commits cfe-commits at lists.llvm.org
Sun Aug 9 23:17:45 PDT 2026


iitianpushkar wrote:

Hey @Xazax-hun @NeKon69, I have updated the patch again. All checks have also passed. Please review it once.

Current changes summary:

- `getFunctionCallInfo(Call)` now centralizes call destructuring using `AnyCall`, returning a structured `FunctionCallInfo { FD, Args }`.

- `getTrackedArgInfo(FD, Args, I)` is the shared source of truth for whether an argument is tracked. It keeps the structure close to the old `IsArgLifetimeBound` logic as suggested.

- In `reportAliasingChain`, `LastExpr` tracks the real previous expression in the raw origin flow chain while `VisibleLastExpr` tracks the last expression actually emitted in the diagnostic.

https://github.com/llvm/llvm-project/pull/206337


More information about the cfe-commits mailing list