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

            Bug ID: 42767
           Summary: add newline between include and namespace
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Formatter
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]

We have options to remove duplicate white-space lines, however, it would also
be good for readability to be able to require at least one empty line:

* _before_ and _after_ and #include block 
* _before_ and _after_ a namespace

//
// License
//
#include <memory>
#include <string>
namespace {

}

convert to:

//
// License
//
                            <<-- added empty line
#include <memory>
#include <string>
                            <<-- added empty line
namespace Bar {

class Foo {

};

} // Bar

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to