From 709c185d8f850451d13d282c050d9d1c6a106a1a Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Wed, 26 Jul 2023 15:42:45 -0400 Subject: clang-tidy: fix `bugprone-branch-clone` lints --- Source/cmGlobalXCodeGenerator.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/cmGlobalXCodeGenerator.cxx b/Source/cmGlobalXCodeGenerator.cxx index aad1fe6..2ce872a 100644 --- a/Source/cmGlobalXCodeGenerator.cxx +++ b/Source/cmGlobalXCodeGenerator.cxx @@ -1107,8 +1107,10 @@ std::string GetSourcecodeValueFromFileExtension( } else if (ext == "storyboard") { keepLastKnownFileType = true; sourcecode = "file.storyboard"; + // NOLINTNEXTLINE(bugprone-branch-clone) } else if (ext == "mm" && !cm::contains(enabled_langs, "OBJCXX")) { sourcecode += ".cpp.objcpp"; + // NOLINTNEXTLINE(bugprone-branch-clone) } else if (ext == "m" && !cm::contains(enabled_langs, "OBJC")) { sourcecode += ".c.objc"; } else if (ext == "swift") { -- cgit v0.12