Hi,
We use xll+ from https://www.planatechsolutions.com/xllplus/ to produce an Excel addin providing new Excel functions.
We have been able to use CppCheck up to version 1.89.
With versions after 1.89 we get the msg
" There is an unknown macro here somewhere. Configuration is required. If IMPLEMENT_XLLFN4 is a macro then please configure it. "
for each code module and then no checks are performed for that code module.
The function code below includes header file #include "showerror.h", which includes header file #include <xllplus.h> ,
which includes header file #include <xlpfuncinit.h> which contains the following definition.</xlpfuncinit.h></xllplus.h>
Hi Daniel,
Thanks for your response .
I've created a cfg file with your statements and placed it in the cfg folder.
How do I use it with the gui cppcheck?
Rob
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
We use xll+ from https://www.planatechsolutions.com/xllplus/ to produce an Excel addin providing new Excel functions.
We have been able to use CppCheck up to version 1.89.
With versions after 1.89 we get the msg
" There is an unknown macro here somewhere. Configuration is required. If IMPLEMENT_XLLFN4 is a macro then please configure it. "
for each code module and then no checks are performed for that code module.
The function code below includes header file #include "showerror.h", which includes header file #include <xllplus.h> ,
which includes header file #include <xlpfuncinit.h> which contains the following definition.</xlpfuncinit.h></xllplus.h>
The module containg function code which produces error
Last edit: Daniel Marjamäki 2020-09-27
I recommend that you create a "xllplus.cfg" file. Here is a start:
That solves your problem:
Using the file:
If you configure some xllplus macros and functions then feel free to share your xllplus.cfg with us. I would be happy to distribute it in Cppcheck.
Hi Daniel,
Thanks for your response .
I've created a cfg file with your statements and placed it in the cfg folder.
How do I use it with the gui cppcheck?
Rob
in the gui, create a project file.
in the "Types and Functions" tab, select all configurations that you use.
if you have a custom cfg file, you can put it in the same folder as the project file is in.