This is an archive of the discontinued LLVM Phabricator instance.

Fix a few swapped _LIBCPP_TEMPLATE_VIS attributes
ClosedPublic

Authored by dim on Feb 20 2019, 12:47 PM.

Details

Summary

Clang 8 warns about <__node_handle>'s __insert_return_type visibility
attribute:

In file included from include/map:480:
include/__node_handle:196:1: warning: attribute '__type_visibility__' is ignored, place it after "struct" to apply attribute to type declaration [-Wignored-attributes]
_LIBCPP_TEMPLATE_VIS
^
include/__config:719:52: note: expanded from macro '_LIBCPP_TEMPLATE_VIS'
#      define _LIBCPP_TEMPLATE_VIS __attribute__ ((__type_visibility__("default")))

Place the attribute after the struct to avoid the warning.

Apply similar fixes to <experimental/functional>.

Event Timeline

dim created this revision.Feb 20 2019, 12:47 PM
ngie accepted this revision.Feb 20 2019, 9:39 PM
This revision is now accepted and ready to land.Feb 20 2019, 9:39 PM
EricWF requested changes to this revision.Feb 20 2019, 10:06 PM

This patch needs to be reviewed by Louis, Marshall, or myself

This revision now requires changes to proceed.Feb 20 2019, 10:06 PM
mclow.lists accepted this revision.Feb 25 2019, 6:55 PM

This looks fine to me.

ldionne accepted this revision.Feb 27 2019, 9:18 AM

Committed as r355006.

EricWF accepted this revision.Feb 27 2019, 10:41 AM

now that I have the ability to reso

This revision is now accepted and ready to land.Feb 27 2019, 10:41 AM
dim closed this revision.Feb 27 2019, 1:55 PM

Fixed in rCXX355006. (@ldionne it would have been handy to include the "Differential Revision:" line in your commit message, then Phabricator would have picked it up. :)