[PATCH] D128713: [clang-format] Handle Verilog user-defined primitives
Owen Pan via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 29 12:39:19 PDT 2022
owenpan accepted this revision.
owenpan added inline comments.
================
Comment at: clang/lib/Format/TokenAnnotator.cpp:3968
+ !Right.isOneOf(tok::r_paren, tok::semi)) ||
+ (Right.is(TT_VerilogTableItem) && !Left.is(tok::l_paren))) {
+ const FormatToken *Next = Right.getNextNonComment();
----------------
================
Comment at: clang/lib/Format/UnwrappedLineParser.cpp:4165
+
+ unsigned InitialLevel = Line->Level++;
+ while (!eof() && !Keywords.isVerilogEnd(*FormatTok)) {
----------------
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D128713/new/
https://reviews.llvm.org/D128713
More information about the cfe-commits
mailing list