Skip to content

Commit 374eba9

Browse files
scooprkkaefer
authored andcommitted
Fix conditional on C headers
1 parent 240bba0 commit 374eba9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang-format/ClangFormatCommand.mm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ void updateOffsets(std::vector<size_t>& offsets, NSMutableArray<NSString*>* line
2626
return clang::format::FormatStyle::LK_ObjC;
2727
}
2828
}
29-
} else if (UTTypeEqual(uti, kUTTypeCPlusPlusHeader) || UTTypeEqual(uti, kUTTypeCPlusPlusSource) ||
29+
}
30+
if (UTTypeEqual(uti, kUTTypeCPlusPlusHeader) || UTTypeEqual(uti, kUTTypeCPlusPlusSource) ||
3031
UTTypeEqual(uti, kUTTypeCHeader) || UTTypeEqual(uti, kUTTypeCSource)) {
3132
return clang::format::FormatStyle::LK_Cpp;
3233
} else if (UTTypeEqual(uti, kUTTypeObjectiveCSource) ||

0 commit comments

Comments
 (0)