================
@@ -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;
----------------
harrishancock wrote:

Done in 
https://github.com/llvm/llvm-project/pull/183352/changes/d18634f88f673e027d4872a1c238b865fedd6e73
 with tests in 
https://github.com/llvm/llvm-project/pull/183352/changes/1c7ecc65fc6d0701f06a76a15eab956ee3cc7f3e

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