[all-commits] [llvm/llvm-project] 92b2be: [clang-format] Handle enum in Verilog

eywdck2l via All-commits all-commits at lists.llvm.org
Sat Apr 1 10:15:07 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 92b2be39656b9d5c6b57b844884f3bcf3e44f6cd
      https://github.com/llvm/llvm-project/commit/92b2be39656b9d5c6b57b844884f3bcf3e44f6cd
  Author: sstwcw <f0gukp2nk at protonmail.com>
  Date:   2023-04-01 (Sat, 01 Apr 2023)

  Changed paths:
    M clang/lib/Format/UnwrappedLineParser.cpp
    M clang/unittests/Format/FormatTestVerilog.cpp

  Log Message:
  -----------
  [clang-format] Handle enum in Verilog

Verilog has enum just like C.

Reviewed By: HazardyKnusperkeks, owenpan, MyDeveloperDay

Differential Revision: https://reviews.llvm.org/D147328


  Commit: feb585e7d62ce92fcd8334abde4a84ee0301dcd3
      https://github.com/llvm/llvm-project/commit/feb585e7d62ce92fcd8334abde4a84ee0301dcd3
  Author: sstwcw <f0gukp2nk at protonmail.com>
  Date:   2023-04-01 (Sat, 01 Apr 2023)

  Changed paths:
    M clang/lib/Format/Format.cpp
    M clang/lib/Format/FormatToken.h
    M clang/unittests/Format/FormatTestVerilog.cpp

  Log Message:
  -----------
  [clang-format] Handle Verilog struct literals

Previously `isVerilogIdentifier` was mistaking the apostrophe used in
struct literals as an identifier.  It is fixed.

Reviewed By: HazardyKnusperkeks, owenpan

Differential Revision: https://reviews.llvm.org/D147329


Compare: https://github.com/llvm/llvm-project/compare/5888a47914f4...feb585e7d62c


More information about the All-commits mailing list