chc.app.CVarInfo module
Variable definition.
- class chc.app.CVarInfo.CVarInfo(cdecls: CDeclarations, ixval: chc.util.IndexedTable.IndexedTableValue)[source]
Bases:
chc.app.CDictionaryRecord.CDeclarationsRecordLocal or global variable.
tags[0]: vname
tags[1]: vstorage (‘?’ for global variable, ‘o_gvid’ for opaque variable)
args[0]: vid (-1 for global variable)
args[1]: vtype
args[2]: vattr (-1 for global variable) (TODO: add global attributes)
args[3]: vglob
args[4]: vinline
args[5]: vdecl (-1 for global variable) (TODO: add global locations)
args[6]: vaddrof
args[7]: vparam
args[8]: vinit (optional)
- property initializer: CInitInfo
- property is_global: bool
- property is_inline: bool
- property is_param: bool
- property line: int
- property real_vid: int
- property vaddrof: bool
- property vdecl: Optional[CLocation]
- property vglob: bool
- property vid: int
Returns the CIL vid for file vinfos and the index for global vinfos.
- property vinit: Optional[CInitInfo]
- property vinline: bool
- property vname: str
- property vparam: int
- property vstorage: str
- property vtype: CTyp