[PATCH] D128714: [clang-format] Handle Verilog case statements

Björn Schäpers via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 28 02:30:23 PDT 2022


HazardyKnusperkeks added inline comments.


================
Comment at: clang/lib/Format/Format.cpp:1265
   LLVMStyle.IndentAccessModifiers = false;
-  LLVMStyle.IndentCaseLabels = false;
+  LLVMStyle.IndentCaseLabels = LLVMStyle.isVerilog() ? true : false;
   LLVMStyle.IndentCaseBlocks = false;
----------------
You should put that below.


================
Comment at: clang/lib/Format/Format.cpp:1349
 
   // Defaults that differ when not C++.
   if (Language == FormatStyle::LK_TableGen)
----------------
Here.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D128714/new/

https://reviews.llvm.org/D128714



More information about the cfe-commits mailing list