Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Indexer/ C/C++ Code Analysis is taking into account sources excluded from build

Hello,

have now some more details for you and I found a very simply example to reproduce. I attached a very small gcc project which shows an undefined symbol when I run the code analysis. I tested the example alsow ith 8.0.2, but this seems to work fine.

There are 2 configuration files in the folders VM4-2BR and VM4-DD-MS. The active file contains a definition of a symbol AIH_u8VOLT_SENS_ERR_FILTER_TM used in the c file. The excluded file is empty. Nevertheless the indexer seems to include the excluded file. If you select the #include "..." and goto "Declaration" it opens the excluded file. This causes the error of the undefined symbol.

The attached project is based on the standard GCC project to make sure that the issue is not related to my own plugin. Could someone have a look on it, to make sure if it is a bug or not?


Thanks,

Sebastian
Gesendet: Dienstag, 03. Juli 2012 um 16:59 Uhr
Von: "Richard Horbach" <richard.horbach@xxxxxxxxxx>
An: "CDT General developers list." <cdt-dev@xxxxxxxxxxx>
Betreff: Re: [cdt-dev] Indexer/ C/C++ Code Analysis is taking into account sources excluded from build
Hi,

I just wanted to note that I noticed something similar when using CDT 8.0. I have opened bugzilla  373767 a while ago for the issue.

Regards,
Richard

On 7/3/2012 2:53 PM, Sebastian Wagner wrote:
Hello,

I'm currently migrating my plugin to the latestn release of eclipse/cdt 8.1.

I re-created a test C project completely, because I had some Java errors when I just used the imported project.

When I run the C/C++ Code Analysis I always get some errors of "underfined symbols" even if those symbols were correctly defined.

I found out that this seems to be related to some files which were excluded from the project. There are some files which are redundant in my project (identical filename). Depending on the configuration, the one or the other file is included. I used the "Exclude from Build" for this. I  In CDT 8.0 this worked fine and only the files used for the selected configuration were taken into account, but in 8.1 the excluded files seem to have an impact on the Indexer/ Source Code Analyzer. As soon as I delete the excluded files completely, the source code analysis works fine.

I don't know if this is a bug or simply something missing in my Plugin or configuration. I'm using the language extension point, but I simply extended the GCCLanguage and added the scanner and parser configuration.

Unfortunately it's wasn't possible to reproduce it in a simple example. Maybe you coud give me an idea what could be the reason for that behavior.

Thanks,

Sebastian
  

Ihr WEB.DE Postfach immer dabei: die kostenlose WEB.DE Mail App für iPhone und Android.   
https://produkte.web.de/freemail_mobile_startseite/
_______________________________________________ cdt-dev mailing list cdt-dev@xxxxxxxxxxx https://dev.eclipse.org/mailman/listinfo/cdt-dev



  

Ihr WEB.DE Postfach immer dabei: die kostenlose WEB.DE Mail App für iPhone und Android.   
https://produkte.web.de/freemail_mobile_startseite/

Attachment: GCCtest.zip
Description: Zip archive


Back to the top