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

Clement Courbet via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 26 00:34:02 PDT 2025


================
@@ -0,0 +1,256 @@
+//===-- tools/extra/clang-reorder-fields/utils/Designator.cpp ---*- C++ -*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+///
+/// \file
+/// This file contains the definition of the DesignatorIter and Designators
+/// utility classes.
+///
+//===----------------------------------------------------------------------===//
+
+#include "Designator.h"
+#include "clang/AST/ASTContext.h"
+#include "clang/AST/Expr.h"
+
+namespace clang {
+namespace reorder_fields {
+
+DesignatorIter::DesignatorIter(const QualType Type,
----------------
legrosbuffle wrote:

[nit] Inline those three constructors ?

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


More information about the cfe-commits mailing list