0

I am using the Uncrustify plugin for Xcode5 (BBUncrustifyPlugin) to format my code nicely. However when formatting the active file it gives the errors:

Uncrustify Formatter error:
Parsing: XDImageViewController.m as language OC
XDImageViewController.m:33 Unmatched NEWLINE

Looking at this line all I have is a single hash # followed by a new line. like so:

#
#pragma mark - Section header
#

Can anyone tell me if there is a way to get Uncrustify to ignore this error or work around it? I don't see why a hash should cause problems.

Thanks.

MungoRae
  • 1,912
  • 1
  • 16
  • 25
  • May be it's because you are using empty Macros `#` that does nothing? That's why Unrucstify pays your attention on it. – Vlad Papko Apr 30 '14 at 10:31
  • Yes but I want a way to make it ignore these empty macros. Why would an empty macro cause Uncrustify to throw this error? – MungoRae Apr 30 '14 at 10:44
  • I’m voting to close this question because (a) it'll never be answered; (b) using a hash mark is unconventional in C; and (c) uncrustify doesn't have the feature to format blank macros. The question's author would be better off using a blank line or double-slash comment. – Dave Jarvis Sep 19 '22 at 16:25

0 Answers0