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: unassignedclangb...@nondot.org
          Reporter: darwin...@icloud.com
                CC: djas...@google.com, kli...@google.com,
                    llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to