[clang-tools-extra] Add refactoring tool to convert between ternary (?:) expressions and equivalent if/else statements (PR #166822)

via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 7 03:42:31 PST 2025


DheerajAgarwal1234 wrote:

I felt this fits better as a refactoring tool rather than a clang-tidy check, since it’s a structural transformation rather than a diagnostic. The change often involves multi-line edits, declaration restructuring, and control-flow adjustments—areas clang-tidy fix-its typically avoid to ensure safety. Refactoring tools, on the other hand, are designed for explicit, user-invoked transformations like this.

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


More information about the cfe-commits mailing list