summaryrefslogtreecommitdiff
path: root/libc/test/UnitTest/TestLogger.cpp
AgeCommit message (Collapse)Author
2025-07-23[libc][NFC] Add stdint.h proxy header to fix dependency issue with ↵lntue
<stdint.h> includes. (#150303) https://github.com/llvm/llvm-project/issues/149993
2024-07-12[libc] Migrate to using LIBC_NAMESPACE_DECL for namespace declaration (#98597)Petr Hosek
This is a part of #97655.
2024-07-12Revert "[libc] Migrate to using LIBC_NAMESPACE_DECL for namespace ↵Mehdi Amini
declaration" (#98593) Reverts llvm/llvm-project#98075 bots are broken
2024-07-11[libc] Migrate to using LIBC_NAMESPACE_DECL for namespace declaration (#98075)Petr Hosek
This is a part of #97655.
2024-04-06[libc][NFC] Rename `UInt.h` to `big_int.h` and `UInt128.h` to `uint128.h` ↵Guillaume Chatelet
for consistency (#87808)
2024-03-08[libc] Provide `LIBC_TYPES_HAS_INT128` (#84149)Guillaume Chatelet
Umbrella bug #83182
2024-03-08[libc][NFC] Move `BigInt` out of the `cpp` namespace (#84445)Guillaume Chatelet
As noted in https://github.com/llvm/llvm-project/pull/84035#discussion_r1516817755 only files under the CPP folder should be in the `cpp` namespace.
2024-03-07[reland][libc] Remove UB specializations of type traits for `BigInt` (#84299)Guillaume Chatelet
Note: This is a reland of #84035. The standard specifies that it it UB to specialize the following traits: - `std::is_integral` - `std::is_unsigned` - `std::make_unsigned` - `std::make_signed` This patch: - Removes specializations for `BigInt` - Transforms SFINAE for `bit.h` functions from template parameter to return type (This makes specialization easier). - Adds `BigInt` specialization for `bit.h` functions. - Fixes code depending on previous specializations.
2024-03-07Revert "[libc] Remove UB specializations of type traits for `BigInt`" (#84297)Guillaume Chatelet
Reverts llvm/llvm-project#84035 Several bots are failing: - https://lab.llvm.org/buildbot/#/builders/223/builds/37522 - https://lab.llvm.org/buildbot/#/builders/162/builds/51978 - https://lab.llvm.org/buildbot/#/builders/163/builds/52560 - https://lab.llvm.org/buildbot/#/builders/250/builds/19619
2024-03-07[libc] Remove UB specializations of type traits for `BigInt` (#84035)Guillaume Chatelet
The standard specifies that it it UB to specialize the following traits: - `std::is_integral` - `std::is_unsigned` - `std::make_unsigned` - `std::make_signed` This patch: - Removes specializations for `BigInt` - Transforms SFINAE for `bit.h` functions from template parameter to return type (This makes specialization easier). - Adds `BigInt` specialization for `bit.h` functions. - Fixes code depending on previous specializations.
2023-09-26[libc] Mass replace enclosing namespace (#67032)Guillaume Chatelet
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-08-09[libc] Better IntegerToString APIGuillaume Chatelet
This patch is an alternative to D155902. It provides the following benefits: - No buffer manual allocation and error handling for the general case - More flexible API : width specifier, sign and prefix handling - Simpler code The more flexible API removes the need for manually tweaking the buffer afterwards, and so prevents relying on implementation details of IntegerToString. Reviewed By: michaelrj, jhuber6 Differential Revision: https://reviews.llvm.org/D156981
2023-08-08Revert "[libc] Better IntegerToString API"Guillaume Chatelet
This reverts commit 910cc05aae85a6b31e2a2ed87d3dd46db46fce04.
2023-08-08[libc] Better IntegerToString APIGuillaume Chatelet
This patch is an alternative to D155902. It provides the following benefits: - No buffer manual allocation and error handling for the general case - More flexible API : width specifier, sign and prefix handling - Simpler code The more flexible API removes the need for manually tweaking the buffer afterwards, and so prevents relying on implementation details of IntegerToString. Reviewed By: michaelrj, jhuber6 Differential Revision: https://reviews.llvm.org/D156981
2023-06-14[libc] Enable custom logging in LibcTestGuillaume Chatelet
This patch mimics the behavior of Google Test and allow users to log custom messages after all flavors of ASSERT_ / EXPECT_. Reviewed By: sivachandra, lntue Differential Revision: https://reviews.llvm.org/D152630
2023-06-14Revert D152630 "[libc] Enable custom logging in LibcTest"Guillaume Chatelet
Failing buildbot https://lab.llvm.org/buildbot/#/builders/73/builds/49707 This reverts commit 9a7b4c934893d6bc571e1ce8efab2127ae5f4e45.
2023-06-14[libc] Enable custom logging in LibcTestGuillaume Chatelet
This patch mimics the behavior of Google Test and allow users to log custom messages after all flavors of ASSERT_ / EXPECT_. Reviewed By: sivachandra, lntue Differential Revision: https://reviews.llvm.org/D152630
2023-04-17[libc][NFC] Remove the StreamWrapper class and use the new test logger.Siva Chandra Reddy
Reviewed By: lntue Differential Revision: https://reviews.llvm.org/D148452
2023-04-03[re-reland][libc] Adds string and TestLogger classes, use them in LibcTestGuillaume Chatelet
This is an implementation of https://discourse.llvm.org/t/rfc-running-libc-unit-tests-as-integration-tests/69461. Differential Revision: https://reviews.llvm.org/D147231
2023-04-03Revert D147231 "[reland][libc] Adds string and TestLogger classes, use them ↵Guillaume Chatelet
in LibcTest" Build bot detected a memory leak. This reverts commit b82d04ea4b4f26037be369f101ae7011975df486.
2023-04-03[reland][libc] Adds string and TestLogger classes, use them in LibcTestGuillaume Chatelet
This is an implementation of https://discourse.llvm.org/t/rfc-running-libc-unit-tests-as-integration-tests/69461. Differential Revision: https://reviews.llvm.org/D147231
2023-04-02Revert D147231 "[libc] Adds string and TestLogger classes, use them in LibcTest"Guillaume Chatelet
Does not build with gcc. This reverts commit fc5ae0a7a45bdb5251f3dad3fc07047f987ca447.
2023-04-02[libc] Adds string and TestLogger classes, use them in LibcTestGuillaume Chatelet
This is an implementation of https://discourse.llvm.org/t/rfc-running-libc-unit-tests-as-integration-tests/69461. Differential Revision: https://reviews.llvm.org/D147231