This is an archive of the discontinued LLVM Phabricator instance.

[libc++][hardening] Mark the remaining stray assertions as uncategorized
ClosedPublic

Authored by var-const on Aug 28 2023, 2:14 AM.

Details

Summary

This avoids enabling them unconditionally in all hardening modes.

Diff Detail

Event Timeline

var-const created this revision.Aug 28 2023, 2:14 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 28 2023, 2:14 AM
var-const requested review of this revision.Aug 28 2023, 2:14 AM
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a reviewer: Restricted Project. · View Herald Transcript

In general happy, but one question before approving.
Are these all _LIBCPP_ASSERTs or are there more left?

In general happy, but one question before approving.
Are these all _LIBCPP_ASSERTs or are there more left?

Yes, this should be all of them.

Mordante accepted this revision.Aug 29 2023, 3:41 AM

LGTM modulo one nit.

libcxx/include/__algorithm/three_way_comp_ref_type.h
53

I would suggest to update the title to "Mark the remaining stray assertions as uncategorized."
That makes the scope of the changes clear.

This revision is now accepted and ready to land.Aug 29 2023, 3:41 AM
var-const retitled this revision from [libc++][hardening] Mark a few stray assertions as uncategorized. to [libc++][hardening] Mark the remaining stray assertions as uncategorized.Aug 29 2023, 4:26 PM

LGTM modulo one nit.

Done, thanks!