summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2023-07-26 19:42:45 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2023-07-30 22:33:07 (GMT)
commit709c185d8f850451d13d282c050d9d1c6a106a1a (patch)
tree8d9aa6e5dc3bedc68db95e0f0c4a10d2fb8c72f4
parentefd9398844eb38b8e0f2faa0fd684a8b4cb1b741 (diff)
downloadCMake-709c185d8f850451d13d282c050d9d1c6a106a1a.zip
CMake-709c185d8f850451d13d282c050d9d1c6a106a1a.tar.gz
CMake-709c185d8f850451d13d282c050d9d1c6a106a1a.tar.bz2
clang-tidy: fix `bugprone-branch-clone` lints
-rw-r--r--Source/cmGlobalXCodeGenerator.cxx2
1 files changed, 2 insertions, 0 deletions
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") {