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

Bug 367315

Summary: During incremental index update the context of header may be ignored
Product: [Tools] CDT Reporter: Markus Schorn <mschorn.eclipse>
Component: cdt-indexerAssignee: Markus Schorn <mschorn.eclipse>
Status: RESOLVED FIXED QA Contact: Markus Schorn <mschorn.eclipse>
Severity: normal    
Priority: P3 CC: cdtdoug
Version: 8.0   
Target Milestone: 8.1.0   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Markus Schorn CLA 2011-12-21 08:21:09 EST
Example:

// context.c
#define A B
#include "b.h" // file name is important to reproduce the issue
#include "a.h" // file name is important to reproduce the issue

// a.h
int A;

// b.h
int A;

When simulaneously updating 'a.h' and 'b.h', without updating 'context.c', then the file 'a.h' is no longer indexed in the context of 'context.c'.
Comment 1 Markus Schorn CLA 2011-12-23 04:55:35 EST
Added testcase and fix.