square / spacecommander

Commit fully-formatted Objective-C as a team without even trying.
Other
1.13k stars 177 forks source link

#if __has_include gets extra spaces #15

Closed orta closed 9 years ago

orta commented 9 years ago

#if __has_include(<SafariServices/SafariServices.h>) is turned into #if __has_include(<SafariServices / SafariServices.h>)

alanf commented 9 years ago

This is an issue that is part of clang-format, it must interpret this as a division statement.

Here is a link related to it: https://github.com/bengardner/uncrustify/issues/378

I was able to fix this specific issue by creating a custom formatter: https://github.com/square/spacecommander/pull/16

orta commented 9 years ago

Thanks @alanf - this seems like a reasonable answer to me :+1: