This is an archive of the discontinued LLVM Phabricator instance.

[libc++][NFC] Reorganize hash.h
ClosedPublic

Authored by ldionne on Feb 9 2023, 10:59 AM.

Details

Reviewers
philnik
Group Reviewers
Restricted Project
Commits
rG91e38bc76010: [libc++][NFC] Reorganize hash.h
Summary
  • Add missing _LIBCPP_HIDE_FROM_ABI
  • Implement inline functions in the class to simplify the code
  • Add missing const to operator()
  • Move _LIBCPP_DISABLE_UBSAN_UNSIGNED_INTEGER_CHECK to the usual location for function attributes

Diff Detail

Event Timeline

ldionne created this revision.Feb 9 2023, 10:59 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 9 2023, 10:59 AM
ldionne requested review of this revision.Feb 9 2023, 10:59 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 9 2023, 10:59 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript
philnik accepted this revision.Feb 10 2023, 8:07 AM
philnik added a subscriber: philnik.

LGTM. Is there any reason to do this right now?

This revision is now accepted and ready to land.Feb 10 2023, 8:07 AM

LGTM. Is there any reason to do this right now?

I just noticed the missing _LIBCPP_HIDE_FROM_ABI and decided to do it all.

This revision was automatically updated to reflect the committed changes.