Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse 3.7 C/C++ Code Analysis "codan" flagging bogus errors

I'm using Eclipse 3.7 with the C/C++ CDT 8.0.

I configured Eclipse to use my own makefiles and now the code analysis "codan" tool flags errors on otherwise correct code. I've tried to restore Eclipse's settings, but I'm unable to restore proper behavior. Errors pile up quickly by simply clicking on a source tab. The errors make me suspect codan is ignoring most of the #include files in my C++ files.

Can I see and configure the codan tool command line invoked by Eclipse? If not, any ideas on how I can debug this problem would be appreciated.

I found the Preferences->Code Analysis dialog, but that doesn't specify how Eclipse invokes the tool.

like image 269
srking Avatar asked Aug 30 '11 00:08

srking


1 Answers

You need to add include paths of Standard Library headers in Paths and Symbols -> Includes tab, if you have not done it yet. Then refresh whole project and Standard Library symbols should be resolved.

like image 100
ks1322 Avatar answered Oct 02 '22 19:10

ks1322