diff options
author | lntue <35648136+lntue@users.noreply.github.com> | 2024-01-24 20:02:03 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-24 20:02:03 -0500 |
commit | e9355b1b3e36616bb86575270ff3a4664d2cf4f7 (patch) | |
tree | 2b78135b16bbacd209cae16865448b8587b604aa /clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp | |
parent | bb6a4850553dd4140a5bd63187ec1b14d0b731f9 (diff) | |
download | llvm-e9355b1b3e36616bb86575270ff3a4664d2cf4f7.zip llvm-e9355b1b3e36616bb86575270ff3a4664d2cf4f7.tar.gz llvm-e9355b1b3e36616bb86575270ff3a4664d2cf4f7.tar.bz2 |
[libc] Use __SIZEOF_LONG__ to define LONG_WIDTH instead of sizeof(long). (#79391)
The standard requires `limits.h` constants to be used in preprocessors.
So we use `__SIZEOF_LONG__` instead of `sizeof(long)` to define
`LONG_WIDTH`. The macro `__SIZEOF_LONG__` seems to be available on both
clang and gcc since at least version 9.
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp')
0 files changed, 0 insertions, 0 deletions