[clang] [clang-format] Add space in Verilog tagged unions (PR #71354)

via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 29 07:06:12 PST 2023


================
@@ -4694,8 +4694,15 @@ bool TokenAnnotator::spaceRequiredBefore(const AnnotatedLine &Line,
         Left.isOneOf(TT_VerilogDimensionedTypeName, Keywords.kw_function)) {
       return true;
     }
+    // In a tagged union expression, there should be a space after the tag.
+    if (Right.isOneOf(tok::period, Keywords.kw_apostrophe) &&
----------------
sstwcw wrote:

It is on line 363.

https://github.com/llvm/llvm-project/pull/71354


More information about the cfe-commits mailing list