10

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.

srking
  • 4,512
  • 1
  • 30
  • 46
  • +1 I don't know why I didn't think to ask this here! I use makefiles managed by eclipse and it still flags all my included classes. – Gyan aka Gary Buyn Aug 30 '11 at 00:42
  • Check your indexer preferences. See this answer for details: http://stackoverflow.com/questions/10095295/why-cant-codan-find-size-t/10095683#10095683 – HighCommander4 Apr 10 '12 at 21:26

1 Answers1

1

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.

ks1322
  • 33,961
  • 14
  • 109
  • 164