[clang] [LifetimeSafety] Introduce buildOriginFlowChain for use-after-scope (PR #199345)

Yuan Suo via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 3 00:40:07 PDT 2026


================
@@ -1239,13 +1270,15 @@ void parentheses(bool cond) {
   MyObj* p;
----------------
suoyuan666 wrote:

Do you mean the `simpleparen` case?

```cpp
void simpleparen() {
  MyObj* p;
  {
    MyObj a;
    MyObj* b = &a;
    p = (((b)));
  }
  (void)*p;
}
```

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


More information about the cfe-commits mailing list