Bug 183166

Summary: #error creates error and warning preprocessor node
Product: [Tools] CDT Reporter: Emanuel Graf <emanuel>
Component: cdt-coreAssignee: Anton Leherbauer <aleherb+eclipse>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: g1zgragg
Version: 4.0Keywords: contributed
Target Milestone: 4.0 RC0   
Hardware: Other   
OS: Linux   
Whiteboard:
Bug Depends on:    
Bug Blocks: 182889    
Attachments:
Description Flags
proposed patch bjorn.freeman-benson: iplog+

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!