| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
[libc] Move mbtowc, mbstowcs and inverse functions to stdlib.h (#168455) These functions should be declared in stdlib.h, not wchar.h, as confusing as it is. Move them to the proper header file and matching directories in src/ and test/ trees. This was discovered while testing libc++ build against llvm-libc, which re-declares functions like mbtowc in std-namespace in <cstdlib> header, and then uses those functions in its locale implementation. | 8 个月前 | |
[libc] Migrate wctype_utils to use wchar_t where applicable. (#166234) This is a counterpart of https://github.com/llvm/llvm-project/pull/166225 but for wctype_utils (which are not yet widely used). For now, I'm just changing the types from wint_t to wchar_t to match the regular ctype_utils change. The next change may rename most of the functions to match the name of ctype_utils variants, so that we could be calling them from the templated code operating on "const char*" and "const wchar_t*" strings, and the right function signature would be picked up. | 9 个月前 | |
[libc][wchar] Move wchar's types to proxy headers. (#109334) Also protect against extern inline function definitions added when building with gcc: https://github.com/llvm/llvm-project/issues/60481. | 1 年前 | |
[libc] Clean up errno header usage in wchar tests. (#157942) See PR #157898 and PR #157517 for similar changes to math tests. Don't include libc_errno.h header, since the tests don't manipulate errno directly. Instead, where appropriate, include hdr/errno_macros.h proxy header to get errno constant values to match against. | 11 个月前 | |
[libc] Clean up errno header usage in wchar tests. (#157942) See PR #157898 and PR #157517 for similar changes to math tests. Don't include libc_errno.h header, since the tests don't manipulate errno directly. Instead, where appropriate, include hdr/errno_macros.h proxy header to get errno constant values to match against. | 11 个月前 | |
[libc] Clean up errno header usage in wchar tests. (#157942) See PR #157898 and PR #157517 for similar changes to math tests. Don't include libc_errno.h header, since the tests don't manipulate errno directly. Instead, where appropriate, include hdr/errno_macros.h proxy header to get errno constant values to match against. | 11 个月前 | |
[libc] Implement mbsinit (#150654) Implemented public libc function to check if an mbstate describes an empty state | 1 年前 | |
[libc] Clean up errno header usage in wchar tests. (#157942) See PR #157898 and PR #157517 for similar changes to math tests. Don't include libc_errno.h header, since the tests don't manipulate errno directly. Instead, where appropriate, include hdr/errno_macros.h proxy header to get errno constant values to match against. | 11 个月前 | |
[libc] Clean up errno header usage in wchar tests. (#157942) See PR #157898 and PR #157517 for similar changes to math tests. Don't include libc_errno.h header, since the tests don't manipulate errno directly. Instead, where appropriate, include hdr/errno_macros.h proxy header to get errno constant values to match against. | 11 个月前 | |
[libc] wcpcpy implementation (#144802) Implemented wcpcpy and tests. --------- Co-authored-by: Sriya Pratipati <sriyap@google.com> | 1 年前 | |
[libc] Don't rely on LIBC_HAS_SANITIZER when enabling null checks. (#150341) LIBC_HAS_SANITIZER (which is defined if ASan, MSan, or UBSan is enabled) is currently used to implicitly disable null checks, normally enabled via LIBC_ADD_NULL_CHECKS config value. Remove this condition, and rely purely on the config value instead: * LIBC_HAS_SANITIZER will be true even for UBSan modes which doesn't rely on null checks at all (e.g. -fsanitize=alignment) * null checks today (implemented via __builtin_trap) should function normally today even when sanitizer is enabled - trap is still a trap * tests have been migrated to WITH_SIGNAL(-1) which doesn't prescript a particular signal / exit-code, and thus should pass even if sanitizers override the default ones. | 1 年前 | |
[libc] Clean up errno header usage in wchar tests. (#157942) See PR #157898 and PR #157517 for similar changes to math tests. Don't include libc_errno.h header, since the tests don't manipulate errno directly. Instead, where appropriate, include hdr/errno_macros.h proxy header to get errno constant values to match against. | 11 个月前 | |
[libc] wcscat implementation (#142243) Implemented wcscat and tests. --------- Co-authored-by: Sriya Pratipati <sriyap@google.com> | 1 年前 | |
WCSChr Implementation (#141690) implemented wcschr and tests --------- Co-authored-by: Sriya Pratipati <sriyap@google.com> | 1 年前 | |
[libc] Don't rely on LIBC_HAS_SANITIZER when enabling null checks. (#150341) LIBC_HAS_SANITIZER (which is defined if ASan, MSan, or UBSan is enabled) is currently used to implicitly disable null checks, normally enabled via LIBC_ADD_NULL_CHECKS config value. Remove this condition, and rely purely on the config value instead: * LIBC_HAS_SANITIZER will be true even for UBSan modes which doesn't rely on null checks at all (e.g. -fsanitize=alignment) * null checks today (implemented via __builtin_trap) should function normally today even when sanitizer is enabled - trap is still a trap * tests have been migrated to WITH_SIGNAL(-1) which doesn't prescript a particular signal / exit-code, and thus should pass even if sanitizers override the default ones. | 1 年前 | |
[libc] wcscpy implementation (#142228) Implemented wcscpy as well as tests for the function. --------- Co-authored-by: Sriya Pratipati <sriyap@google.com> | 1 年前 | |
[libc] wcscspn implementation (#146158) Implemented wcscspn and tests. --------- Co-authored-by: Sriya Pratipati <sriyap@google.com> | 1 年前 | |
[libc] Implemented wcsdup libc function (#150453) Implemented wcsdup by templating internal strdup function | 1 年前 | |
[libc] wcslcat implementation (#146588) implemented wcslcat and tests. --------- Co-authored-by: Sriya Pratipati <sriyap@google.com> | 1 年前 | |
[libc] wcslcpy implementation (#146571) Implemented wcslcpy and tests. --------- Co-authored-by: Sriya Pratipati <sriyap@google.com> | 1 年前 | |
[libc][wchar] implement wcslen (#124150) Update string_utils' string_length to work with char* or wchar_t*, so that it may be reusable when implementing wmemchr, wcspbrk, wcsrchr, wcsstr. Link: #121183 Link: #124027 Co-authored-by: Nick Desaulniers <ndesaulniers@google.com> --------- Co-authored-by: Tristan Ross <tristan.ross@midstall.com> | 1 年前 | |
[libc] wcsncat implementation (#142431) Implemented wcsncat and tests. --------- Co-authored-by: Sriya Pratipati <sriyap@google.com> | 1 年前 | |
[libc] Don't rely on LIBC_HAS_SANITIZER when enabling null checks. (#150341) LIBC_HAS_SANITIZER (which is defined if ASan, MSan, or UBSan is enabled) is currently used to implicitly disable null checks, normally enabled via LIBC_ADD_NULL_CHECKS config value. Remove this condition, and rely purely on the config value instead: * LIBC_HAS_SANITIZER will be true even for UBSan modes which doesn't rely on null checks at all (e.g. -fsanitize=alignment) * null checks today (implemented via __builtin_trap) should function normally today even when sanitizer is enabled - trap is still a trap * tests have been migrated to WITH_SIGNAL(-1) which doesn't prescript a particular signal / exit-code, and thus should pass even if sanitizers override the default ones. | 1 年前 | |
[libc] wcsncpy implementation (#142237) Implemented wcsncpy and tests for the function. --------- Co-authored-by: Sriya Pratipati <sriyap@google.com> | 1 年前 | |
[libc] Implemented wcsnlen (#145610) Implemented wcsnlen and tests for the function. --------- Co-authored-by: Sriya Pratipati <sriyap@google.com> | 1 年前 | |
[libc] Implement wcs to mbs family of functions (#149421) Implemented internal wcs to mbs internal function + tests Impelemented wcs to mbs public functions | 1 年前 | |
[libc] Don't rely on LIBC_HAS_SANITIZER when enabling null checks. (#150341) LIBC_HAS_SANITIZER (which is defined if ASan, MSan, or UBSan is enabled) is currently used to implicitly disable null checks, normally enabled via LIBC_ADD_NULL_CHECKS config value. Remove this condition, and rely purely on the config value instead: * LIBC_HAS_SANITIZER will be true even for UBSan modes which doesn't rely on null checks at all (e.g. -fsanitize=alignment) * null checks today (implemented via __builtin_trap) should function normally today even when sanitizer is enabled - trap is still a trap * tests have been migrated to WITH_SIGNAL(-1) which doesn't prescript a particular signal / exit-code, and thus should pass even if sanitizers override the default ones. | 1 年前 | |
[libc] Don't rely on LIBC_HAS_SANITIZER when enabling null checks. (#150341) LIBC_HAS_SANITIZER (which is defined if ASan, MSan, or UBSan is enabled) is currently used to implicitly disable null checks, normally enabled via LIBC_ADD_NULL_CHECKS config value. Remove this condition, and rely purely on the config value instead: * LIBC_HAS_SANITIZER will be true even for UBSan modes which doesn't rely on null checks at all (e.g. -fsanitize=alignment) * null checks today (implemented via __builtin_trap) should function normally today even when sanitizer is enabled - trap is still a trap * tests have been migrated to WITH_SIGNAL(-1) which doesn't prescript a particular signal / exit-code, and thus should pass even if sanitizers override the default ones. | 1 年前 | |
[libc] Implement wcs to mbs family of functions (#149421) Implemented internal wcs to mbs internal function + tests Impelemented wcs to mbs public functions | 1 年前 | |
[libc] wcsspn implementation (#142034) Implemented wcsspn as well as tests for the function. --------- Co-authored-by: Sriya Pratipati <sriyap@google.com> | 1 年前 | |
| 1 年前 | ||
[libc] Implement wcstod and wcstold. (#168020) These are simply implemented as specializations of strtofloatingpoint for double / long double and for wchar_t. The unit tests are copied from the strtod / strtold ones. | 8 个月前 | |
[libc] Templatize strtofloatingpoint and implement wcstof. (#167755) This change follows the pattern of 315dfe5865962d8a3d60e21d1fffce5214fe54ef by making strtofloat also accept wchar_t* strings (in addition to regular char*). It uses overloads from wctype_utils or specialized functions to ensure comparison with literal characters (or literal strings) pick char or wchar_t variants based on the argument type. The wcstof implementation is added, with unit test cases copied from strtof test suite. | 8 个月前 | |
[libc] Fix wcstok() "subsequent searches" behavior. (#151589) POSIX says "If no such wide-character code is found, the current token extends to the end of the wide-character string pointed to by ws1, and subsequent searches for a token shall return a null pointer", but the current implementation only returns nullptr the first time. This failed an existing bionic test when I tried to switch over to llvm-libc wcstok(). | 1 年前 | |
[libc] Fix some warnings in tests. (#150500) | 1 年前 | |
[libc] Implement wcstod and wcstold. (#168020) These are simply implemented as specializations of strtofloatingpoint for double / long double and for wchar_t. The unit tests are copied from the strtod / strtold ones. | 8 个月前 | |
[libc] Fix some warnings in tests. (#150500) | 1 年前 | |
[libc] Fix some warnings in tests. (#150500) | 1 年前 | |
[libc] Fix some warnings in tests. (#150500) | 1 年前 | |
[libc][stdio] Use proxy headers of stdio.h in src and test folders. (#110067) https://github.com/llvm/llvm-project/issues/60481 | 1 年前 | |
| 1 年前 | ||
[libc] Don't rely on LIBC_HAS_SANITIZER when enabling null checks. (#150341) LIBC_HAS_SANITIZER (which is defined if ASan, MSan, or UBSan is enabled) is currently used to implicitly disable null checks, normally enabled via LIBC_ADD_NULL_CHECKS config value. Remove this condition, and rely purely on the config value instead: * LIBC_HAS_SANITIZER will be true even for UBSan modes which doesn't rely on null checks at all (e.g. -fsanitize=alignment) * null checks today (implemented via __builtin_trap) should function normally today even when sanitizer is enabled - trap is still a trap * tests have been migrated to WITH_SIGNAL(-1) which doesn't prescript a particular signal / exit-code, and thus should pass even if sanitizers override the default ones. | 1 年前 | |
[libc] wmemcpy implementation (#142070) Implemented wmemcpy and tests for the function. --------- Co-authored-by: Sriya Pratipati <sriyap@google.com> | 1 年前 | |
[libc] Don't rely on LIBC_HAS_SANITIZER when enabling null checks. (#150341) LIBC_HAS_SANITIZER (which is defined if ASan, MSan, or UBSan is enabled) is currently used to implicitly disable null checks, normally enabled via LIBC_ADD_NULL_CHECKS config value. Remove this condition, and rely purely on the config value instead: * LIBC_HAS_SANITIZER will be true even for UBSan modes which doesn't rely on null checks at all (e.g. -fsanitize=alignment) * null checks today (implemented via __builtin_trap) should function normally today even when sanitizer is enabled - trap is still a trap * tests have been migrated to WITH_SIGNAL(-1) which doesn't prescript a particular signal / exit-code, and thus should pass even if sanitizers override the default ones. | 1 年前 | |
[libc] Implemented wmempcpy (#142067) Implemented wmempcpy and added tests | 1 年前 | |
[libc] Implemented wmemset and added tests (#141691) Implemented and tests the wmemset function in libc. | 1 年前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 8 个月前 | ||
| 9 个月前 | ||
| 1 年前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 1 年前 | ||
| 11 个月前 | ||
| 11 个月前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 11 个月前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 8 个月前 | ||
| 8 个月前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 8 个月前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 |