Petr Hosek
5ff3ff33ff
[libc] Migrate to using LIBC_NAMESPACE_DECL for namespace declaration ( #98597 )
...
This is a part of #97655 .
2024-07-12 09:28:41 -07:00
Mehdi Amini
ce9035f5bd
Revert "[libc] Migrate to using LIBC_NAMESPACE_DECL for namespace declaration" ( #98593 )
...
Reverts llvm/llvm-project#98075
bots are broken
2024-07-12 09:12:13 +02:00
Petr Hosek
3f30effe1b
[libc] Migrate to using LIBC_NAMESPACE_DECL for namespace declaration ( #98075 )
...
This is a part of #97655 .
2024-07-11 12:35:22 -07:00
Guillaume Chatelet
b6bc9d72f6
[libc] Mass replace enclosing namespace ( #67032 )
...
This is step 4 of
https://discourse.llvm.org/t/rfc-customizable-namespace-to-allow-testing-the-libc-when-the-system-libc-is-also-llvms-libc/73079
2023-09-26 11:45:04 +02:00
Alex Brachet
82ca29ce54
[libc] Move str{,r}chr implementation to headers
...
Differential Revision: https://reviews.llvm.org/D147463
2023-04-11 01:16:56 +00:00
Alex Brachet
6d1543a167
[libc] Add explicit casts for string functions
...
This fixes warnings from `-Wimplicit-int-conversion`
Differential revision: https://reviews.llvm.org/D127694
2022-06-13 21:07:45 +00:00
Michael Jones
43c543aab7
[libc][NFC] Make strchr and strrchr more consistent
...
Reviewed By: sivachandra
Differential Revision: https://reviews.llvm.org/D110581
2021-09-28 17:42:03 +00:00
Michael Jones
a0b65a7bcd
[libc] Switch to use a macro which does not insert a section for every libc function.
...
Summary:
The new macro also inserts the C alias for the C++ implementations
without needing an objcopy based post processing step. The CMake
rules have been updated to reflect this. More CMake cleanup can be
taken up in future rounds and appropriate TODOs have been added for them.
Reviewers: mcgrathr, sivachandra
Subscribers:
2021-01-08 23:52:35 +00:00
cgyurgyik
1b35c4fed2
[libc] [obvious] In strrchr, remove cast to unsigned char before
...
comparison.
2020-07-31 20:14:34 -04:00
cgyurgyik
e8a2af28af
[libc] Adds strrchr implementation.
...
Reviewed By: sivachandra
Differential Revision: https://reviews.llvm.org/D84875
2020-07-31 14:38:34 -04:00