[PATCH] D75675: [clang-format] do not insert spaces around inline asm symbolic names

Krasimir Georgiev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 5 05:29:29 PST 2020


krasimir updated this revision to Diff 248445.
krasimir marked an inline comment as done.
krasimir added a comment.

Remove redundant check.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D75675

Files:
  clang/lib/Format/TokenAnnotator.cpp


Index: clang/lib/Format/TokenAnnotator.cpp
===================================================================
--- clang/lib/Format/TokenAnnotator.cpp
+++ clang/lib/Format/TokenAnnotator.cpp
@@ -499,7 +499,7 @@
     } else if (Left->is(TT_Unknown)) {
       if (StartsObjCMethodExpr) {
         Left->Type = TT_ObjCMethodExpr;
-      } else if (Style.isCpp() && InsideInlineASM) {
+      } else if (InsideInlineASM) {
         Left->Type = TT_InlineASMSymbolicNameLSquare;
       } else if (IsCpp11AttributeSpecifier) {
         Left->Type = TT_AttributeSquare;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D75675.248445.patch
Type: text/x-patch
Size: 562 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200305/833f178a/attachment-0001.bin>


More information about the cfe-commits mailing list