]> granicus.if.org Git - clang/commit
clang-format: Support ObjC's NS_ENUMs.
authorDaniel Jasper <djasper@google.com>
Thu, 30 Jan 2014 14:38:37 +0000 (14:38 +0000)
committerDaniel Jasper <djasper@google.com>
Thu, 30 Jan 2014 14:38:37 +0000 (14:38 +0000)
commit77730d1141cf83f677b3c4d5e94db33291602b21
tree01f449ef269d6fc1061e1134ed120ba21896be3a
parent9d95eaa1f2cbadcf39110262d3bba90519fcea1d
clang-format: Support ObjC's NS_ENUMs.

Before:
  typedef NS_ENUM(NSInteger, MyType) {
      /// Information about someDecentlyLongValue.
      someDecentlyLongValue,
      /// Information about anotherDecentlyLongValue.
      anotherDecentlyLongValue,
      /// Information about aThirdDecentlyLongValue.
      aThirdDecentlyLongValue};

After:
  typedef NS_ENUM(NSInteger, MyType) {
    /// Information about someDecentlyLongValue.
    someDecentlyLongValue,
    /// Information about anotherDecentlyLongValue.
    anotherDecentlyLongValue,
    /// Information about aThirdDecentlyLongValue.
    aThirdDecentlyLongValue
  };

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