llvm-project/llvm/test/tools/llvm-rc
Martin Storsjö 46020f6f0c [llvm-rc] Allow specifying language with a leading 0x prefix
This option is always interpreted strictly as a hexadecimal string,
even if it has no prefix that indicates the number format, hence
the existing call to StringRef::getAsInteger(16, ...).

StringRef::getAsInteger(0, ...) consumes a leading "0x" prefix is
present, but when the radix is specified, the radix shouldn't
be included.

Both MS rc.exe and GNU windres accept the language with that
prefix.

Also allow specifying the codepage to llvm-windres with a different
radix, as GNU windres allows that (but MS rc.exe doesn't).

This fixes https://llvm.org/PR51295.

Differential Revision: https://reviews.llvm.org/D107263
2021-08-05 10:19:55 +03:00
..
Inputs
absolute.test
codepage.test [llvm-rc] Allow specifying language with a leading 0x prefix 2021-08-05 10:19:55 +03:00
cpp-output.test
flags.test
helpmsg.test
include-paths.test
inline-manifest.test
language.test [llvm-rc] Allow specifying language with a leading 0x prefix 2021-08-05 10:19:55 +03:00
memoryflags-stringtable.test
memoryflags.test
not-expr.test
parser-expr.test
parser.test
preproc.test
resname-string.test
tag-accelerators.test
tag-dialog.test
tag-escape.test
tag-html.test
tag-icon-cursor.test
tag-menu.test
tag-stringtable.test
tag-user.test
tag-versioninfo.test
tokenizer.test
versioninfo-padding.test
windres-format.test
windres-prefix.test
windres-preproc.test
windres-target.test
windres-version.test