clang-tidy: fix bugprone-branch-clone lints

This commit is contained in:
Ben Boeckel
2023-07-26 15:42:45 -04:00
parent efd9398844
commit 709c185d8f
+2
View File
@@ -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") {