0

If we write long if-conditions in objective-c, we do the following (we try to stay below 100 or 120 chars per line):

if (   foo
    && [foo bar]
    && [[foo bar] isKindOfClass:[something class]])
    {
        [foo something]; ...
    }

Meaning: we align all conditions so that the first condition does have two spaces, because of the 'missing' operators. Is it possible to align this in Uncrustify with objective c? I cannot find out how...

Tobias
  • 1,220
  • 17
  • 35
  • Of course in the example the first two conditions are not necessary due to how sending a message to nil works in Objective-C. – zaph Apr 11 '14 at 13:54
  • Try to align in xcode? – Lior Pollak Apr 11 '14 at 13:54
  • @Zaph, yeah, i know. I was just making something up to get an easy example. Just imagine there is more than one condition and an operator in between them. – Tobias Apr 11 '14 at 14:33

0 Answers0