Lines Matching refs:DiagStr

791 FormatDiagnostic(const char *DiagStr, const char *DiagEnd,  in FormatDiagnostic()  argument
796 if (DiagEnd - DiagStr == 2 && in FormatDiagnostic()
797 StringRef(DiagStr, DiagEnd - DiagStr).equals("%0") && in FormatDiagnostic()
823 while (DiagStr != DiagEnd) { in FormatDiagnostic()
824 if (DiagStr[0] != '%') { in FormatDiagnostic()
826 const char *StrEnd = std::find(DiagStr, DiagEnd, '%'); in FormatDiagnostic()
827 OutStr.append(DiagStr, StrEnd); in FormatDiagnostic()
828 DiagStr = StrEnd; in FormatDiagnostic()
830 } else if (isPunctuation(DiagStr[1])) { in FormatDiagnostic()
831 OutStr.push_back(DiagStr[1]); // %% -> %. in FormatDiagnostic()
832 DiagStr += 2; in FormatDiagnostic()
837 ++DiagStr; in FormatDiagnostic()
848 if (!isDigit(DiagStr[0])) { in FormatDiagnostic()
849 Modifier = DiagStr; in FormatDiagnostic()
850 while (DiagStr[0] == '-' || in FormatDiagnostic()
851 (DiagStr[0] >= 'a' && DiagStr[0] <= 'z')) in FormatDiagnostic()
852 ++DiagStr; in FormatDiagnostic()
853 ModifierLen = DiagStr-Modifier; in FormatDiagnostic()
856 if (DiagStr[0] == '{') { in FormatDiagnostic()
857 ++DiagStr; // Skip {. in FormatDiagnostic()
858 Argument = DiagStr; in FormatDiagnostic()
860 DiagStr = ScanFormat(DiagStr, DiagEnd, '}'); in FormatDiagnostic()
861 assert(DiagStr != DiagEnd && "Mismatched {}'s in diagnostic string!"); in FormatDiagnostic()
862 ArgumentLen = DiagStr-Argument; in FormatDiagnostic()
863 ++DiagStr; // Skip }. in FormatDiagnostic()
867 assert(isDigit(*DiagStr) && "Invalid format for argument in diagnostic"); in FormatDiagnostic()
868 unsigned ArgNo = *DiagStr++ - '0'; in FormatDiagnostic()
875 assert(*DiagStr == ',' && isDigit(*(DiagStr + 1)) && in FormatDiagnostic()
877 ++DiagStr; // Comma. in FormatDiagnostic()
878 ArgNo2 = *DiagStr++ - '0'; in FormatDiagnostic()