https://bugs.llvm.org/show_bug.cgi?id=36412
Bug ID: 36412
Summary: support the layout style used by the C++ standard
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Formatter
Assignee: unassignedclangb...@nondot.org
Reporter: richard-l...@metafoo.co.uk
CC: djas...@google.com, kli...@google.com,
llvm-bugs@lists.llvm.org
The formatting rules used for indenting continuation lines in the C++ standard
are described here:
https://github.com/cplusplus/draft/issues/1754
Specifically, the idea is:
* For definitions, do not indent continuation lines. Distinct definitions are
visually distinguished by linebreaks between them. Indenting them creates too
much indentation.
* For declarations, do indent continuation lines. There may or may not be
adjacent linebreaks, so we need the indentation to make the division between
declarations more obvious.
It would be useful if clang-format could produce matching formatting.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs