mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:32:44 +01:00
[NFC] Correctly assert the indents for printEnumValHelpStr.
Only verify that there's no negative indent. Noted by @chapuni in https://reviews.llvm.org/D93494. Reviewed By: chapuni Differential Revision: https://reviews.llvm.org/D102021
This commit is contained in:
parent
59f38d865c
commit
6aa024bb17
@ -1739,7 +1739,7 @@ void Option::printHelpStr(StringRef HelpStr, size_t Indent,
|
||||
void Option::printEnumValHelpStr(StringRef HelpStr, size_t BaseIndent,
|
||||
size_t FirstLineIndentedBy) {
|
||||
const StringRef ValHelpPrefix = " ";
|
||||
assert(BaseIndent >= FirstLineIndentedBy + ValHelpPrefix.size());
|
||||
assert(BaseIndent >= FirstLineIndentedBy);
|
||||
std::pair<StringRef, StringRef> Split = HelpStr.split('\n');
|
||||
outs().indent(BaseIndent - FirstLineIndentedBy)
|
||||
<< ArgHelpPrefix << ValHelpPrefix << Split.first << "\n";
|
||||
|
Loading…
Reference in New Issue
Block a user