[all-commits] [llvm/llvm-project] cb5402: [clang-format] Recognize wait fork in Verilog (#13...

sstwcw via All-commits all-commits at lists.llvm.org
Mon Mar 31 06:53:45 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cb54026d92191e347629265d4082f5cc2cc28020
      https://github.com/llvm/llvm-project/commit/cb54026d92191e347629265d4082f5cc2cc28020
  Author: sstwcw <su3e8a96kzlver at posteo.net>
  Date:   2025-03-31 (Mon, 31 Mar 2025)

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

  Log Message:
  -----------
  [clang-format] Recognize wait fork in Verilog (#132042)

before

```Verilog
wait fork
  ;
  wait fork
    ;
    wait fork
      ;
```

after

```Verilog
wait fork;
wait fork;
wait fork;
```

The `wait fork` statement should not start a block. Previously the
formatter treated the `fork` part as the start of a new block. Now the
problem is fixed.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list