[PATCH] D117520: [clang-format] Fix SeparateDefinitionBlocks issues
MyDeveloperDay via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 18 00:30:30 PST 2022
MyDeveloperDay added inline comments.
================
Comment at: clang/lib/Format/DefinitionBlockSeparator.cpp:44
+ if (CurrentToken->isOneOf(tok::kw_class, tok::kw_struct) ||
(Style.isJavaScript() && CurrentToken->TokenText == "function"))
return true;
----------------
I still wonder if this can't be CurrentToken->is(JSKeywords.kw_function)
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D117520/new/
https://reviews.llvm.org/D117520
More information about the cfe-commits
mailing list