Skip to content

preprocessor directives indentation #17736

@Trass3r

Description

@Trass3r
Bugzilla Link 17362
Resolution FIXED
Resolved on Jan 19, 2018 09:47
Version trunk
OS All
CC @aardappel,@catskul,@gnzlbg,@zmodem,@jbreitbart

Extended Description

clang-format just puts all directives at line start.

But I want to have:
#ifdef _MSC_VER
#pragma warning (push, 0)
...
#endif

while some people seem to like:
#if ...

define ...

#endif

Also I indent stuff like #pragmas (OpenMP for example) in the code while I always put typical #ifs etc. to switch code at line start.
Haven't tested that yet, just came to my mind.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions