aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Object/XCOFFObjectFileTest.cpp
diff options
context:
space:
mode:
authorAlexey Samsonov <vonosmas@gmail.com>2025-11-05 11:02:28 -0800
committerGitHub <noreply@github.com>2025-11-05 11:02:28 -0800
commit120689e46679c6db37cd9e839ec0721e80a22d4f (patch)
tree24057a275e7023ad01ecf7bfce35d4925b7d008a /llvm/unittests/Object/XCOFFObjectFileTest.cpp
parentc193eea86e9f0111e15df62343813857e306b779 (diff)
downloadllvm-120689e46679c6db37cd9e839ec0721e80a22d4f.zip
llvm-120689e46679c6db37cd9e839ec0721e80a22d4f.tar.gz
llvm-120689e46679c6db37cd9e839ec0721e80a22d4f.tar.bz2
[libc] Migrate ctype_utils to use char instead of int where applicable. (#166225)
Functions like isalpha / tolower can operate on chars internally. This allows us to get rid of unnecessary casts and open a way to creating wchar_t overloads with the same names (e.g. for isalpha), that would simplify templated code for conversion functions (see 315dfe5865962d8a3d60e21d1fffce5214fe54ef). Add the int->char converstion to public entrypoints implementation instead. We also need to introduce bounds check on the input argument values - these functions' behavior is unspecified if the argument is neither EOF nor fits in "unsigned char" range, but the tests we've had verified that they always return false for small negative values. To preserve this behavior, cover it explicitly.
Diffstat (limited to 'llvm/unittests/Object/XCOFFObjectFileTest.cpp')
0 files changed, 0 insertions, 0 deletions