C++ has attributes, you can put stuff like [[blabla]] in front of stuff.
Uncategorized
1
Posts
1
Posters
0
Views
-
C++ has attributes, you can put stuff like [[blabla]] in front of stuff. There are predefined ones that provide hints for the compiler like [[unlikely]].
Would be really cool to define your own attributes that you could parse in the build process to generate source code or create artifacts like database schemas!
You'd have to inspect the C++ AST with a library like libclang. Unfortunately that one doesn't really support attributes well :/
-
undefined oblomov@sociale.network shared this topic