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?
question from:
https://stackoverflow.com/questions/65625716/does-clang-support-attribute-alias 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…