diff --git a/clang/include/clang/Lex/Token.h b/clang/include/clang/Lex/Token.h --- a/clang/include/clang/Lex/Token.h +++ b/clang/include/clang/Lex/Token.h @@ -99,9 +99,8 @@ bool isOneOf(tok::TokenKind K1, tok::TokenKind K2) const { return is(K1) || is(K2); } - template - bool isOneOf(tok::TokenKind K1, tok::TokenKind K2, Ts... Ks) const { - return is(K1) || isOneOf(K2, Ks...); + template bool isOneOf(tok::TokenKind K1, Ts... Ks) const { + return is(K1) || isOneOf(Ks...); } /// Return true if this is a raw identifier (when lexing