]> granicus.if.org Git - clang/commit
clang-format: Fix ObjC method exprs with variadic parameters.
authorDaniel Jasper <djasper@google.com>
Sat, 26 Oct 2013 17:00:22 +0000 (17:00 +0000)
committerDaniel Jasper <djasper@google.com>
Sat, 26 Oct 2013 17:00:22 +0000 (17:00 +0000)
commit8f54d881723ca7058807eee871913c812618bfda
tree7f25c9dc25a12be26b0b96fff802f8b81b417625
parent2f0ca41d213deb3637502fc9182e99035e7d1fc4
clang-format: Fix ObjC method exprs with variadic parameters.

Before:
  _versionLabel.text = [
    NSString stringWithFormat:NSLocalizedString(@"version: %@", @"Label"),
    [NSBundle mainBundle].infoDictionary[@"CFBundleShortVersionString"]
  ];

After:
  _versionLabel.text =
      [NSString stringWithFormat:NSLocalizedString(@"version: %@", @"Label"),
          [NSBundle mainBundle].infoDictionary[@"CFBundleShortVersionString"]];

This fixed llvm.org/PR17695.

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