[PATCH] D142891: [clang-format] Recognize Verilog non-blocking assignment
Owen Pan via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Feb 4 02:58:28 PST 2023
owenpan added inline comments.
================
Comment at: clang/lib/Format/TokenAnnotator.cpp:1628
bool InCSharpAttributeSpecifier = false;
+ bool AssignmentFound = false;
enum {
----------------
================
Comment at: clang/lib/Format/TokenAnnotator.cpp:1935-1936
+ }
+ if (Current.getPrecedence() == prec::Assignment)
+ Contexts.back().AssignmentFound = true;
} else if (Current.is(tok::comment)) {
----------------
Can you move them into the `if` statement above?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D142891/new/
https://reviews.llvm.org/D142891
More information about the cfe-commits
mailing list