Searched refs:ExpectedTok (Results 1 – 2 of 2) sorted by relevance
123 static bool IsCommonTypo(tok::TokenKind ExpectedTok, const Token &Tok) { in IsCommonTypo() argument124 switch (ExpectedTok) { in IsCommonTypo()131 bool Parser::ExpectAndConsume(tok::TokenKind ExpectedTok, unsigned DiagID, in ExpectAndConsume() argument133 if (Tok.is(ExpectedTok) || Tok.is(tok::code_completion)) { in ExpectAndConsume()139 if (IsCommonTypo(ExpectedTok, Tok)) { in ExpectAndConsume()144 SourceRange(Loc), tok::getPunctuatorSpelling(ExpectedTok)); in ExpectAndConsume()146 DB << ExpectedTok; in ExpectAndConsume()148 DB << Msg << ExpectedTok; in ExpectAndConsume()161 Spelling = tok::getPunctuatorSpelling(ExpectedTok); in ExpectAndConsume()168 DB << ExpectedTok; in ExpectAndConsume()[all …]
758 bool ExpectAndConsume(tok::TokenKind ExpectedTok,