[cfe-commits] r172100 - /cfe/trunk/unittests/Format/FormatTest.cpp
Nico Weber
nicolasweber at gmx.de
Thu Jan 10 12:18:33 PST 2013
Author: nico
Date: Thu Jan 10 14:18:33 2013
New Revision: 172100
URL: http://llvm.org/viewvc/llvm-project?rev=172100&view=rev
Log:
Formatter: Add test for template and protocol parameters in ObjC method declarations.
Modified:
cfe/trunk/unittests/Format/FormatTest.cpp
Modified: cfe/trunk/unittests/Format/FormatTest.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/Format/FormatTest.cpp?rev=172100&r1=172099&r2=172100&view=diff
==============================================================================
--- cfe/trunk/unittests/Format/FormatTest.cpp (original)
+++ cfe/trunk/unittests/Format/FormatTest.cpp Thu Jan 10 14:18:33 2013
@@ -1176,6 +1176,12 @@
"outRange4:(NSRange) out_range4 outRange5:(NSRange) out_range5 "
"outRange6:(NSRange) out_range6 outRange7:(NSRange) out_range7 "
"outRange8:(NSRange) out_range8 outRange9:(NSRange) out_range9;"));
+
+ verifyFormat("- (int)sum:(vector<int>)numbers;");
+ verifyGoogleFormat("- (void)setDelegate:(id<Protocol>)delegate;");
+ // FIXME: In LLVM style, there should be a space in front of a '<' for ObjC
+ // protocol lists (but not for template classes):
+ //verifyFormat("- (void)setDelegate:(id <Protocol>)delegate;");
}
TEST_F(FormatTest, FormatObjCBlocks) {
More information about the cfe-commits
mailing list