[clang-format] Recognize Verilog always blocks
authorsstwcw <f0gukp2nk@protonmail.com>
Fri, 10 Mar 2023 15:12:13 +0000 (15:12 +0000)
committersstwcw <f0gukp2nk@protonmail.com>
Tue, 14 Mar 2023 03:49:56 +0000 (03:49 +0000)
commita1f8bab9bad7dc7ef5bae518bc3289f4111846f3
tree447855246d957eb3b83460b9a0b02c2324f0b000
parent5686364d90734ffdc6823332fce199c93b6c4139
[clang-format] Recognize Verilog always blocks

The small `Coverage` test was added because we added the space rule
about 2 at signs along with the rule about only 1 of it. We have not
fully covered covergroup yet.

Reviewed By: MyDeveloperDay, owenpan

Differential Revision: https://reviews.llvm.org/D145794
clang/lib/Format/FormatToken.h
clang/lib/Format/TokenAnnotator.cpp
clang/lib/Format/UnwrappedLineParser.cpp
clang/lib/Format/UnwrappedLineParser.h
clang/unittests/Format/FormatTestVerilog.cpp