diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2021-01-22 15:36:31 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2021-01-27 13:45:44 (GMT) |
commit | 3a0d40bf8c838fd94b716b60d1e161066d57e68a (patch) | |
tree | 4a9032049a332fc6a9c54657bf72eb3bc85816b8 | |
parent | a0610cf9e9768eb4c89bf0d0a2f765865512f081 (diff) | |
download | CMake-3a0d40bf8c838fd94b716b60d1e161066d57e68a.zip CMake-3a0d40bf8c838fd94b716b60d1e161066d57e68a.tar.gz CMake-3a0d40bf8c838fd94b716b60d1e161066d57e68a.tar.bz2 |
clang-tidy: fix `bugprone-suspicious-include` warnings
-rw-r--r-- | .clang-tidy | 1 | ||||
-rw-r--r-- | Source/cmFileLock.cxx | 2 | ||||
-rw-r--r-- | Source/cmLoadCommandCommand.cxx | 1 |
3 files changed, 3 insertions, 1 deletions
diff --git a/.clang-tidy b/.clang-tidy index 571dbac..9638473 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 6010233..5d197d2 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 9c0b400..5a7b30f 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__ |