llvm/llvm-project

add newline between include and namespace

Open

#42,112 opened on 2019年7月25日

GitHub で見る
 (6 comments) (1 reaction) (1 assignee)C++ (10,782 forks)batch import
bugzillaclang-formatenhancementgood first issue

Repository metrics

Stars
 (26,378 stars)
PR merge metrics
 (平均マージ 1d 2h) (30d で 1,000 merged PRs)

説明

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

コントリビューターガイド