diff options
author | Daniel Jasper <djasper@google.com> | 2013-10-22 15:45:58 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2013-10-22 15:45:58 +0000 |
commit | c96894305223479789b990522b2877e766979f17 (patch) | |
tree | 65bcc6339d5ed8bb25585ef7c50206dd901633cf /unittests | |
parent | a07aa665a12ab23bef7aa4aedfe113dd8b13da57 (diff) | |
download | clang-c96894305223479789b990522b2877e766979f17.tar.gz |
clang-format: Fix ObjC literal indentation in Google style.
Style guide demands a two-space indent.
Before:
NSArray *arguments = @[
kind == kUserTicket ? @"--user-store" : @"--system-store",
@"--print-tickets",
@"--productid",
@"com.google.Chrome"
];
After:
NSArray *arguments = @[
kind == kUserTicket ? @"--user-store" : @"--system-store",
@"--print-tickets",
@"--productid",
@"com.google.Chrome"
];
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@193168 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r-- | unittests/Format/FormatTest.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/unittests/Format/FormatTest.cpp b/unittests/Format/FormatTest.cpp index 6dd9413392..d8ff2fceca 100644 --- a/unittests/Format/FormatTest.cpp +++ b/unittests/Format/FormatTest.cpp @@ -5416,6 +5416,18 @@ TEST_F(FormatTest, ObjCLiterals) { " @\"--productid\",\n" " @\"com.google.Chrome\"\n" "];"); + verifyGoogleFormat( + "@{\n" + " NSFontAttributeNameeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee : " + "regularFont,\n" + "};"); + verifyGoogleFormat( + "NSArray *arguments = @[\n" + " kind == kUserTicket ? @\"--user-store\" : @\"--system-store\",\n" + " @\"--print-tickets\",\n" + " @\"--productid\",\n" + " @\"com.google.Chrome\"\n" + "];"); } TEST_F(FormatTest, ReformatRegionAdjustsIndent) { |