[clang-tools-extra] [clang-reorder-fields] Support designated initializers (PR #142150)

Vladimir Vuksanovic via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 1 02:59:54 PDT 2025


================
@@ -81,18 +83,52 @@ getNewFieldsOrder(const RecordDecl *Definition,
   return NewFieldsOrder;
 }
 
+struct ReorderedStruct {
----------------
vvuksanovic wrote:

Can you clarify what should I pull to a separate commit? I can create a new commit for the `ReorderedStruct` changes, before the designator changes. Should I move `addReplacement` changes there? The new overload would be unused in that commit.

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


More information about the cfe-commits mailing list