Bug 69134 - [Scanner] Indexer tries to interpret '#' inside of string
Summary: [Scanner] Indexer tries to interpret '#' inside of string
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 (vote)
Target Milestone: 2.0.1   Edit
Assignee: John Camelon CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-01 10:09 EDT by T. Dorner CLA
Modified: 2004-08-10 13:31 EDT (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 T. Dorner CLA 2004-07-01 10:09:51 EDT
The following piece of code

# ifdef YYDEBUG
      if (yyDebug) {
	 (void) fprintf (yyTrace,
      "  # |Position|State|Mod|Lev|Action |Terminal and Lookahead or Rule\n");
	 yyNl ();
      }
# endif

results in an indexer error:

C/C++ Indexer Problem: Invalid preprocessor directive : # 
|Position|State|Mod|Lev|Action |Terminal and Lookahead or Rule\n"); in file: 
C:\tmp\...

Seems like the parser tries a too easy approach.
Comment 1 John Camelon CLA 2004-07-05 08:12:27 EDT
Agreed!
Comment 2 John Camelon CLA 2004-07-15 11:16:53 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:35:05 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:31:03 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.