================
@@ -235,9 +236,17 @@ void MacroParenthesesPPCallbacks::argument(const Token
&MacroNameTok,
continue;
// C++ template parameters.
- if (PP->getLangOpts().CPlusPlus && Prev.isOneOf(tok::comma, tok::less) &&
- Next.isOneOf(tok::comma, tok::greater))
- continue;
+ if (PP->getLangOpts().CPlusPlus && Prev.isOneOf(tok::comma, tok::less)) {
+ const auto *NextIt = TI + 1;
----------------
vbvictor wrote:
oh, i see that there is a lot of usage of "IT + 2", etc.. Correct to this if
you like.
This gave me an idea of a check to convert `it + n` to `std::next(it, n)`
https://github.com/llvm/llvm-project/pull/174329
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits