Lines Matching refs:DiagStr
644 FormatDiagnostic(const char *DiagStr, const char *DiagEnd, in FormatDiagnostic() argument
650 if (DiagEnd - DiagStr == 2 && in FormatDiagnostic()
651 StringRef(DiagStr, DiagEnd - DiagStr).equals("%0") && in FormatDiagnostic()
677 while (DiagStr != DiagEnd) { in FormatDiagnostic()
678 if (DiagStr[0] != '%') { in FormatDiagnostic()
680 const char *StrEnd = std::find(DiagStr, DiagEnd, '%'); in FormatDiagnostic()
681 OutStr.append(DiagStr, StrEnd); in FormatDiagnostic()
682 DiagStr = StrEnd; in FormatDiagnostic()
684 } else if (isPunctuation(DiagStr[1])) { in FormatDiagnostic()
685 OutStr.push_back(DiagStr[1]); // %% -> %. in FormatDiagnostic()
686 DiagStr += 2; in FormatDiagnostic()
691 ++DiagStr; in FormatDiagnostic()
702 if (!isDigit(DiagStr[0])) { in FormatDiagnostic()
703 Modifier = DiagStr; in FormatDiagnostic()
704 while (DiagStr[0] == '-' || in FormatDiagnostic()
705 (DiagStr[0] >= 'a' && DiagStr[0] <= 'z')) in FormatDiagnostic()
706 ++DiagStr; in FormatDiagnostic()
707 ModifierLen = DiagStr-Modifier; in FormatDiagnostic()
710 if (DiagStr[0] == '{') { in FormatDiagnostic()
711 ++DiagStr; // Skip {. in FormatDiagnostic()
712 Argument = DiagStr; in FormatDiagnostic()
714 DiagStr = ScanFormat(DiagStr, DiagEnd, '}'); in FormatDiagnostic()
715 assert(DiagStr != DiagEnd && "Mismatched {}'s in diagnostic string!"); in FormatDiagnostic()
716 ArgumentLen = DiagStr-Argument; in FormatDiagnostic()
717 ++DiagStr; // Skip }. in FormatDiagnostic()
721 assert(isDigit(*DiagStr) && "Invalid format for argument in diagnostic"); in FormatDiagnostic()
722 unsigned ArgNo = *DiagStr++ - '0'; in FormatDiagnostic()
729 assert(*DiagStr == ',' && isDigit(*(DiagStr + 1)) && in FormatDiagnostic()
731 ++DiagStr; // Comma. in FormatDiagnostic()
732 ArgNo2 = *DiagStr++ - '0'; in FormatDiagnostic()