[PATCH] D44632: [clang-format] Add a few more Core Graphics identifiers to ObjC heuristic

Jacek Olesiak via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 20 02:01:48 PDT 2018


jolesiak requested changes to this revision.
jolesiak added inline comments.
This revision now requires changes to proceed.


================
Comment at: unittests/Format/FormatTest.cpp:12099
   EXPECT_EQ(FormatStyle::LK_ObjC, guessLanguage("foo", "@interface Foo\n at end\n"));
+  EXPECT_EQ(FormatStyle::LK_ObjC, guessLanguage("foo.h", "int DoStuff(CGRect rect);\n"));
+  EXPECT_EQ(
----------------
I know that it's violated in several places in this file (even in two of the three lines above), but I feel like we should keep 80 char limit for column width.


Repository:
  rC Clang

https://reviews.llvm.org/D44632





More information about the cfe-commits mailing list