This is an archive of the discontinued LLVM Phabricator instance.

[libc++] Correct explanation of _LIBCPP_NEW_DELETE_VIS
ClosedPublic

Authored by smeenai on Sep 30 2016, 5:38 PM.

Details

Summary

The behavior of this macro actually needs to apply universally on
Windows and not just when using the Microsoft CRT. Update the macro
definition and documentation accordingly.

Event Timeline

smeenai updated this revision to Diff 73173.Sep 30 2016, 5:38 PM
smeenai retitled this revision from to [libc++] Correct explanation of _LIBCPP_NEW_DELETE_VIS.
smeenai updated this object.
smeenai added reviewers: compnerd, EricWF, mclow.lists.
smeenai added a subscriber: cfe-commits.

My initial understanding of the problem was incorrect; I did some further experimentation and I think I properly understand what's going on here now. Sorry for the churn.

EricWF accepted this revision.Oct 7 2016, 2:40 PM
EricWF edited edge metadata.
This revision is now accepted and ready to land.Oct 7 2016, 2:40 PM
mclow.lists edited edge metadata.Oct 7 2016, 3:52 PM

Sigh. Make an expedient choice that you don't really agree with, and you get immediately reminded of it. I suggested on an earlier review (not this patch) that I really didn't want to see _WIN32 in any files other than <config>, that we should have a libc++-specific one. I let that slide because we had a couple other instances of _WIN32 in the source base.

About three days later, this pops up. :-(
Not your fault, but it makes me sad.

Sigh. Make an expedient choice that you don't really agree with, and you get immediately reminded of it. I suggested on an earlier review (not this patch) that I really didn't want to see _WIN32 in any files other than <config>, that we should have a libc++-specific one. I let that slide because we had a couple other instances of _WIN32 in the source base.

About three days later, this pops up. :-(
Not your fault, but it makes me sad.

I'm not a fan either :) Gonna commit this and then send something to cfe-dev about cleaning them up.

smeenai closed this revision.Oct 12 2016, 7:08 AM

Not sure why Phabricator isn't closing this out, but this was committed as SVN r284016