diff options
author | ClausKlein <claus.klein@arcormail.de> | 2024-04-07 08:45:36 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2024-04-08 23:16:14 (GMT) |
commit | 773dc0a2970d8ee036f2f7de6da2924ca982497a (patch) | |
tree | e4d52303799be00a0a53d9215e8249f4d09274cc /Source | |
parent | eb66549c7cd680f288e58876e0f566f1cc7f2f20 (diff) | |
download | CMake-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.cxx | 5 |
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) { |