I have a makefile project comprised of many source, header and other files, which I am trying to convert to an Eclipse "native" project. The problem that the Indexer reports errors and warning on files that exist in the directories but are excluded form the build. As a consequence, large parts of my directory tree are marked with the red x
sign.
How can I make the Indexer to ignore specific file and/or directories?
Note: when defining a directory as "Derived" it is excluded form further searches, but unfortunately not from code analysis. Using project Resource Filters does not solve the problem either.
Individual files are tricky however folders should be possible. Right click on the project -> Properties -> C/C++ General -> Paths and Symbols
Have a look at the 'Source Location' tab:
(a) completely remove a source folder or
(b) define an exlusion filter (where you can also add folders, filters and to a certain extent also files etc.)
(c) Highlight one or several files or folders by left clicking it. Then, right click one of the selected files, then chose Resource Configurations -> Exclude from build...
. It will exclude all selected files or folders.
(d) Also take a look at File Types
(in C/C++ General) and click through the other tabs of 'Paths and Symbols' and see if something can be removed...
(e) And as you may have seen there is also an Indexer (Right click on the project -> Properties -> Indexer
which can be configured
Now I hope the DS-5 guys didn't deactivate all of those options...
Update: Of course those options are also available (at least some of those) in CDT. I changed my description accordingly...