[Scons-users] How to call the include scanner?
Leandro Moreno
leandro.moreno at tallertechnologies.com
Thu Nov 7 08:29:33 EST 2013
Hi Dirk and SCons list! I'm Leandro from Cordoba, Argentina. I work with
Matias Iturburu in fbuild https://bitbucket.org/fudepan/fudepan-build
On Thu, Nov 7, 2013 at 5:16 AM, Dirk Bächle <tshortik at gmx.de> wrote:
> Hi Matias,
>
>
> On 06.11.2013 14:18, Matias Iturburu wrote:
>
>> It is possible to call the default C++ and/or C scanner (that responsible
>> of finding #include s) from a builder or another kind of function?
>>
>> I'm working on a Tool that runs CppCheck (http://cppcheck.sourceforge.
>> net/) and I need to feed it with a list of paths where it can find
>> headers. This is, more or less, the same that gcc needs and SCons provides
>> by default.
>>
>>
> you should be able to use part of the CXXCOM (or CCCOM) variable
> definition, which compiles the single include paths as given by $CPPPATH
> into a fully expanded list of "-I/include_folder1 -I/include_folder2".
> Try adding something like "$_CPPINCFLAGS" to your CppCheck command.
We already know this. But in this case, We don't want to give include
paths to the compiler. We're working in a Builder for Cppcheck (a static
analyzer code). I can pass the include paths to Cppcheck. The problem with
that is that Cppcheck will check all my headers included. For this, exist a
suppression list for the analyzer. So, I need to take all the paths to
headers for my project dependencies. What is the better way to do this? Can
be a Scanner used?
Please, let me know if I'm not clear.
>
>
> Also, can I override that scanner to do some parsing on it?
>>
>>
> Yes, it is possible to derive your own Scanner class from the default
> ones, and then install them instead. Can you tell us a little bit more
> about what you are trying to accomplish?
>
> Regards,
>
> Dirk
>
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> http://four.pairlist.net/mailman/listinfo/scons-users
>
--
<http://www.tallertechnologies.com>
Leandro Moreno
Intern Engineer
San Lorenzo 47, 3rd Floor, Office 5
Córdoba, Argentina
Phone: +54 351 4217888 / +54 351 4218211
Skype: letossgm
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://four.pairlist.net/pipermail/scons-users/attachments/20131107/dfda6e25/attachment.html
More information about the Scons-users
mailing list