I spent the last 2.5hr on this and failed.<br>How do i do something simple like check the type of a variable?<br><br>I have a VarDecl. I tried checking for 1) the type (int vs my own struct), 2) if it is static 3) if it is volatile.<br>
isStaticDataMember() and isStaticLocal() both failed on "static int a=1;", i did not see anything for volatile including when i tried to find qualifier flags to do an & IsVolatile. I messed around with get context, definition, getCanonicalDecl, getType(), etc. Some of them seem to give me the very same object back. I can check if something is a "Var" or "Record" but simply getting the name of something is a challenge. This is different from every reflector and AST i have worked with in the past.<br>
<br><br>Is there some documentation or manual i can read? I dont think i'll understand this by looking at definitions and headers.<br><div></div>
<div></div>