[PATCH] D99031: [clang-format] Fix CompactNamespaces corner case when AllowShortLambdasOnASingleLine/BraceWrapping.BeforeLambdaBody are set
Marek Kurdej via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 19 00:45:12 PDT 2021
curdeius added inline comments.
================
Comment at: clang/lib/Format/TokenAnnotator.cpp:3498
+ !Tok.isOneOf(TT_ObjCBlockLBrace, TT_DictLiteral) &&
+ !Tok.Previous->Previous->is(tok::kw_namespace));
}
----------------
Please add at least asserts for `Tok.Previous` and `Tok.Previous->Previous`.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D99031/new/
https://reviews.llvm.org/D99031
More information about the cfe-commits
mailing list