Preinclude_Macros_File¶
- class Preinclude_Macros_File (concrete, physical)¶
Represents a file that was passed to the compiler via the
--preinclude_macrosswitch (same as gcc’s-imacros). The file is handled by the preprocessor like a normal preinclude, but all resulting tokens are discarded; only the effects of macro definitions remain.- Direct parents:
inherits Preinclude_File
- Ancestor classes and implemented interfaces:
End_Information, File, Included_File, Physical_IR_Root, Preinclude_File, Toplevel_Node
Field
Kind
Type
Description
Full_Name (from File)
attribute
builtin String
e.g.,
/usr/include/sys/types.h; always normalized (realpath)Versions (from File)
syntactic
set of class File_Contents
the different versions of this file
Messages (from File)
syntactic
set of class Build_Message
messages recorded from build tools
Parent (from Physical_IR_Root)
semantic
class Physical_IR_Root
The parent of the node in the syntactic forest.
Original_Position_Index (from Physical_IR_Root)
attribute
builtin SLoc_Index_Type
Internal source location info. If from macro expansion, this location is inside the macro body or macro argument
Original_Position (from Physical_IR_Root)
attribute
builtin SLoc
Source location. If from macro expansion, this location is inside the macro body or macro argument
Position (from Physical_IR_Root)
attribute
builtin SLoc
Source location. If from macro expansion, this location is that of the macro expansion
Artificial (from Physical_IR_Root)
attribute
builtin Boolean
Whether this node was compiler-generated
Parenthesized (from Physical_IR_Root)
attribute
builtin Boolean
Whether this node was enclosed in parentheses (used for expressions)
In_Template_Instance (from Physical_IR_Root)
attribute
builtin Boolean
Whether this node is inside a template instance
Enclosing_Template_Instance (from Physical_IR_Root)
semantic
class Physical_IR_Root
Innermost enclosing template instance if In_Template_Instance is true
Original_End_Position_Index (from End_Information)
attribute
builtin SLoc_Index_Type
Internal source location info of the end of the construct. If from macro expansion, this location is inside the macro body or macro argument
Original_End_Position (from End_Information)
attribute
builtin SLoc
Source location of the end of the construct. If from macro expansion, this location is inside the macro body or macro argument
End_Position (from End_Information)
attribute
builtin SLoc
Source location of the end of the construct. If from macro expansion, this location is that of the macro expansion