[PATCH] D43902: [clang-format] Don't detect C++11 attribute specifiers as ObjC

Aaron Ballman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 28 13:47:04 PST 2018


aaron.ballman added inline comments.


================
Comment at: lib/Format/TokenAnnotator.cpp:346
+  bool parseCpp11AttributeSpecifier(FormatToken *Tok) {
+    if (!Style.isCpp()) return false;
+    if (!Tok || !Tok->startsSequence(tok::l_square, tok::l_square))
----------------
C can use this syntax as well with `-fdouble-square-bracket-attributes`, which would be good to also support.


Repository:
  rC Clang

https://reviews.llvm.org/D43902





More information about the cfe-commits mailing list