diff --git a/clang/lib/Format/TokenAnnotator.cpp b/clang/lib/Format/TokenAnnotator.cpp --- a/clang/lib/Format/TokenAnnotator.cpp +++ b/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;