summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2021-01-22 10:36:31 -0500
committerBen Boeckel <ben.boeckel@kitware.com>2021-01-27 08:45:44 -0500
commit3a0d40bf8c838fd94b716b60d1e161066d57e68a (patch)
tree4a9032049a332fc6a9c54657bf72eb3bc85816b8
parenta0610cf9e9768eb4c89bf0d0a2f765865512f081 (diff)
downloadcmake-3a0d40bf8c838fd94b716b60d1e161066d57e68a.tar.gz
clang-tidy: fix `bugprone-suspicious-include` warnings
-rw-r--r--.clang-tidy1
-rw-r--r--Source/cmFileLock.cxx2
-rw-r--r--Source/cmLoadCommandCommand.cxx1
3 files changed, 3 insertions, 1 deletions
diff --git a/.clang-tidy b/.clang-tidy
index 571dbac43a..9638473cb3 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -4,7 +4,6 @@ bugprone-*,\
-bugprone-macro-parentheses,\
-bugprone-misplaced-widening-cast,\
-bugprone-narrowing-conversions,\
--bugprone-suspicious-include,\
-bugprone-too-small-loop-variable,\
google-readability-casting,\
misc-*,\
diff --git a/Source/cmFileLock.cxx b/Source/cmFileLock.cxx
index 6010233cad..5d197d2fbb 100644
--- a/Source/cmFileLock.cxx
+++ b/Source/cmFileLock.cxx
@@ -80,7 +80,9 @@ bool cmFileLock::IsLocked(const std::string& filename) const
}
#if defined(_WIN32)
+// NOLINTNEXTLINE(bugprone-suspicious-include)
# include "cmFileLockWin32.cxx"
#else
+// NOLINTNEXTLINE(bugprone-suspicious-include)
# include "cmFileLockUnix.cxx"
#endif
diff --git a/Source/cmLoadCommandCommand.cxx b/Source/cmLoadCommandCommand.cxx
index 9c0b40072a..5a7b30f193 100644
--- a/Source/cmLoadCommandCommand.cxx
+++ b/Source/cmLoadCommandCommand.cxx
@@ -33,6 +33,7 @@
#include "cmStringAlgorithms.h"
#include "cmSystemTools.h"
+// NOLINTNEXTLINE(bugprone-suspicious-include)
#include "cmCPluginAPI.cxx"
#ifdef __QNX__