mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-10-05 09:59:12 +00:00
34b0bba842
Previously, the `VTKM_ALWAYS_EXPORT` and `VTKM_NEVER_EXPORT` macros used the gnu-specific `__attribute__` keyword. This change instead uses the C++11 standard method of using `[[ ]]` as attributes. Specifically, `__attribute(visibility("---"))` is changed to `[[gnu::visibility("--")]]`. The main impetus for this change is that `__attribute__` does not seem to work with `[[deprecated]]` on GCC compilers. (For sure on GCC 6. I didn't check all compiler versions.) This change was recommended from https://stackoverflow.com/questions/40886628/deprecated-attribute-visibility-default-in-gcc-6-2 This creates a minor backward incompatibility. We have always meant for these macros to be used before the return type when used with a function. However, GCC accepted placing `__attribute__` after the return type. The C++11 `[[ ]]` cannot be placed there, so some macros might have to be moved. Still, this was a broken use that happened to work. |
||
---|---|---|
.. | ||
testing | ||
.gitattributes | ||
ArrayPortalHelpers.h | ||
ArrayPortalUniformPointCoordinates.h | ||
ArrayPortalValueReference.h | ||
ArrayPortalVirtual.h | ||
Assume.h | ||
brigand.hpp | ||
CMakeLists.txt | ||
Configure.h.in | ||
ConfigureFor32.h | ||
ConfigureFor64.h | ||
ConnectivityStructuredInternals.h | ||
ExportMacros.h | ||
FunctionInterface.h | ||
FunctionInterfaceDetailPost.h | ||
FunctionInterfaceDetailPost.h.in | ||
FunctionInterfaceDetailPre.h | ||
FunctionInterfaceDetailPre.h.in | ||
IndexTag.h | ||
IndicesExtrude.h | ||
Invocation.h | ||
ListTagDetail.h | ||
Unreachable.h | ||
Variant.h | ||
VariantDetail.h | ||
VariantDetail.h.in | ||
Windows.h |