[PATCH] D43906: [clang-format] Improve detection of Objective-C block types

Krasimir Georgiev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 5 10:54:14 PST 2018


krasimir added inline comments.


================
Comment at: unittests/Format/FormatTest.cpp:12027
 
+TEST_F(FormatTest, GuessLanguageWithCaret) {
+  EXPECT_EQ(FormatStyle::LK_Cpp, guessLanguage("foo.h", "FOO(^);"));
----------------
Please also add formatting tests. This might require changes to the formatting logic since I'd intuitively expect ``int(^)(char)`` to be formatted as ``int (^)(char)``.


Repository:
  rC Clang

https://reviews.llvm.org/D43906





More information about the cfe-commits mailing list