Skip to content

Commit 510c927

Browse files
committed
document gcc.Variable
1 parent c908e41 commit 510c927

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/basics.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,15 @@ Global data access
442442
Get all variables in this compilation unit as a list of
443443
:py:class:`gcc.Variable`
444444
445+
.. py:class:: gcc.Variable
446+
447+
Wrapper around GCC's `struct varpool_node`, representing a variable in
448+
the code being compiled.
449+
450+
.. py:attribute:: decl
451+
452+
The declaration of this variable, as a :py:class:`gcc.Tree`
453+
445454
.. py:function:: gccutils.get_variables_as_dict()
446455
447456
Get a dictionary of all variables, where the keys are the variable names

0 commit comments

Comments
 (0)