Searched refs:ExpectedTok (Results 1 – 2 of 2) sorted by relevance
110 static bool IsCommonTypo(tok::TokenKind ExpectedTok, const Token &Tok) { in IsCommonTypo() argument111 switch (ExpectedTok) { in IsCommonTypo()118 bool Parser::ExpectAndConsume(tok::TokenKind ExpectedTok, unsigned DiagID, in ExpectAndConsume() argument120 if (Tok.is(ExpectedTok) || Tok.is(tok::code_completion)) { in ExpectAndConsume()126 if (IsCommonTypo(ExpectedTok, Tok)) { in ExpectAndConsume()131 SourceRange(Loc), tok::getPunctuatorSpelling(ExpectedTok)); in ExpectAndConsume()133 DB << ExpectedTok; in ExpectAndConsume()135 DB << Msg << ExpectedTok; in ExpectAndConsume()148 Spelling = tok::getPunctuatorSpelling(ExpectedTok); in ExpectAndConsume()155 DB << ExpectedTok; in ExpectAndConsume()[all …]
1110 bool ExpectAndConsume(tok::TokenKind ExpectedTok,