================
@@ -860,14 +862,35 @@ struct FormatToken {
/*CPlusPlus11=*/true);
}
- /// Returns the previous token ignoring comments.
- [[nodiscard]] FormatToken *getPreviousNonComment() const {
+ template <typename T>
+ [[nodiscard]] FormatToken *getPreviousOneOf(T A1) const {
----------------
HazardyKnusperkeks wrote:
For consistency:
```suggestion
[[nodiscard]] FormatToken *getPrevious(T A1) const {
```
https://github.com/llvm/llvm-project/pull/191217
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits