[PATCH] D64632: [clang-format] Don't detect call to ObjC class method as C++11 attribute specifier

Ben Hamilton via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 12 10:42:38 PDT 2019


benhamilton added inline comments.


================
Comment at: clang/unittests/Format/FormatTest.cpp:7030-7032
+  // Make sure that we do not mistake a call to the Objective-C method named
+  // "class" inside an array literal as attributes.
+  verifyFormat("@[ [NSArray class] ];");
----------------
Consider adding another test for a method besides +class.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D64632/new/

https://reviews.llvm.org/D64632





More information about the cfe-commits mailing list