Searched refs:ModifierLen (Results 1 – 2 of 2) sorted by relevance
/external/clang/lib/Basic/ |
D | Diagnostic.cpp | 412 static bool ModifierIs(const char *Modifier, unsigned ModifierLen, in ModifierIs() argument 414 return StrLen-1 == ModifierLen && !memcmp(Modifier, Str, StrLen-1); in ModifierIs() 699 unsigned ModifierLen = 0, ArgumentLen = 0; in FormatDiagnostic() local 707 ModifierLen = DiagStr-Modifier; in FormatDiagnostic() 728 if (ModifierIs(Modifier, ModifierLen, "diff")) { in FormatDiagnostic() 761 assert(ModifierLen == 0 && "No modifiers for strings yet"); in FormatDiagnostic() 767 assert(ModifierLen == 0 && "No modifiers for strings yet"); in FormatDiagnostic() 780 if (ModifierIs(Modifier, ModifierLen, "select")) { in FormatDiagnostic() 783 } else if (ModifierIs(Modifier, ModifierLen, "s")) { in FormatDiagnostic() 785 } else if (ModifierIs(Modifier, ModifierLen, "plural")) { in FormatDiagnostic() [all …]
|
/external/llvm-project/clang/lib/Basic/ |
D | Diagnostic.cpp | 560 static bool ModifierIs(const char *Modifier, unsigned ModifierLen, in ModifierIs() argument 562 return StrLen-1 == ModifierLen && memcmp(Modifier, Str, StrLen-1) == 0; in ModifierIs() 845 unsigned ModifierLen = 0, ArgumentLen = 0; in FormatDiagnostic() local 853 ModifierLen = DiagStr-Modifier; in FormatDiagnostic() 874 if (ModifierIs(Modifier, ModifierLen, "diff")) { in FormatDiagnostic() 910 assert(ModifierLen == 0 && "No modifiers for strings yet"); in FormatDiagnostic() 916 assert(ModifierLen == 0 && "No modifiers for strings yet"); in FormatDiagnostic() 929 if (ModifierIs(Modifier, ModifierLen, "select")) { in FormatDiagnostic() 932 } else if (ModifierIs(Modifier, ModifierLen, "s")) { in FormatDiagnostic() 934 } else if (ModifierIs(Modifier, ModifierLen, "plural")) { in FormatDiagnostic() [all …]
|