]> granicus.if.org Git - clang/commit
Implements brace breaking styles.
authorManuel Klimek <klimek@google.com>
Mon, 13 May 2013 12:51:40 +0000 (12:51 +0000)
committerManuel Klimek <klimek@google.com>
Mon, 13 May 2013 12:51:40 +0000 (12:51 +0000)
commit44135b8836fc3ffb84e540d8a097955271ccbc23
tree160dabbbded29093ad678301b8fdb4fbcd4fdab4
parentaf64032b085d3711405dbe8d98f71c463e0fb52b
Implements brace breaking styles.

We now support "Linux" and "Stroustrup" brace breaking styles, which
gets us one step closer to support formatting WebKit, KDE & Linux code.

Linux brace breaking style:
namespace a
{
class A
{
  void f()
  {
    if (x) {
      f();
    } else {
      g();
    }
  }
}
}

Stroustrup brace breaking style:
namespace a {
class A {
  void f()
  {
    if (x) {
      f();
    } else {
      g();
    }
  }
}
}

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181700 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Format/Format.h
lib/Format/Format.cpp
lib/Format/UnwrappedLineParser.cpp
unittests/Format/FormatTest.cpp