================
@@ -5065,6 +5066,11 @@ bool TokenAnnotator::spaceRequiredBefore(const 
AnnotatedLine &Line,
   const bool IsVerilog = Style.isVerilog();
   assert(!IsVerilog || !IsCpp);
 
+  // TryMacros/CatchMacros should look like macro invocations, not keywords.
+  // Don't add a space before their argument list.
+  if (Left.isOneOf(TT_TryMacro, TT_CatchMacro) && Right.is(tok::l_paren))
+    return false;
----------------
HazardyKnusperkeks wrote:

Please make it working with `SpaceBeforeParens` and `SpaceBeforeParensOptions`.

https://github.com/llvm/llvm-project/pull/183352
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to