summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.cxx
diff options
context:
space:
mode:
authorSylvain Joubert <joubert.sy@gmail.com>2023-04-27 15:03:23 (GMT)
committerBrad King <brad.king@kitware.com>2023-04-27 16:41:30 (GMT)
commit485256f2d06f2e9bd31300a7f2013b607b322c21 (patch)
tree0bb90a6544f0dd003ae4c56ee7f0cd941d1601a8 /Source/cmLocalGenerator.cxx
parent582c17bdd24b8443f82b3da4143893741d6b1c1f (diff)
downloadCMake-485256f2d06f2e9bd31300a7f2013b607b322c21.zip
CMake-485256f2d06f2e9bd31300a7f2013b607b322c21.tar.gz
CMake-485256f2d06f2e9bd31300a7f2013b607b322c21.tar.bz2
Unity: Suppress clang-tidy 'bugprone-suspicious-include' warning
Unity builds intentionally include entire source files. Fixes: #24857
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r--Source/cmLocalGenerator.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index e00341c..73c97a6 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -2974,6 +2974,7 @@ void cmLocalGenerator::WriteUnitySourceInclude(
unity_file << *beforeInclude << "\n";
}
+ unity_file << "// NOLINTNEXTLINE(bugprone-suspicious-include)\n";
unity_file << "#include \"" << sf_full_path << "\"\n";
if (afterInclude) {