[PATCH] D137486: [clang-format] Correctly annotate function names before attributes
Björn Schäpers via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Nov 6 10:50:35 PST 2022
HazardyKnusperkeks accepted this revision.
HazardyKnusperkeks added inline comments.
This revision is now accepted and ready to land.
================
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;
----------------
What about `__declspec`, or `__attribute__(())`?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D137486/new/
https://reviews.llvm.org/D137486
More information about the cfe-commits
mailing list