Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
94 views
in Technique[技术] by (71.8m points)

c++ - 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?

question from:https://stackoverflow.com/questions/65625716/does-clang-support-attribute-alias

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...