diff options
author | Nico Weber <nicolasweber@gmx.de> | 2013-05-26 05:39:26 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2013-05-26 05:39:26 +0000 |
commit | ced7d41b5102770ec21e8b21f9df7076268a8aea (patch) | |
tree | 9a6e54e99774d770082a8c1569bd8081412a41ca /clang/lib/Format/TokenAnnotator.h | |
parent | a035f3b2ce12e9533f9bae068e0797f7a6e5eda1 (diff) | |
download | bcm5719-llvm-ced7d41b5102770ec21e8b21f9df7076268a8aea.tar.gz bcm5719-llvm-ced7d41b5102770ec21e8b21f9df7076268a8aea.zip |
Formatter/ObjC: In dictionary literals, break after ':', not before it.
Before:
@{ NSFontAttributeNameeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
: regularFont, };
Now:
@{ NSFontAttributeNameeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee :
regularFont, };
':'s in dictionary literals (and the corresponding {}s) are now marked as
TT_ObjCDictLiteral too, which makes further improvements to dict literal
layout possible.
llvm-svn: 182716
Diffstat (limited to 'clang/lib/Format/TokenAnnotator.h')
-rw-r--r-- | clang/lib/Format/TokenAnnotator.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Format/TokenAnnotator.h b/clang/lib/Format/TokenAnnotator.h index c72730e30c3..e0d6d047e12 100644 --- a/clang/lib/Format/TokenAnnotator.h +++ b/clang/lib/Format/TokenAnnotator.h @@ -40,6 +40,7 @@ enum TokenType { TT_ObjCArrayLiteral, TT_ObjCBlockLParen, TT_ObjCDecl, + TT_ObjCDictLiteral, TT_ObjCForIn, TT_ObjCMethodExpr, TT_ObjCMethodSpecifier, |