[clang] [clang-format] Add spaces around the Verilog implication operator (PR #71352)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 29 07:10:22 PST 2023
================
@@ -1980,17 +1980,18 @@ TEST_F(TokenAnnotatorTest, UnderstandsVerilogOperators) {
// joined operators, we don't have a separate type, so we only test for their
// precedence.
std::pair<prec::Level, std::string> JoinedBinary[] = {
- {prec::Comma, "<->"}, {prec::Assignment, "+="},
- {prec::Assignment, "-="}, {prec::Assignment, "*="},
- {prec::Assignment, "/="}, {prec::Assignment, "%="},
- {prec::Assignment, "&="}, {prec::Assignment, "^="},
- {prec::Assignment, "<<="}, {prec::Assignment, ">>="},
- {prec::Assignment, "<<<="}, {prec::Assignment, ">>>="},
- {prec::LogicalOr, "||"}, {prec::LogicalAnd, "&&"},
- {prec::Equality, "=="}, {prec::Equality, "!="},
- {prec::Equality, "==="}, {prec::Equality, "!=="},
- {prec::Equality, "==?"}, {prec::Equality, "!=?"},
- {prec::ExclusiveOr, "~^"}, {prec::ExclusiveOr, "^~"},
+ {prec::Comma, "->"}, {prec::Comma, "<->"},
----------------
sstwcw wrote:
The `<->` was previously in the front. And the `->` is related. So I put them next to each other.
https://github.com/llvm/llvm-project/pull/71352
More information about the cfe-commits
mailing list