llvm/llvm-project

add newline between include and namespace

Open

#42,112 建立於 2019年7月25日

在 GitHub 查看
 (6 留言) (1 反應) (1 負責人)C++ (10,782 fork)batch import
bugzillaclang-formatenhancementgood first issue

倉庫指標

Star
 (26,378 star)
PR 合併指標
 (平均合併 1天 2小時) (30 天內合併 1,000 個 PR)

描述

Bugzilla Link 42767
Version unspecified
OS Windows NT

Extended Description

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

貢獻者指南