Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 325884

Summary: CPP: Directives are stored as strings
Product: [Tools] PTP Reporter: Jeffrey Overbey <com-eclipse-dot-org>
Component: Photran.For Internal UseAssignee: Matthew Fotzler <incongruous>
Status: CLOSED WONTFIX QA Contact:
Severity: enhancement    
Priority: P5    
Version: 6.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 325895    

Description Jeffrey Overbey CLA 2010-09-21 14:16:14 EDT
This is the first of several enhancements we need to make to the C preprocessor in Photran.

The C preprocessor directives corresponding to particular tokens are stored as CPreprocessorReplacement objects.  These store the content of the directive as a string.  The directive needs to be stored in a manner that lets them be processed more easily, perhaps as a small AST.  For example, it should not be necessary to parse a string to determine whether it is an #include expansion or a macro expansion.