Bug 73692 - [Parser] Follow #includes breaks outline view with linux/timer.h
Summary: [Parser] Follow #includes breaks outline view with linux/timer.h
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-parser (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal with 2 votes (vote)
Target Milestone: 4.0   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-10 14:16 EDT by Tanya Wolff CLA
Modified: 2007-05-29 21:46 EDT (History)
2 users (show)

See Also:


Attachments

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