zygoloid wrote: > I expect that won't be caught, and you'll need to make a similar change to > `visitLocalsRetainedByInitializer` to handle it.
Actually, maybe the best thing would be to change `visitFunctionCallArguments` to step over `CXXDefaultArgExpr` in `Args`. That should cover both cases, and the only place we should see a `CXXDefaultArgExpr` is at the top level in some form of function call. https://github.com/llvm/llvm-project/pull/112047 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits