[llvm-bugs] [Bug 36412] New: support the layout style used by the C++ standard
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Feb 16 15:30:32 PST 2018
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: unassignedclangbugs at nondot.org
Reporter: richard-llvm at metafoo.co.uk
CC: djasper at google.com, klimek at google.com,
llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180216/a9cae639/attachment.html>
More information about the llvm-bugs
mailing list