Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Intrepreting Clang AST

23 views
Skip to first unread message

vhe...@cs.stonybrook.edu

unread,
Apr 24, 2019, 8:33:17 PM4/24/19
to
|-DeclStmt 0x5564560 <line:33:6, col:24>
| `-VarDecl 0x55644e0 <col:6, col:22> col:17 used dest 'int' static cinit
| `-IntegerLiteral 0x5564540 <col:22> 'int' 10


| |-ImplicitCastExpr 0x5564718 <col:15, col:16> 'void *' <BitCast>
| | `-UnaryOperator 0x55645c8 <col:15, col:16> 'int *' prefix '&' cannot overflow
| | `-DeclRefExpr 0x55645a0 <col:16> 'int' lvalue Var 0x55644e0 'dest' 'int'

In the above AST, what do hex values 0x55644e0 represent? Addresses of the variable? If so is there is anyway to extract it while parsing the AST?

Richard

unread,
Apr 25, 2019, 1:27:39 PM4/25/19
to
[Please do not mail me a copy of your followup]

vhe...@cs.stonybrook.edu spake the secret code
<95088647-1265-440c...@googlegroups.com> thusly:
I think you're correct, but you can browse the source code on github
to verify that assumption.

<http://github.com/llvm-mirror>
--
"The Direct3D Graphics Pipeline" free book <http://tinyurl.com/d3d-pipeline>
The Terminals Wiki <http://terminals-wiki.org>
The Computer Graphics Museum <http://computergraphicsmuseum.org>
Legalize Adulthood! (my blog) <http://legalizeadulthood.wordpress.com>
0 new messages