[PATCH] D143825: [clang-format] Put ports on separate lines in Verilog module headers

sstwcw via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Feb 11 12:23:45 PST 2023


sstwcw created this revision.
sstwcw added reviewers: HazardyKnusperkeks, MyDeveloperDay, curdeius, owenpan, rymiel.
Herald added a project: All.
sstwcw requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

New:

  module mh1
      (input var int in1,
       input var in2, in3,
       output tagged_st out);
  endmodule

Old:

  module mh1
      (input var int in1, input var in2, in3, output tagged_st out);
  endmodule

`getNextNonComment` was modified to return a non-const pointer because
we needed to use it that way in `verilogGroupDecl`.

The comment on line 2620 was a typo.  We corrected it while modifying
the function.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D143825

Files:
  clang/lib/Format/FormatToken.h
  clang/lib/Format/TokenAnnotator.cpp
  clang/unittests/Format/FormatTestVerilog.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D143825.496708.patch
Type: text/x-patch
Size: 13667 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230211/117f3607/attachment.bin>


More information about the cfe-commits mailing list