Unity: Suppress clang-tidy 'bugprone-suspicious-include' warning

Unity builds intentionally include entire source files.

Fixes: #24857
This commit is contained in:
Sylvain Joubert
2023-04-27 17:03:23 +02:00
committed by Brad King
parent 582c17bdd2
commit 485256f2d0

View File

@@ -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) {