[all-commits] [llvm/llvm-project] feabbb: [analyzer] Fix false positive when a lifetimebound...

Benedek Kaibas via All-commits all-commits at lists.llvm.org
Tue Jul 21 02:16:18 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: feabbb0f4611a9c26d6ae694232bfca7964e6233
      https://github.com/llvm/llvm-project/commit/feabbb0f4611a9c26d6ae694232bfca7964e6233
  Author: Benedek Kaibas <82393336+benedekaibas at users.noreply.github.com>
  Date:   2026-07-21 (Tue, 21 Jul 2026)

  Changed paths:
    M clang/lib/StaticAnalyzer/Checkers/LifetimeModeling.cpp
    M clang/test/Analysis/lifetime-bound.cpp

  Log Message:
  -----------
  [analyzer] Fix false positive when a lifetimebound method is called during destruction (#210801)

When a `lifetimebound` method is called during destruction the checker
emits warnings which leads to false positives. To avoid this a dangling
stack source is not reported if any frame on the current stack belongs
to a destructor.



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