projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
372d8dc
)
Formatter: Add another ObjC literal test.
author
Nico Weber
<nicolasweber@gmx.de>
Sun, 10 Feb 2013 20:39:05 +0000
(20:39 +0000)
committer
Nico Weber
<nicolasweber@gmx.de>
Sun, 10 Feb 2013 20:39:05 +0000
(20:39 +0000)
(From http://clang.llvm.org/docs/ObjectiveCLiterals.html.)
llvm-svn: 174841
clang/unittests/Format/FormatTest.cpp
patch
|
blob
|
history
diff --git
a/clang/unittests/Format/FormatTest.cpp
b/clang/unittests/Format/FormatTest.cpp
index
6d434ca
..
3760a3b
100644
(file)
--- a/
clang/unittests/Format/FormatTest.cpp
+++ b/
clang/unittests/Format/FormatTest.cpp
@@
-2559,6
+2559,8
@@
TEST_F(FormatTest, ObjCLiterals) {
verifyFormat("NSLog(@\"%@\", @{ @1 : @2, @2 : @3 }[@1]);");
verifyFormat(
"NSDictionary *masses = @{ @\"H\" : @1.0078, @\"He\" : @4.0026 };");
+ verifyFormat(
+ "NSDictionary *settings = @{ AVEncoderKey : @(AVAudioQualityMax) };");
// FIXME: Nested and multi-line array and dictionary literals need more work.
}