intro3attr
C/c++ attributes
Usage
[[attr]] [[vendor::attr]]
Overview
Attributes modify the properties of a source construct, such as a type, a variable, or a function.
The standard syntax allows specifying a vendor for non-standard attributes.
Versions
C and C++ dialects have provided various forms of attributes before standardization.
|
This is the GNU syntax for attributes. It is supported by both GCC and Clang. |
|---|---|
|
This is the MSVC syntax for attributes. It is supported by Clang. |