Lines Matching refs:DigitTok
938 static bool GetLineValue(Token &DigitTok, unsigned &Val, in GetLineValue() argument
941 if (DigitTok.isNot(tok::numeric_constant)) { in GetLineValue()
942 PP.Diag(DigitTok, DiagID); in GetLineValue()
944 if (DigitTok.isNot(tok::eod)) in GetLineValue()
950 IntegerBuffer.resize(DigitTok.getLength()); in GetLineValue()
953 unsigned ActualLength = PP.getSpelling(DigitTok, DigitTokBegin, &Invalid); in GetLineValue()
968 PP.Diag(PP.AdvanceToTokenCharacter(DigitTok.getLocation(), i), in GetLineValue()
976 PP.Diag(DigitTok, DiagID); in GetLineValue()
984 PP.Diag(DigitTok.getLocation(), diag::warn_pp_line_decimal) in GetLineValue()
1000 Token DigitTok; in HandleLineDirective() local
1001 Lex(DigitTok); in HandleLineDirective()
1005 if (GetLineValue(DigitTok, LineNo, diag::err_pp_line_requires_integer,*this)) in HandleLineDirective()
1009 Diag(DigitTok, diag::ext_pp_line_zero); in HandleLineDirective()
1017 Diag(DigitTok, diag::ext_pp_line_too_big) << LineLimit; in HandleLineDirective()
1019 Diag(DigitTok, diag::warn_cxx98_compat_pp_line_too_big); in HandleLineDirective()
1052 SourceMgr.AddLineNote(DigitTok.getLocation(), LineNo, FilenameID); in HandleLineDirective()
1146 void Preprocessor::HandleDigitDirective(Token &DigitTok) { in HandleDigitDirective() argument
1150 if (GetLineValue(DigitTok, LineNo, diag::err_pp_linemarker_requires_integer, in HandleDigitDirective()
1190 SourceMgr.AddLineNote(DigitTok.getLocation(), LineNo, FilenameID, in HandleDigitDirective()