[clang] [Analyzer][CFG] Correctly handle rebuilt default arg and default init expression (PR #117437)

via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 30 05:56:27 PST 2025


cor3ntin wrote:

I think `HasRebuiltInit` is just `CXXDefaultArgExpr::getExpr() != CXXDefaultArgExpr::getParam()->getDefaultArg()`

@yronglin Can you modify `hasRebuiltInit()` to be and see if anything breaks? (and if it works we don't need the bit)

```cpp
bool hasRebuiltInit() const { return getExpr() != getParam()->getDefaultArg(); }`
```

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


More information about the cfe-commits mailing list