[llvm-bugs] [Bug 50116] New: There is no option to have an empty line after namespace

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Apr 24 21:54:39 PDT 2021


https://bugs.llvm.org/show_bug.cgi?id=50116

            Bug ID: 50116
           Summary: There is no option to have an empty line after
                    namespace
           Product: clang
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: darwin.xu at icloud.com
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org

clang-format removes all empty lines between namespace and the following
contents:

------- Before: -------
namespace company
{
namespace lib
{

class Consumer
{
-----------------------


------- After: --------
namespace company
{
namespace lib
{
class Consumer
{
-----------------------

Which is annoying, because it reduces readability. And there is no options to
control that.

Can we at least allow one empty line after namespace?

-- 
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/20210425/b97041c8/attachment-0001.html>


More information about the llvm-bugs mailing list