build: apply clang-tidy's misc-include-cleaner
Bug: 336474469 Change-Id: Ie3c4bbdde52c656736ea7237d2aa1122846ca779 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5514337 Auto-Submit: Takuto Ikuta <tikuta@chromium.org> Reviewed-by: Nico Weber <thakis@chromium.org> Commit-Queue: Nico Weber <thakis@chromium.org> Cr-Commit-Position: refs/heads/main@{#1297491}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
efb11b3b67
commit
086c477041
build
3
build/.clang-tidy
Normal file
3
build/.clang-tidy
Normal file
@ -0,0 +1,3 @@
|
||||
# TODO(crbug.com/336474469): remove this after enabling the check in parent dir.
|
||||
InheritParentConfig: true
|
||||
Checks: misc-include-cleaner
|
4
build/.clangd
Normal file
4
build/.clangd
Normal file
@ -0,0 +1,4 @@
|
||||
# TODO(crbug.com/336474469): remove this after enabling the check in parent dir.
|
||||
Diagnostics:
|
||||
UnusedIncludes: Strict
|
||||
MissingIncludes: Strict
|
@ -2,6 +2,8 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <algorithm>
|
||||
#include <cstddef>
|
||||
#include <cstdlib>
|
||||
|
@ -6,14 +6,16 @@
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "base/allocator/buildflags.h"
|
||||
#include "base/allocator/partition_allocator/src/partition_alloc/address_pool_manager_bitmap.h"
|
||||
#include "base/allocator/partition_allocator/src/partition_alloc/partition_address_space.h"
|
||||
#include "build/build_config.h"
|
||||
#include "base/allocator/partition_allocator/src/partition_alloc/partition_alloc_buildflags.h"
|
||||
#include "build/buildflag.h"
|
||||
#include "build/rust/tests/test_rust_shared_library/src/lib.rs.h"
|
||||
#include "testing/gtest/include/gtest/gtest.h"
|
||||
|
||||
#include "build/rust/tests/test_rust_shared_library/src/lib.rs.h"
|
||||
#if BUILDFLAG(HAS_64_BIT_POINTERS)
|
||||
#include "base/allocator/partition_allocator/src/partition_alloc/partition_address_space.h"
|
||||
#else
|
||||
#include "base/allocator/partition_allocator/src/partition_alloc/address_pool_manager_bitmap.h"
|
||||
#endif
|
||||
|
||||
TEST(RustSharedTest, CppCallingIntoRust_BasicFFI) {
|
||||
EXPECT_EQ(7, add_two_ints_via_rust(3, 4));
|
||||
|
@ -6,14 +6,16 @@
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "base/allocator/buildflags.h"
|
||||
#include "base/allocator/partition_allocator/src/partition_alloc/address_pool_manager_bitmap.h"
|
||||
#include "base/allocator/partition_allocator/src/partition_alloc/partition_address_space.h"
|
||||
#include "build/build_config.h"
|
||||
#include "base/allocator/partition_allocator/src/partition_alloc/partition_alloc_buildflags.h"
|
||||
#include "build/buildflag.h"
|
||||
#include "build/rust/tests/test_rust_static_library/src/lib.rs.h"
|
||||
#include "testing/gtest/include/gtest/gtest.h"
|
||||
|
||||
#include "build/rust/tests/test_rust_static_library/src/lib.rs.h"
|
||||
#if BUILDFLAG(HAS_64_BIT_POINTERS)
|
||||
#include "base/allocator/partition_allocator/src/partition_alloc/partition_address_space.h"
|
||||
#else
|
||||
#include "base/allocator/partition_allocator/src/partition_alloc/address_pool_manager_bitmap.h"
|
||||
#endif
|
||||
|
||||
TEST(RustStaticTest, CppCallingIntoRust_BasicFFI) {
|
||||
EXPECT_EQ(7, add_two_ints_via_rust(3, 4));
|
||||
|
@ -4,6 +4,8 @@
|
||||
|
||||
#include "build/rust/tests/test_rust_calling_cpp/cpp_library.h"
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
int32_t mul_by_2_in_cpp_library(int32_t a) {
|
||||
return a * 2;
|
||||
}
|
||||
|
Reference in New Issue
Block a user