We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8824e6c commit f5cbf0eCopy full SHA for f5cbf0e
libc/spec/spec.td
@@ -180,6 +180,11 @@ class FunctionAttr<string style, string attr> {
180
// - "cxx11" is for C++11-style attributes: [[...]]
181
// - "declspec" is for Microsoft-style attributes: __declspec(...)
182
string Style = style;
183
+
184
+ // For the time being, we are only interested in identifer-like attributes.
185
+ // We can extend this to support function-like attributes if needed.
186
+ // For example, in the future, we can #define __LIBC_ATTRIBUTE_NODISCARD(...) [[nodiscard(__VA_ARGS__)]]
187
+ // int FunctionLike = 0;
188
}
189
class GnuFunctionAttr<string attr> : FunctionAttr<"gnu", attr> {}
190
class Cxx11FunctionAttr<string attr, string namespace> : FunctionAttr<"cxx11", attr> {
0 commit comments