rosshemsley / SublimeClangFormat

A C++ code formatter based on Clang Format, for beautiful code with minimal effort in Sublime Text 3
Other
185 stars 52 forks source link

How to use BraceWrapping #45

Closed alecive closed 7 years ago

alecive commented 7 years ago

Hello,

thanks for this very useful tool! I have a question related to bracewrapping, because I cannot make it work. A standard clang-format file should have something like this:

BraceWrapping:
  AfterClass:      false
  AfterControlStatement: false
  AfterEnum:       false
  AfterFunction:   true
  AfterNamespace:  false
  AfterObjCDeclaration: false
  AfterStruct:     false
  AfterUnion:      false
  BeforeCatch:     false
  BeforeElse:      false
  IndentBraces: false

How to replicate this in a custom style for this package?

njames93 commented 7 years ago

I have created a PR( #49 ) with support for this.

rapimo commented 7 years ago

closed by #49