summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorClausKlein <claus.klein@arcormail.de>2024-04-07 08:45:36 (GMT)
committerBrad King <brad.king@kitware.com>2024-04-08 23:16:14 (GMT)
commit773dc0a2970d8ee036f2f7de6da2924ca982497a (patch)
treee4d52303799be00a0a53d9215e8249f4d09274cc /Source
parenteb66549c7cd680f288e58876e0f566f1cc7f2f20 (diff)
downloadCMake-773dc0a2970d8ee036f2f7de6da2924ca982497a.zip
CMake-773dc0a2970d8ee036f2f7de6da2924ca982497a.tar.gz
CMake-773dc0a2970d8ee036f2f7de6da2924ca982497a.tar.bz2
Unity: Suppress clang-tidy include checks
`clang-tidy-17` adds include checks similar to IWYU. Suppress them in generated code.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmLocalGenerator.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index 684dfda..d8f56d1 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -3134,7 +3134,10 @@ void cmLocalGenerator::WriteUnitySourceInclude(
unity_file << *beforeInclude << "\n";
}
- unity_file << "/* NOLINTNEXTLINE(bugprone-suspicious-include) */\n";
+ // clang-tidy-17 has new include checks that needs NOLINT too.
+ unity_file
+ << "/* NOLINTNEXTLINE(bugprone-suspicious-include,misc-include-cleaner) "
+ "*/\n";
unity_file << "#include \"" << sf_full_path << "\"\n";
if (afterInclude) {