================
@@ -1471,6 +1485,10 @@ FormatToken *FormatTokenLexer::getNextToken() {
         // the tok value seems to be needed. Not sure if there's a more elegant
         // way.
         FormatTok->Tok.setKind(tok::kw_if);
+      } else if (it->second == TT_TryMacro) {
+        FormatTok->Tok.setKind(tok::kw_try);
+      } else if (it->second == TT_CatchMacro) {
+        FormatTok->Tok.setKind(tok::kw_catch);
----------------
HazardyKnusperkeks wrote:

My bad, didn't look good enough. Yeah keep the `setKind` calls, but 
`setFinalizedType` should be used. I would limit it to your new macros, a 
second PR to change all others is welcome, but shouldn't be made here.

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