Lines Matching defs:Argument
25 const char *Argument, unsigned ArgLen,
31 const char *Str = "<can't format argument>";
354 // When emitting diagnostics, we set the final argument count into
425 /// like this: %select{foo|bar|baz}2. This means that the integer argument
430 const char *Argument, unsigned ArgumentLen,
432 const char *ArgumentEnd = Argument+ArgumentLen;
436 const char *NextVal = ScanFormat(Argument, ArgumentEnd, '|');
439 Argument = NextVal+1; // Skip this string.
444 const char *EndPtr = ScanFormat(Argument, ArgumentEnd, '|');
447 DInfo.FormatDiagnostic(Argument, EndPtr, OutStr);
560 /// Conditions are simple boolean expressions, where n is the number argument.
588 const char *Argument, unsigned ArgumentLen,
590 const char *ArgumentEnd = Argument + ArgumentLen;
592 assert(Argument < ArgumentEnd && "Plural expression didn't match.");
593 const char *ExprEnd = Argument;
598 if (EvalPluralExpr(ValNo, Argument, ExprEnd)) {
599 Argument = ExprEnd + 1;
600 ExprEnd = ScanFormat(Argument, ArgumentEnd, '|');
604 DInfo.FormatDiagnostic(Argument, ExprEnd, OutStr);
607 Argument = ScanFormat(Argument, ArgumentEnd - 1, '|') + 1;
661 // This must be a placeholder for a diagnostic argument. The format for a
663 // The digit is a number from 0-9 indicating which argument this comes from.
666 const char *Modifier = 0, *Argument = 0;
677 // If we have an argument, get it next.
680 Argument = DiagStr;
684 ArgumentLen = DiagStr-Argument;
689 assert(isdigit(*DiagStr) && "Invalid format for argument in diagnostic");
718 HandleSelectModifier(*this, (unsigned)Val, Argument, ArgumentLen,
723 HandlePluralModifier(*this, (unsigned)Val, Argument, ArgumentLen,
737 HandleSelectModifier(*this, Val, Argument, ArgumentLen, OutStr);
741 HandlePluralModifier(*this, (unsigned)Val, Argument, ArgumentLen,
773 Argument, ArgumentLen,
779 // Remember this argument info for subsequent formatting operations. Turn