This is an archive of the discontinued LLVM Phabricator instance.

Use CTAD on llvm::SaveAndRestore
ClosedPublic

Authored by jansvoboda11 on Dec 2 2022, 1:37 PM.

Diff Detail

Event Timeline

jansvoboda11 created this revision.Dec 2 2022, 1:37 PM
Herald added a reviewer: rriddle. · View Herald Transcript
Herald added a reviewer: MaskRay. · View Herald Transcript
Herald added a reviewer: NoQ. · View Herald Transcript
Herald added a reviewer: njames93. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
jansvoboda11 requested review of this revision.Dec 2 2022, 1:37 PM
Herald added projects: Restricted Project, Restricted Project, Restricted Project, Restricted Project. · View Herald Transcript

Sorry for the noise, didn't realize this will trigger Herald rules. Wanted to check with @kazu if this looks fine in principle and if it should be split up into multiple commits (e.g. per project).

kazu added a comment.Dec 2 2022, 2:07 PM

Sorry for the noise, didn't realize this will trigger Herald rules. Wanted to check with @kazu if this looks fine in principle and if it should be split up into multiple commits (e.g. per project).

I'm personally OK with one giant patch if it is purely mechanical.

I am OK with CTAD also. IIUC, CTAD variables are sort of the best of both worlds -- auto and fully-specified types like SaveRestore<bool>. It's a bit more descriptive than auto but less verbose than fully-specified types.

@MaskRay @dblaikie Any thoughts?

dblaikie accepted this revision.Dec 2 2022, 3:33 PM

Sounds good to me, thanks!

This revision is now accepted and ready to land.Dec 2 2022, 3:33 PM
This revision was landed with ongoing or failed builds.Dec 2 2022, 3:36 PM
This revision was automatically updated to reflect the committed changes.