From 485256f2d06f2e9bd31300a7f2013b607b322c21 Mon Sep 17 00:00:00 2001 From: Sylvain Joubert Date: Thu, 27 Apr 2023 17:03:23 +0200 Subject: Unity: Suppress clang-tidy 'bugprone-suspicious-include' warning Unity builds intentionally include entire source files. Fixes: #24857 --- Source/cmLocalGenerator.cxx | 1 + 1 file changed, 1 insertion(+) 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) { -- cgit v0.12