From 7f7c4436671e89c6ff8a3ea07f181f45ec557d02 Mon Sep 17 00:00:00 2001 From: Sylvain Joubert Date: Tue, 15 Aug 2023 15:57:02 +0200 Subject: 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 --- Source/cmLocalGenerator.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v0.12