Bug 73692

Summary: [Parser] Follow #includes breaks outline view with linux/timer.h
Product: [Tools] CDT Reporter: Tanya Wolff <twolff>
Component: cdt-parserAssignee: Project Inbox <cdt-core-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: matthew.taylor, recoskie
Version: 2.0   
Target Milestone: 4.0   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Tanya Wolff CLA 2004-09-10 14:16:34 EDT
Create a managed c project with the file main.c:
// comment out the include timer.h to 
// mess up outline view with follow #includes on
#include <linux/timer.h>
#include <stdio.h>

enum days {
	MONDAY=2,
	TUESDAY,
	WEDNESDAY
};

int 
main(int argc, char **argv) {
	printf("%d\n",MONDAY);
	return (0);
}

The outline view shows both includes, an enum and main.
Turn on follow #includes in C/C++ preferences.
Resave the file. Only the includes show up in the outline view.
Comment out linux/timer.h. The outline view behaves better now (stdio, an enum
and main).

The header linux/timer.h was in sched.c included in defect 69330. There are
other linux headers which break parser too.
Comment 1 Ravi Sankar CLA 2007-05-23 02:04:16 EDT
Hi Tanya,

I've spent time on this bug and I feel that it is not reproducible on the latest code. Please confirm.

Thanks,
Ravi
Comment 2 Chris Recoskie CLA 2007-05-29 21:46:59 EDT
Guessing this was fixed by moving the Outline View to the DOM parser.  Marking FIXED.