mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-19 02:17:27 +08:00
Unity: use C-style comments to work both with C and C++
Update the comment added by commit 485256f2d0
(Unity: Suppress
clang-tidy 'bugprone-suspicious-include' warning, 2023-04-27,
v3.27.0-rc1~149^2) to work for C.
Fixes: #25184
This commit is contained in:

committed by
Brad King

parent
f3d9a82110
commit
7f7c443667
@@ -2987,7 +2987,7 @@ void cmLocalGenerator::WriteUnitySourceInclude(
|
||||
unity_file << *beforeInclude << "\n";
|
||||
}
|
||||
|
||||
unity_file << "// NOLINTNEXTLINE(bugprone-suspicious-include)\n";
|
||||
unity_file << "/* NOLINTNEXTLINE(bugprone-suspicious-include) */\n";
|
||||
unity_file << "#include \"" << sf_full_path << "\"\n";
|
||||
|
||||
if (afterInclude) {
|
||||
|
Reference in New Issue
Block a user