================
@@ -860,6 +864,21 @@ struct FormatToken {
                               /*CPlusPlus11=*/true);
   }
 
+  template <typename T> [[nodiscard]] FormatToken *getPrevious(T A1) const {
+    FormatToken *Tok = Previous;
+    while (Tok && !Tok->is(A1))
----------------
HazardyKnusperkeks wrote:

```suggestion
    while (Tok && Tok->isNot(A1))
```

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

Reply via email to