diff options
author | Sylvain Joubert <joubert.sy@gmail.com> | 2023-08-15 13:57:02 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-08-15 14:23:54 (GMT) |
commit | 7f7c4436671e89c6ff8a3ea07f181f45ec557d02 (patch) | |
tree | 9c6dc0c909d6ce9add507f1cad51ccf29f7e605a /Source | |
parent | f3d9a8211042c3df043d886f2217a705a62168a8 (diff) | |
download | CMake-7f7c4436671e89c6ff8a3ea07f181f45ec557d02.zip CMake-7f7c4436671e89c6ff8a3ea07f181f45ec557d02.tar.gz CMake-7f7c4436671e89c6ff8a3ea07f181f45ec557d02.tar.bz2 |
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
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmLocalGenerator.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index aaf0d67..da95b19 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -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) { |