Bug 183166 - #error creates error and warning preprocessor node
Summary: #error creates error and warning preprocessor node
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-core (show other bugs)
Version: 4.0   Edit
Hardware: Other Linux
: P3 normal (vote)
Target Milestone: 4.0 RC0   Edit
Assignee: Anton Leherbauer CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks: 182889
  Show dependency tree
 
Reported: 2007-04-19 07:51 EDT by Emanuel Graf CLA
Modified: 2008-06-20 12:06 EDT (History)
1 user (show)

See Also:


Attachments
proposed patch (1.29 KB, patch)
2007-04-19 07:53 EDT, Emanuel Graf 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 Emanuel Graf CLA 2007-04-19 07:51:52 EDT
BaseScanner.handlePPDirective() calls always processWarning and processError. So two nodes an Error and a Warning Node are created for one preprocessor directive.
Comment 1 Emanuel Graf CLA 2007-04-19 07:53:01 EDT
Created attachment 64301 [details]
proposed patch
Comment 2 Anton Leherbauer CLA 2007-04-19 10:20:01 EDT
Shame on me.
Comment 3 Anton Leherbauer CLA 2007-04-19 10:34:24 EDT
Applied to HEAD. Thanks!