Searched refs:ExpectedTok (Results 1 – 2 of 2) sorted by relevance
118 static bool IsCommonTypo(tok::TokenKind ExpectedTok, const Token &Tok) { in IsCommonTypo() argument119 switch (ExpectedTok) { in IsCommonTypo()126 bool Parser::ExpectAndConsume(tok::TokenKind ExpectedTok, unsigned DiagID, in ExpectAndConsume() argument128 if (Tok.is(ExpectedTok) || Tok.is(tok::code_completion)) { in ExpectAndConsume()134 if (IsCommonTypo(ExpectedTok, Tok)) { in ExpectAndConsume()139 SourceRange(Loc), tok::getPunctuatorSpelling(ExpectedTok)); in ExpectAndConsume()141 DB << ExpectedTok; in ExpectAndConsume()143 DB << Msg << ExpectedTok; in ExpectAndConsume()156 Spelling = tok::getPunctuatorSpelling(ExpectedTok); in ExpectAndConsume()163 DB << ExpectedTok; in ExpectAndConsume()[all …]
799 bool ExpectAndConsume(tok::TokenKind ExpectedTok,