Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 367315 - During incremental index update the context of header may be ignored
Summary: During incremental index update the context of header may be ignored
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-indexer (show other bugs)
Version: 8.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 8.1.0   Edit
Assignee: Markus Schorn CLA
QA Contact: Markus Schorn CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-21 08:21 EST by Markus Schorn CLA
Modified: 2012-02-23 11:33 EST (History)
1 user (show)

See Also:


Attachments

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