All Questions
Tagged with c23 function-attributes
2
questions
4
votes
0
answers
94
views
Is there such a thing as "function attribute correctness"?
Ok so C23 adds function attributes to the language but I'm not sure if anyone actually considered how they are supposed to be used. Consider this example:
[[deprecated]] int foo () { return 0; }
[[...
3
votes
1
answer
53
views
What's an implementation required to do upon seeing unknown attributes?
C2X has introduced "Attribute specifier sequence", which can be of these forms:
1) standard attribute, such as [[fallthrough]]
2) attribute with a namespace, such as [[gnu::unused]]
3) ...