lundi 11 février 2019

Which gnu attributes have c++11 syntax?

The documentation for C++11 attribute specifier sequence includes examples of GNU namespace attributes, e.g.

[[gnu::always_inline]] [[gnu::hot]] [[gnu::const]] [[nodiscard]]
inline int f(); // declare f with four attributes

The GCC documentation for attributes prior to C++11 uses different syntax

__attribute__(( ... ))

I can't find documentation for which of the GNU attributes use the new [[gnu:foo]] syntax, or what the differences are.

Where is the definitive documentation for this?

Aucun commentaire:

Enregistrer un commentaire