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

Björn Schäpers via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 7 11:57:14 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) &&
----------------
HazardyKnusperkeks wrote:

You are missing a test with the `period` as `Right`, right?

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


More information about the cfe-commits mailing list