vendredi 8 janvier 2021

Does clang support __attribute__ ((alias))?

I couldn't find an official clang documentation for this.

The closest thing I found was this:

C++11 alias templates Use __has_feature(cxx_alias_templates) or __has_extension(cxx_alias_templates) to determine if support for C++11’s alias declarations and alias templates is enabled.

from https://clang.llvm.org/docs/LanguageExtensions.html. I don't think it's related though.

I've tried using the clang command to compile and run a program with the alias attribute, and it seemed to work. But I'm not confident if this was a coincidence or not.

Could anyone shed more light on this? Is it ok to use this, or is there and alternative I should use?

Aucun commentaire:

Enregistrer un commentaire