Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Use CDT indexer without build system
Use CDT indexer without build system [message #1794535] Sat, 01 September 2018 07:19 Go to next message
Sigma Pic is currently offline Sigma PicFriend
Messages: 2
Registered: September 2018
Junior Member
Hello,

I woul like to use eclipse for its editor and especially for its indexer.
I use an external build system.
My include paths are managed externally.

I need to exclude some folders from indexer.
Adding an exclude filter is not enough.
I need to give the include path list to the indexer.

I would like to provide this path list with pattern or something similar that allow a recursive inclusion.
The aim is to write inclusion rules instead of managing an accurate list of path.

Pattern inclusion is not supported.
But is there a simple way to add such feature by using setting provider for example ?
Even if it need a bit of code (scripting ot something like that).
I just woul like to avoid a plugin development.

Thank
Re: Use CDT indexer without build system [message #1794690 is a reply to message #1794535] Wed, 05 September 2018 02:03 Go to previous message
David VavraFriend
Messages: 803
Registered: October 2012
Senior Member
The Indexer is independent of builds.
I have many projects where I build by simply calling make.
I create my own makefiles.
I still use the Indexer.

The Indexer needs to know what compiler is being used (by selecting a toolchain)
to be able to get the compiler to yield its built-in settings.

If you don't have the compiler built-ins provider selected then the Indexer doesn't care what compiler is being used.

You tell the Indexer to ignore files and directories using the context menu in the Project Explorer view.

Right click on a file or directory in Project Explorer then select
Resource Configurations --> Exclude from Build ...
Note that these are by build configurations.

If you can find out where this is stored (I really don't know myself)
you can add the XML with an editor.

Other that than you have to select each file or directory by hand using the context menu.

Previous Topic:Avoid recompiling all source files after changing project properties
Next Topic:Problem with Arduino Download Manager
Goto Forum:
  


Current Time: Tue Nov 13 06:49:57 GMT 2018

Powered by FUDForum. Page generated in 0.01513 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top