[all-commits] [llvm/llvm-project] d235b7: Reapply "[Analyzer][CFG] Correctly handle rebuilt ...

yronglin via All-commits all-commits at lists.llvm.org
Sun Feb 16 08:36:29 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d235b72178adc710bf704078fbe0cd687642f3e0
      https://github.com/llvm/llvm-project/commit/d235b72178adc710bf704078fbe0cd687642f3e0
  Author: yronglin <yronglin777 at gmail.com>
  Date:   2025-02-17 (Mon, 17 Feb 2025)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/AST/ParentMap.cpp
    M clang/lib/Analysis/CFG.cpp
    M clang/lib/Analysis/ReachableCode.cpp
    M clang/lib/Sema/SemaExpr.cpp
    M clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
    M clang/test/AST/ast-dump-recovery.cpp
    M clang/test/Analysis/lifetime-extended-regions.cpp
    M clang/test/SemaCXX/cxx2c-placeholder-vars.cpp
    M clang/test/SemaCXX/warn-unreachable.cpp

  Log Message:
  -----------
  Reapply "[Analyzer][CFG] Correctly handle rebuilt default arg and default init expression" (#127338)

This PR reapply https://github.com/llvm/llvm-project/pull/117437.
The issue has been fixed by the 2nd commit, we need to ignore parens in
CXXDefaultArgExpr when build CFG, because CXXDefaultArgExpr::getExpr
stripped off the top level FullExpr and ConstantExpr, ParenExpr may
occurres in the top level.

---------

Signed-off-by: yronglin <yronglin777 at gmail.com>



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