owenpan added inline comments.
================ Comment at: clang/lib/Format/TokenAnnotator.cpp:76 +static bool isCppAttribute(bool IsCpp, const FormatToken &Tok) { + if (!IsCpp || !Tok.startsSequence(tok::l_square, tok::l_square)) + return false; ---------------- HazardyKnusperkeks wrote: > What about `__declspec`, or `__attribute__(())`? I was only refactoring here. I suppose `isCpp11AttributeSpecifier` was added to specifically handle attributes starting with `[[` as the name suggests. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D137486/new/ https://reviews.llvm.org/D137486 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits