[PATCH] D35955: clang-format: Add preprocessor directive indentation
Erik Uhlmann via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 16 16:36:41 PDT 2017
euhlmann updated this revision to Diff 111433.
euhlmann marked 13 inline comments as done.
euhlmann edited the summary of this revision.
euhlmann added a comment.
Allows comments before the include guard opens. However, if there's a single non-comment line before an include-guard-like structure that meets all the other conditions then it will be treated as an include guard because `Lines` does not yet contain the line before the `#ifndef`. This looks difficult to fix and I believe it's a rare enough situation to ignore.
This does not yet address avoiding repetition in the tests or comments before indented preprocessor lines being indented.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 18060 bytes
Desc: not available
More information about the cfe-commits