Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 321886 - Indexer parses unregistered header files but does not react to changes of them
Summary: Indexer parses unregistered header files but does not react to changes of them
Status: CLOSED DUPLICATE of bug 283080
Alias: None
Product: CDT
Classification: Tools
Component: cdt-indexer (show other bugs)
Version: 6.0.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Markus Schorn CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-05 10:58 EDT by Marko Tomljenovic CLA
Modified: 2010-08-05 11:11 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***