Skip to content

Commit

Permalink
Classify Objective-C++ as Objective-C for clang-format's purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
kkaefer committed Jun 19, 2020
1 parent 65b7aea commit 5e35758
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang-format/ClangFormatCommand.mm
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ void updateOffsets(std::vector<size_t>& offsets, NSMutableArray<NSString*>* line
UTTypeEqual(uti, kUTTypeCHeader) || UTTypeEqual(uti, kUTTypeCSource)) {
return clang::format::FormatStyle::LK_Cpp;
} else if (UTTypeEqual(uti, kUTTypeObjectiveCSource) ||
UTTypeEqual(uti, kUTTypeObjectiveCSource)) {
UTTypeEqual(uti, kUTTypeObjectiveCPlusPlusSource)) {
return clang::format::FormatStyle::LK_ObjC;
} else if (UTTypeEqual(uti, kUTTypeJavaSource)) {
return clang::format::FormatStyle::LK_Java;
Expand Down

0 comments on commit 5e35758

Please sign in to comment.