Lines Matching refs:ExpectedTok
103 static bool IsCommonTypo(tok::TokenKind ExpectedTok, const Token &Tok) { in IsCommonTypo() argument
104 switch (ExpectedTok) { in IsCommonTypo()
111 bool Parser::ExpectAndConsume(tok::TokenKind ExpectedTok, unsigned DiagID, in ExpectAndConsume() argument
113 if (Tok.is(ExpectedTok) || Tok.is(tok::code_completion)) { in ExpectAndConsume()
119 if (IsCommonTypo(ExpectedTok, Tok)) { in ExpectAndConsume()
124 SourceRange(Loc), tok::getPunctuatorSpelling(ExpectedTok)); in ExpectAndConsume()
126 DB << ExpectedTok; in ExpectAndConsume()
128 DB << Msg << ExpectedTok; in ExpectAndConsume()
141 Spelling = tok::getPunctuatorSpelling(ExpectedTok); in ExpectAndConsume()
148 DB << ExpectedTok; in ExpectAndConsume()
150 DB << Msg << ExpectedTok; in ExpectAndConsume()