llvm-project
ccc34031 - [libc] Clean up errno header usage in math tests. (#157898)

Commit
12 days ago
[libc] Clean up errno header usage in math tests. (#157898) This is one more follow-up to PR https://github.com/llvm/llvm-project/pull/157517 that cleans up the usage of libc_errno in math unit-tests (non-smoke). It follows the same rule: * if you use libc_errno in code literally, include src/__support/libc_errno.h * if you only rely on errno constants, include hdr/errno_macros.h Several tests for exp/log still retain the direct libc_errno usage, since in some cases they skip doing any validation if the error was raised. But the direct usage of libc_errno is removed from all other cases.
Author
Parents
Loading