[PATCH] D123450: [clang-format] Parse Verilog if statements
Owen Pan via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 2 21:00:04 PDT 2022
owenpan added inline comments.
================
Comment at: clang/lib/Format/FormatToken.h:1550
+ bool isBlockBegin(const FormatToken &Tok, const FormatStyle &Style) const {
+ return Tok.is(TT_MacroBlockBegin) ||
+ (Style.isVerilog() ? isVerilogBegin(Tok) : Tok.is(tok::l_brace));
----------------
Due of what `isBlockBegin()` is replacing in this patch, `TT_MacroBlockBegin` should be added in a separate patch (if it's correct to add it) along with corresponding unit tests.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D123450/new/
https://reviews.llvm.org/D123450
More information about the cfe-commits
mailing list