Open solarispika opened 4 years ago
Unfortunately the parser used by FSeam is naive and just get information from a single header file, which means it cannot determine what is or not is a MACRO.
I see some way of fixing this :
As a short term solution the list of MACRO to be defined is certainly a good idea as it may help for quick-fixes for other parsing issue. But in the long term, the best would be to re-write the code generator in C++ and using libclang to parse headers and generate the appropriate source code with all the context (AST) required to not mistage a random character in the header file or an actual macro.
Describe the bug A simple header with __BEGIN_DECL/__END_DECL is not correctly parsed.
To Reproduce Using latest commit 190e286a66d2d4ab8e9888e6c3bde8ee7d927233.
Just prepare this simple header and put it in one of test header, for example,
Then just build the project, the following error occurs:
Expected behavior Maybe leave __BEGIN_DECLS/__END_DECLS along?