From ebd1f2476d35ac6222d4a41ece6dd19f0e4081ef Mon Sep 17 00:00:00 2001
From: Takuto Ikuta <tikuta@chromium.org>
Date: Fri, 12 Apr 2024 16:29:21 +0000
Subject: [PATCH] add CPPLINT.cfg

This is to disable include order check in cpplint and let clang-format
sort includes instead.

This is preparation CL of NOLINT comments removal in
https://crrev.com/c/5432839.

Bug: 329138753
Change-Id: Ied606affdab2336da88a2a21c8e0f7cd8b5d1aec
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5445529
Reviewed-by: Peter Kasting <pkasting@chromium.org>
Reviewed-by: Nico Weber <thakis@chromium.org>
Commit-Queue: Peter Kasting <pkasting@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1286530}
---
 CPPLINT.cfg | 9 +++++++++
 OWNERS      | 1 +
 2 files changed, 10 insertions(+)
 create mode 100644 CPPLINT.cfg

diff --git a/CPPLINT.cfg b/CPPLINT.cfg
new file mode 100644
index 0000000000000..7684075f4d77c
--- /dev/null
+++ b/CPPLINT.cfg
@@ -0,0 +1,9 @@
+# Copyright 2024 The Chromium Authors
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+# See https://source.chromium.org/chromium/chromium/tools/depot_tools/+/main:cpplint.py
+# about this configuration file.
+
+# Include order should be caught by clang-format.
+filter=-build/include_order
diff --git a/OWNERS b/OWNERS
index 3f67b5e8272e7..2de3ef901ec95 100644
--- a/OWNERS
+++ b/OWNERS
@@ -29,6 +29,7 @@ per-file BUILD.gn=file://build/OWNERS
 per-file CODE_OF_CONDUCT.md=dpranke@google.com
 per-file CODE_OF_CONDUCT.md=benhenry@chromium.org
 per-file CODE_OF_CONDUCT.md=ellyjones@chromium.org
+per-file CPPLINT.cfg=file://styleguide/c++/OWNERS
 per-file DEPS=*
 per-file PRESUBMIT*.py=agrieve@chromium.org  # For .pydeps changes
 per-file PRESUBMIT*.py=brucedawson@chromium.org