Bug 69161 - [Scanner] Macro usage error with quoted comma
Summary: [Scanner] Macro usage error with quoted comma
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-parser (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 2.0.1   Edit
Assignee: John Camelon CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-01 14:36 EDT by Ed Burnette CLA
Modified: 2004-08-10 13:30 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Burnette CLA 2004-07-01 14:36:54 EDT
Eclipse 3.0 + CDT2.0RC2

This code causes an incorrect C/C++ Indexer Problem: Macro usage error
This has been simplified from a larger example. Apparently the comma inside 
the quotes is confusing it.

#define MACRO(s) s
char *testQueries[] =
{
   MACRO(",") // if you change the comma to anything else there is no error
};
Comment 1 Ed Burnette CLA 2004-07-01 14:38:57 EDT
These fail too:
   MACRO("(")
and
   MACRO(")")
Comment 2 John Camelon CLA 2004-07-15 11:16:51 EDT
These defects will be addressed once we move to the new Scanner implementation 
we are working on in the HEAD.
Comment 3 John Camelon CLA 2004-08-10 11:40:49 EDT
This defect is fixed in HEAD w/Scanner2 implementation. 
It shall be marked as resolved once it has been fixed in 2.0.1 as well. 
Comment 4 John Camelon CLA 2004-08-10 13:30:53 EDT
The merge from HEAD to 2_0 branch is complete.  
JUnits validating these fixes have been committed to both branches. 
Marking as RESOLVED - FIXED. 
The next available 2.0.1 build shall contain these fixes along with Parser 
performance/scalability improvements.