HazardyKnusperkeks requested changes to this revision. HazardyKnusperkeks added inline comments. This revision now requires changes to proceed.
================ Comment at: clang/lib/Format/TokenAnnotator.cpp:3496-3501 + assert(!Tok.is(tok::l_brace) || !Tok.is(BK_Block) || + !Tok.isOneOf(TT_ObjCBlockLBrace, TT_DictLiteral) || + (Tok.Previous && Tok.Previous->Previous)); return (Tok.is(tok::l_brace) && Tok.is(BK_Block) && - !Tok.isOneOf(TT_ObjCBlockLBrace, TT_DictLiteral)); + !Tok.isOneOf(TT_ObjCBlockLBrace, TT_DictLiteral) && + !Tok.Previous->Previous->is(tok::kw_namespace)); ---------------- I find this really hard to read. Maybe you have to split the return. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D99031/new/ https://reviews.llvm.org/D99031 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits