Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 321886

Summary: Indexer parses unregistered header files but does not react to changes of them
Product: [Tools] CDT Reporter: Marko Tomljenovic <marko.tomljenovic>
Component: cdt-indexerAssignee: Project Inbox <cdt-indexer-inbox>
Status: CLOSED DUPLICATE QA Contact: Markus Schorn <mschorn.eclipse>
Severity: normal    
Priority: P3    
Version: 6.0.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Marko Tomljenovic CLA 2010-08-05 10:58:01 EDT
Build Identifier: M20100211-1343

The indexer parses files which are not registered as header files.
But when these header files change the index is not updated => Index has stale content.

Reproducible: Always

Steps to Reproduce:
1.Create a folder with some .c and .h files
2.Set the indexer properties to read all src/header files and that the indexer shall automatically update the index, also after file save
3.Rename the header to have the suffix .d
4.In the c file an "#include header.d" must exist
5.Create a C project in the folder and let the indexer run
6. The indexer will parse the.d file although it is not registered as a header file in the preferences
7. If the d file is now deleted/changed the index will not be updated because now only the registered header files will be processed.
=> The index has the wrong content
Only a complete reindex syncs the index again with the d-file content
Comment 1 Markus Schorn CLA 2010-08-05 11:11:21 EDT
The issue has the same root cause as bug 283080.

*** This bug has been marked as a duplicate of bug 283080 ***