Currently, `printHelp` behaves differently for options that: * do not define `HelpText` (such options _are not printed_), and * define its `HelpText` as `HelpText<"">` (such options _are printed_). In practice, both approaches lead to no help text and `printHelp` should treat them consistently. This patch addresses that by making `printHelpt` check the length of the help text to be printed. All affected tests have been updated accordingly. The option definitions for llvm-cvtres have been updated with a short description or "Not implemented" for options that are ignored by the tool. Differential Revision: https://reviews.llvm.org/D107557
17 lines
738 B
Plaintext
17 lines
738 B
Plaintext
; RUN: llvm-cvtres /h > %t
|
|
; RUN: FileCheck -input-file=%t %s -check-prefix=HELP_TEST
|
|
|
|
; HELP_TEST: OVERVIEW: Resource Converter
|
|
; HELP_TEST-DAG: USAGE: llvm-cvtres [options] file...
|
|
; HELP_TEST-DAG: OPTIONS:
|
|
; HELP_TEST-NEXT: /DEFINE:symbol Not implemented
|
|
; HELP_TEST-NEXT: /FOLDDUPS: Not implemented
|
|
; HELP_TEST-NEXT: /HELP Display available options
|
|
; HELP_TEST-NEXT: /MACHINE:{ARM|ARM64|EBC|IA64|X64|X86}
|
|
; HELP_TEST-NEXT: Machine architecture
|
|
; HELP_TEST-DAG: /NOLOGO Not implemented
|
|
; HELP_TEST-NEXT: /OUT:filename Output file
|
|
; HELP_TEST-NEXT: /READONLY Not implemented
|
|
; HELP_TEST-NEXT: /TIMESTAMP:<value> Timestamp for coff header, defaults to current time
|
|
; HELP_TEST-NEXT: /VERBOSE Use verbose output
|