Of course clang have a symbol table (or more) I guess. But what I want is, how to use them ? Here I have some questions related to symbol table:<br><br>(I implement a class inherited from RecursiveASTVisitor, so the question below is based on this)<br><br>1. In the same code scope, I define two variables but with the same name. How to check this by a VarDecl ?<br>2. If I define a variable which has the same name as a global variable, or a variable in the outter scope. How to check this ?<br>3. I define a struct type, and define a variable with this type, how to get more type information from QualType ?<br><br>ps. I googled for a while and it seems I can use Sema class, but Sema is a huge class with lots of member functions. So it's really difficult to start with Sema without any documents/tutorials. <br><br>Thanks.<br><br>