summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.clang-tidy1
-rw-r--r--src/buildtool/main/main.cpp2
-rw-r--r--src/buildtool/storage/large_object_cas.hpp1
-rw-r--r--src/buildtool/storage/local_ac.hpp1
-rw-r--r--src/buildtool/storage/local_cas.hpp1
-rw-r--r--src/buildtool/storage/target_cache.hpp1
6 files changed, 6 insertions, 1 deletions
diff --git a/.clang-tidy b/.clang-tidy
index 284b57cf..c41d4ebf 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -8,6 +8,7 @@ WarningsAsErrors: >-
concurrency-*, -concurrency-mt-unsafe,
google-*,
hicpp-*,
+ misc-*,-misc-const-correctness,-misc-include-cleaner,-misc-use-anonymous-namespace,
modernize-*,-modernize-return-braced-init-list,
performance-*,-performance-avoid-endl,
portability-*,
diff --git a/src/buildtool/main/main.cpp b/src/buildtool/main/main.cpp
index 34ee14b1..6a2c8525 100644
--- a/src/buildtool/main/main.cpp
+++ b/src/buildtool/main/main.cpp
@@ -233,7 +233,7 @@ void SetupFileChunker() {
/// \brief Write backend description (which determines the target cache shard)
/// to CAS.
void StoreTargetCacheShard(
- StorageConfig const& storage_config,
+ StorageConfig const& storage_config, // NOLINT(misc-unused-parameters)
Storage const& storage,
RemoteExecutionConfig const& remote_exec_config) noexcept {
auto backend_description =
diff --git a/src/buildtool/storage/large_object_cas.hpp b/src/buildtool/storage/large_object_cas.hpp
index d32846ae..086875df 100644
--- a/src/buildtool/storage/large_object_cas.hpp
+++ b/src/buildtool/storage/large_object_cas.hpp
@@ -198,6 +198,7 @@ class LargeObjectCAS final {
std::vector<ArtifactDigest> const& parts) const noexcept -> bool;
};
+// NOLINTNEXTLINE(misc-header-include-cycle)
#include "src/buildtool/storage/large_object_cas.tpp"
#endif // INCLUDED_SRC_BUILDTOOL_STORAGE_LARGE_OBJECT_CAS_HPP
diff --git a/src/buildtool/storage/local_ac.hpp b/src/buildtool/storage/local_ac.hpp
index 2e4f57a8..7edb5bf3 100644
--- a/src/buildtool/storage/local_ac.hpp
+++ b/src/buildtool/storage/local_ac.hpp
@@ -132,6 +132,7 @@ class LocalAC {
};
#ifndef BOOTSTRAP_BUILD_TOOL
+// NOLINTNEXTLINE(misc-header-include-cycle)
#include "src/buildtool/storage/local_ac.tpp"
#endif
diff --git a/src/buildtool/storage/local_cas.hpp b/src/buildtool/storage/local_cas.hpp
index 8c8d70c2..5f3a9db6 100644
--- a/src/buildtool/storage/local_cas.hpp
+++ b/src/buildtool/storage/local_cas.hpp
@@ -352,6 +352,7 @@ class LocalCAS {
};
#ifndef BOOTSTRAP_BUILD_TOOL
+// NOLINTNEXTLINE(misc-header-include-cycle)
#include "src/buildtool/storage/local_cas.tpp"
#else
template <bool kDoGlobalUplink>
diff --git a/src/buildtool/storage/target_cache.hpp b/src/buildtool/storage/target_cache.hpp
index 81750bf0..cfd8534e 100644
--- a/src/buildtool/storage/target_cache.hpp
+++ b/src/buildtool/storage/target_cache.hpp
@@ -159,6 +159,7 @@ using ActiveTargetCache = TargetCache<false>;
using ActiveTargetCache = TargetCache<true>;
#endif // BOOTSTRAP_BUILD_TOOL
+// NOLINTNEXTLINE(misc-header-include-cycle)
#include "src/buildtool/storage/target_cache.tpp"
namespace std {