mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 13:51:33 -06:00
Unity: Suppress clang-tidy include checks
`clang-tidy-17` adds include checks similar to IWYU. Suppress them in generated code.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user