Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 325884 - CPP: Directives are stored as strings
Summary: CPP: Directives are stored as strings
Status: CLOSED WONTFIX
Alias: None
Product: PTP
Classification: Tools
Component: Photran.For Internal Use (show other bugs)
Version: 6.0   Edit
Hardware: All All
: P5 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Matthew Fotzler CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 325895
  Show dependency tree
 
Reported: 2010-09-21 14:16 EDT by Jeffrey Overbey CLA
Modified: 2012-02-29 21:03 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.