Skip to content

Commit

Permalink
Update NSDocument+TRVSClangFormat.m
Browse files Browse the repository at this point in the history
Add support for formatting .hxx files.
  • Loading branch information
Jonathan Jones committed Apr 26, 2016
1 parent a221149 commit 4137eb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ClangFormat/NSDocument+TRVSClangFormat.m
Expand Up @@ -57,7 +57,7 @@ - (BOOL)trvs_shouldFormatBeforeSaving {
}

- (BOOL)trvs_shouldFormat {
return [[NSSet setWithObjects:@"c", @"h", @"cpp", @"cc", @"cxx", @"hh", @"hpp", @"ipp", @"m", @"mm", @"metal", nil] containsObject:[[[self fileURL] pathExtension] lowercaseString]];
return [[NSSet setWithObjects:@"c", @"h", @"cpp", @"cc", @"cxx", @"hh", @"hpp", @"hxx", @"ipp", @"m", @"mm", @"metal", nil] containsObject:[[[self fileURL] pathExtension] lowercaseString]];
}

@end

0 comments on commit 4137eb3

Please sign in to comment.