[clang-tools-extra] [clang-tidy] exclude CXXParenListInitExpr from RedundantCastingCheck (PR #109741)

Piotr Zegar via cfe-commits cfe-commits at lists.llvm.org
Sat Jan 11 02:03:28 PST 2025


PiotrZSL wrote:

> Actually, shouldn't this check instead change an explicit cast for a `CXXParenListExpr` from `static_cast<C>(42)` to `C(42)`

Yes, but that's secondary. As in such case this could be seen as an FunctionalCast.



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


More information about the cfe-commits mailing list