diff options
author | Louis Dionne <ldionne.2@gmail.com> | 2022-03-24 09:03:56 -0400 |
---|---|---|
committer | Louis Dionne <ldionne.2@gmail.com> | 2022-03-24 13:13:21 -0400 |
commit | c87c8917e3662532f0aa75a91caea857c093f8f4 (patch) | |
tree | d68ad02fe5cc391667af9e78a416d4552d380277 /clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp | |
parent | aca96480784b5373ad7229816b00297690354208 (diff) | |
download | llvm-c87c8917e3662532f0aa75a91caea857c093f8f4.zip llvm-c87c8917e3662532f0aa75a91caea857c093f8f4.tar.gz llvm-c87c8917e3662532f0aa75a91caea857c093f8f4.tar.bz2 |
[libc++] Audit all uses of _LIBCPP_ASSERT and _LIBCPP_DEBUG_ASSERT
I audited all uses of _LIBCPP_ASSERT to make sure that we only used it
for "basic assertions", i.e. assertions with constant-time conditions.
I also audited all uses of _LIBCPP_DEBUG_ASSERT to make sure we used it
only for debug-mode assertions, and in one case had to change for
_LIBCPP_ASSERT instead.
As a fly-by, I also changed a couple of tests against nullptr or 0 to
be more explicit.
After this patch, all uses of _LIBCPP_ASSERT should be with constant-time
conditions, and all uses of _LIBCPP_DEBUG_ASSERT should be with conditions
that we only want to check when the debug mode is enabled.
Differential Revision: https://reviews.llvm.org/D122395
Diffstat (limited to 'clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp')
0 files changed, 0 insertions, 0 deletions