Bug 87179 - [Selection] selecting #ifdef IASTName\r\n does not provide a proper IASTNode
Summary: [Selection] selecting #ifdef IASTName\r\n does not provide a proper IASTNode
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-parser (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0 M7   Edit
Assignee: Devin Steffler CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2005-03-04 14:47 EST by Devin Steffler CLA
Modified: 2008-06-19 12:57 EDT (History)
1 user (show)

See Also:


Attachments
cdt_core patch (913 bytes, patch)
2005-05-17 10:39 EDT, Devin Steffler CLA
bjorn.freeman-benson: iplog+
Details | Diff
cdt_core_tests patch (1.34 KB, patch)
2005-05-17 10:39 EDT, Devin Steffler CLA
bjorn.freeman-benson: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Devin Steffler CLA 2005-03-04 14:47:28 EST
Selecting "#ifdef ONE" from below return a null IASTNode in windows when the 
newlines are \r\n.

// example code:
#define ONE 1
#ifdef ONE
int x=0;
#else
char c='c';
#endif
Comment 1 John Camelon CLA 2005-03-07 10:19:13 EST
Yes, this portion of the AST needs to be cleaned up.  
Same w/undef.
Comment 2 Devin Steffler CLA 2005-05-17 10:39:17 EDT
Created attachment 21260 [details]
cdt_core patch
Comment 3 Devin Steffler CLA 2005-05-17 10:39:36 EDT
Created attachment 21261 [details]
cdt_core_tests patch
Comment 4 Devin Steffler CLA 2005-05-17 10:40:50 EDT
I've attached a patch to this PR.  I'll try the same thing today that I did 
yesterday.  Attach patches to my PRs and then at the end of the day submit one 
patch to the mailing list with whatever I managed to get done.
Comment 5 Devin Steffler CLA 2005-05-18 08:56:29 EDT
FIXED in HEAD.