[PATCH] D115990: AlignConsecutiveDeclarations not working for 'const' keyword in JavsScript
Marek Kurdej via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Dec 19 09:53:16 PST 2021
curdeius accepted this revision.
curdeius added a comment.
This revision is now accepted and ready to land.
LGTM! Optional nit comment.
================
Comment at: clang/lib/Format/TokenAnnotator.cpp:1875
+ // const a = in JavaScript.
+ if (Style.isJavaScript() && PreviousNotConst->is(tok::kw_const))
+ return true;
----------------
Nit.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D115990/new/
https://reviews.llvm.org/D115990
More information about the cfe-commits
mailing list