Lines Matching refs:Diags
99 static DiagnosticBuilder Diag(DiagnosticsEngine *Diags, in Diag() argument
106 return Diags->Report(Begin, DiagID) << in Diag()
134 DiagnosticsEngine *Diags, in ProcessCharEscape() argument
161 if (Diags) in ProcessCharEscape()
162 Diag(Diags, Features, Loc, ThisTokBegin, EscapeBegin, ThisTokBuf, in ProcessCharEscape()
167 if (Diags) in ProcessCharEscape()
168 Diag(Diags, Features, Loc, ThisTokBegin, EscapeBegin, ThisTokBuf, in ProcessCharEscape()
193 Diag(Diags, Features, Loc, ThisTokBegin, EscapeBegin, ThisTokBuf, in ProcessCharEscape()
198 if (Diags) in ProcessCharEscape()
199 Diag(Diags, Features, Loc, ThisTokBegin, EscapeBegin, ThisTokBuf, in ProcessCharEscape()
218 if (Diags) in ProcessCharEscape()
219 Diag(Diags, Features, Loc, ThisTokBegin, EscapeBegin, ThisTokBuf, in ProcessCharEscape()
239 if (Diags) in ProcessCharEscape()
240 Diag(Diags, Features, Loc, ThisTokBegin, EscapeBegin, ThisTokBuf, in ProcessCharEscape()
264 if (Diags) in ProcessCharEscape()
265 Diag(Diags, Features, Loc, ThisTokBegin, EscapeBegin, ThisTokBuf, in ProcessCharEscape()
275 if (Diags) in ProcessCharEscape()
276 Diag(Diags, Features, Loc, ThisTokBegin, EscapeBegin, ThisTokBuf, in ProcessCharEscape()
286 Diag(Diags, Features, Loc, ThisTokBegin, EscapeBegin, ThisTokBuf, in ProcessCharEscape()
299 if (Diags) in ProcessCharEscape()
300 Diag(Diags, Features, Loc, ThisTokBegin, EscapeBegin, ThisTokBuf, in ProcessCharEscape()
317 if (Diags) in ProcessCharEscape()
318 Diag(Diags, Features, Loc, ThisTokBegin, EscapeBegin, ThisTokBuf, in ProcessCharEscape()
328 if (Diags) in ProcessCharEscape()
329 Diag(Diags, Features, Loc, ThisTokBegin, EscapeBegin, ThisTokBuf, in ProcessCharEscape()
334 if (!Diags) in ProcessCharEscape()
338 Diag(Diags, Features, Loc, ThisTokBegin, EscapeBegin, ThisTokBuf, in ProcessCharEscape()
342 Diag(Diags, Features, Loc, ThisTokBegin, EscapeBegin, ThisTokBuf, in ProcessCharEscape()
348 if (Delimited && Diags) { in ProcessCharEscape()
350 Diag(Diags, Features, Loc, ThisTokBegin, EscapeBegin, ThisTokBuf, in ProcessCharEscape()
354 Diag(Diags, Features, Loc, ThisTokBegin, EscapeBegin, ThisTokBuf, in ProcessCharEscape()
363 Diag(Diags, Features, Loc, ThisTokBegin, EscapeBegin, ThisTokBuf, in ProcessCharEscape()
459 FullSourceLoc Loc, DiagnosticsEngine *Diags, in ProcessNumericUCNEscape() argument
474 if (Diags) in ProcessNumericUCNEscape()
475 Diag(Diags, Features, Loc, ThisTokBegin, UcnBegin, ThisTokBuf, in ProcessNumericUCNEscape()
496 if (Diags) { in ProcessNumericUCNEscape()
497 Diag(Diags, Features, Loc, ThisTokBegin, UcnBegin, ThisTokBuf, in ProcessNumericUCNEscape()
514 if (Diags) in ProcessNumericUCNEscape()
515 Diag(Diags, Features, Loc, ThisTokBegin, UcnBegin, ThisTokBuf, in ProcessNumericUCNEscape()
522 if (Diags) { in ProcessNumericUCNEscape()
523 Diag(Diags, Features, Loc, ThisTokBegin, UcnBegin, ThisTokBuf, in ProcessNumericUCNEscape()
532 if (Diags) in ProcessNumericUCNEscape()
533 Diag(Diags, Features, Loc, ThisTokBegin, UcnBegin, ThisTokBuf, in ProcessNumericUCNEscape()
542 DiagnosticsEngine *Diags, const LangOptions &Features, FullSourceLoc Loc, in DiagnoseInvalidUnicodeCharacterName() argument
546 Diag(Diags, Features, Loc, TokBegin, TokRangeBegin, TokRangeEnd, in DiagnoseInvalidUnicodeCharacterName()
555 Diag(Diags, Features, Loc, TokBegin, TokRangeBegin, TokRangeEnd, in DiagnoseInvalidUnicodeCharacterName()
585 Diag(Diags, Features, Loc, TokBegin, TokRangeBegin, TokRangeEnd, in DiagnoseInvalidUnicodeCharacterName()
600 DiagnosticsEngine *Diags, in ProcessNamedUCNEscape() argument
606 if (Diags) { in ProcessNamedUCNEscape()
607 Diag(Diags, Features, Loc, ThisTokBegin, UcnBegin, ThisTokBuf, in ProcessNamedUCNEscape()
620 if (Diags) { in ProcessNamedUCNEscape()
621 Diag(Diags, Features, Loc, ThisTokBegin, UcnBegin, ThisTokBuf, in ProcessNamedUCNEscape()
633 if (Diags) in ProcessNamedUCNEscape()
634 DiagnoseInvalidUnicodeCharacterName(Diags, Features, Loc, ThisTokBegin, in ProcessNamedUCNEscape()
648 DiagnosticsEngine *Diags, in ProcessUCNEscape() argument
659 UcnVal, UcnLen, Loc, Diags, Features); in ProcessUCNEscape()
663 UcnLen, IsDelimitedEscapeSequence, Loc, Diags, in ProcessUCNEscape()
672 if (Diags) in ProcessUCNEscape()
673 Diag(Diags, Features, Loc, ThisTokBegin, UcnBegin, ThisTokBuf, in ProcessUCNEscape()
685 if (Diags) { in ProcessUCNEscape()
688 Diag(Diags, Features, Loc, ThisTokBegin, UcnBegin, ThisTokBuf, in ProcessUCNEscape()
695 Diag(Diags, Features, Loc, ThisTokBegin, UcnBegin, ThisTokBuf, in ProcessUCNEscape()
705 if (!Features.CPlusPlus && !Features.C99 && Diags) in ProcessUCNEscape()
706 Diag(Diags, Features, Loc, ThisTokBegin, UcnBegin, ThisTokBuf, in ProcessUCNEscape()
709 if ((IsDelimitedEscapeSequence || IsNamedEscapeSequence) && Diags) in ProcessUCNEscape()
710 Diag(Diags, Features, Loc, ThisTokBegin, UcnBegin, ThisTokBuf, in ProcessUCNEscape()
759 DiagnosticsEngine *Diags, in EncodeUCNEscape() argument
765 Loc, Diags, Features, true)) { in EncodeUCNEscape()
905 DiagnosticsEngine &Diags) in NumericLiteralParser() argument
906 : SM(SM), LangOpts(LangOpts), Diags(Diags), in NumericLiteralParser()
938 Diags.Report(TokLoc, diag::err_lexing_numeric); in NumericLiteralParser()
1199 Diags.Report(Lexer::AdvanceToTokenCharacter( in NumericLiteralParser()
1223 Diags.Report( in ParseDecimalOrOctalCommon()
1252 Diags.Report(Lexer::AdvanceToTokenCharacter( in ParseDecimalOrOctalCommon()
1302 Diags.Report(Lexer::AdvanceToTokenCharacter(TokLoc, Pos - ThisTokBegin, SM, in checkSeparator()
1343 Diags.Report(Lexer::AdvanceToTokenCharacter(TokLoc, s - ThisTokBegin, SM, in ParseNumberStartingWithZero()
1362 Diags.Report(Lexer::AdvanceToTokenCharacter( in ParseNumberStartingWithZero()
1373 Diags.Report(TokLoc, LangOpts.CPlusPlus in ParseNumberStartingWithZero()
1377 Diags.Report(TokLoc, diag::warn_cxx17_hex_literal); in ParseNumberStartingWithZero()
1379 Diags.Report(Lexer::AdvanceToTokenCharacter(TokLoc, s - ThisTokBegin, SM, in ParseNumberStartingWithZero()
1400 Diags.Report(TokLoc, DiagId); in ParseNumberStartingWithZero()
1410 Diags.Report(Lexer::AdvanceToTokenCharacter(TokLoc, s - ThisTokBegin, SM, in ParseNumberStartingWithZero()
1954 Target(PP.getTargetInfo()), Diags(&PP.getDiagnostics()), in StringLiteralParser()
1997 if (Diags) { in init()
2005 Diags->Report(Tok.getLocation(), in init()
2017 if (Diags) in init()
2018 Diags->Report(Tok.getLocation(), diag::err_unsupported_string_concat); in init()
2098 if (Diags) { in init()
2101 Diags->Report(TokLoc, diag::err_unevaluated_string_udl) in init()
2104 Diags->Report(TokLoc, diag::err_string_concat_mixed_suffix) in init()
2212 CharByteWidth, Diags, Features); in init()
2219 CharByteWidth * 8, Diags, Features, EvalMethod); in init()
2261 if (Diags) in init()
2262 Diags->Report(StringToks.front().getLocation(), in init()
2269 } else if (Diags) { in init()
2274 Diags->Report(StringToks.front().getLocation(), in init()
2311 if (Diags) { in CopyStringFragment()
2316 Diag(Diags, Features, SourceLoc, TokBegin, in CopyStringFragment()
2342 if (Diags) in DiagnoseLexingError()
2343 Diags->Report(Loc, diag::err_lexing_string); in DiagnoseLexingError()
2417 Diags, Features, StringLiteralEvalMethod::Evaluated); in getOffsetOfStringByte()