Summary: | [Scanner] Unmatched #elif causes the parser to prematurely exit | ||||||
---|---|---|---|---|---|---|---|
Product: | [Tools] CDT | Reporter: | Mas Yokota <myokota> | ||||
Component: | cdt-parser | Assignee: | Andrew Niefer <aniefer> | ||||
Status: | RESOLVED FIXED | QA Contact: | |||||
Severity: | normal | ||||||
Priority: | P3 | CC: | john.camelon | ||||
Version: | 2.0 | ||||||
Target Milestone: | 2.0.1 | ||||||
Hardware: | PC | ||||||
OS: | Windows 2000 | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
Mas Yokota
2004-07-14 18:46:29 EDT
Created attachment 13279 [details]
test case
These defects will be addressed once we move to the new Scanner implementation we are working on in the HEAD. This needs some investigation in the 2.0.1 timeframe. Scanner2 skips over the rest of the file, which is effectively, like terminating the parse. Andrew, pls investigate ... if it is too big of a fix, push it off to Future. I added some lightweight branch state checking, so now when we encounter an unmatached preprocessor branch directive, we flag it with a problem and ignore it. |