[Qt-creator] indent preprocessor directives

Konstantin Tokarev annulen at yandex.ru
Mon May 7 10:37:30 CEST 2012



07.05.2012, 12:30, "Oswald Buddenhagen" <oswald.buddenhagen at nokia.com>:
> On Fri, May 04, 2012 at 06:31:17PM +0300, ext Nikos Chantziaras wrote:
>
>>  The C standard says: [...]
>>
>>  Indenting preprocessor directives is perfectly acceptable by the standard.
>
> while this is correct, it's still just stupid to indent preprocessor
> directives with the rest of the code. it is a *pre*-processor. it is a
> semantically different beast, which messes with the C++ AST.

But I think it's perfectly valid to indent them in general, and indent them
respectively to each other.

-- 
Regards,
Konstantin



More information about the Qt-creator mailing list