[clang-tools-extra] [clang-tidy] Add modernize-use-from-range-container-constructor check (PR #180868)

Yanzuo Liu via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 11 06:13:54 PST 2026


================
@@ -0,0 +1,237 @@
+//===----------------------------------------------------------------------===//
+//
+// 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
+//
+//===----------------------------------------------------------------------===//
+
+#include "UseFromRangeContainerConstructorCheck.h"
+
+#include <optional>
----------------
zwuis wrote:

Wrong `#include` order.

https://llvm.org/docs/CodingStandards.html#include-style

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


More information about the cfe-commits mailing list