================
@@ -163,8 +164,14 @@ class AnnotatingParser {
     const auto *BeforeLess = Left->Previous;
 
     if (BeforeLess) {
-      if (BeforeLess->Tok.isLiteral())
+      bool isUDLOperator = BeforeLess->is(tok::string_literal) &&
+                           BeforeLess->Previous &&
+                           BeforeLess->Previous->is(tok::kw_operator);
+      if (BeforeLess->Tok.isLiteral()) {
+        if (isUDLOperator)
+          return true;
         return false;
+      }
----------------
HazardyKnusperkeks wrote:

Move the isUDLOperator into the if, and then use the value directly in the 
return statement.

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

Reply via email to