GNOME Bugzilla – Bug 627152
g-ir-scanner should support .cpp files as source for introspection annotation
Last modified: 2015-02-07 16:51:39 UTC
In WebKitGTK+ we have our C API implemented in C++ files (.cpp). To add GObject Introspection annotations as it is now we would have to move our doc strings to the header files, which are parsed by g-ir-scanner today. That is a solution we dislike, because we would be diverging from what is usually done, and it could become quite error prone. See https://bugs.webkit.org/show_bug.cgi?id=43054 for more information.
Created attachment 168086 [details] [review] proposed patch
Review of attachment 168086 [details] [review]: Looks great thanks. Perhaps it should be explicitly mentioned that the scanner still doesn't support C++ which isn't also valid C syntax.
Comment on attachment 168086 [details] [review] proposed patch Pushed as 5e45b27c31df528672134961e4655d5fca08cbc7 with a comment, and additional explanation in the commit message about this not being real C++ parsing.
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]