This is an archive of the discontinued LLVM Phabricator instance.

Remove redundant LLVM_HAS_RVALUE_REFERENCE_THIS and LLVM_LVALUE_FUNCTION defines
ClosedPublic

Authored by RKSimon on Jan 31 2022, 7:43 AM.

Details

Summary

Now that VS2017 support has been dropped (D114639), the LLVM_HAS_RVALUE_REFERENCE_THIS define is always true and the LLVM_LVALUE_FUNCTION define is always enabled for ref-qualifiers.

This patch proposes we remove the defines and use the qualifiers directly.

NOTE: I'm not intending to push this before the 14.x branch.

Diff Detail

Event Timeline

RKSimon created this revision.Jan 31 2022, 7:43 AM
RKSimon requested review of this revision.Jan 31 2022, 7:43 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJan 31 2022, 7:43 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
aaron.ballman accepted this revision.Jan 31 2022, 11:57 AM

LGTM! I had tried doing this once before and had to revert due to MSVC miscompiles, so be sure to watch for fallout (I appreciate you not landing before the branch because of this). Can you fix the clang-format issues before landing?

This revision is now accepted and ready to land.Jan 31 2022, 11:57 AM
RKSimon updated this revision to Diff 404885.Feb 1 2022, 4:44 AM

clang-format