[llvm-bugs] [Bug 42767] New: add newline between include and namespace
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Jul 25 16:45:56 PDT 2019
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: unassignedclangbugs at nondot.org
Reporter: janwilmans at gmail.com
CC: djasper at google.com, klimek at google.com,
llvm-bugs at lists.llvm.org
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190725/6ffbd74a/attachment.html>
More information about the llvm-bugs
mailing list