Open karljs opened 4 years ago
I don't belive that to be valid syntax.
An attribute specifier list may, in future, be permitted to appear after the declarator in a function definition (before any old-style parameter declarations or the function body).
(from https://gcc.gnu.org/onlinedocs/gcc/Attribute-Syntax.html#Attribute-Syntax)
Additionally, compilation fails: https://godbolt.org/z/GtgxRX
@matter123 Ah, I didn't realize this is clang-specific. Thanks for the pointer.
Huh, I wonder why clang added support for attributes there.
I see several other issues related to attributes, but this one seems like a separate bug since it's marking function attributes as function calls rather than just a less preferred attribute scope.
Checklist
"C_Cpp.enhancedColorization": "Disabled"
The code with a problem is:
It looks like:
Solarized Light theme
It should look like:
I'm not sure, but probably the blue
__attribute__
should be black.