mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-02 04:02:23 +03: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:
1 parent
eb66549c7c
commit
773dc0a297
1 file changed
+4
-1
@@ -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