Skip to content

Commit

Permalink
uncrustify is launched without overriding the language to Objective-C
Browse files Browse the repository at this point in the history
  • Loading branch information
benoitsan committed Jun 23, 2013
1 parent 2caf313 commit fa691eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/BBUncrustify.m
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ + (void)uncrustifyFilesAtURLs:(NSArray *)fileURLs configurationFileURL:(NSURL *)
[fileURLs enumerateObjectsWithOptions:0 usingBlock:^(NSURL *fileURL, NSUInteger idx, BOOL *stop) {
if ([[NSFileManager defaultManager] fileExistsAtPath:fileURL.path]) {
NSMutableArray *args = NSMutableArray.array;
[args addObjectsFromArray:@[@"-l", @"OC", @"--frag", @"--no-backup"]];
[args addObjectsFromArray:@[@"--frag", @"--no-backup"]];
[args addObjectsFromArray:@[@"-c", configurationFileURL.path, fileURL.path]];

NSPipe *outputPipe = NSPipe.pipe;
Expand Down

1 comment on commit fa691eb

@sugarmo
Copy link
Contributor

@sugarmo sugarmo commented on fa691eb Jul 9, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This operation seems to be the reason of an issue that can not uncrustify codes with "Selected Lines" in Obj-C file.

Please sign in to comment.