I know that a variable declaration is represented as a VAR_DECL node or some related nodes in AST. But how to distinct the XXX_DECL node is for a Global Var or not? Futhermore, is there any field or flag in the XXX_DECL node structure that could be regarded as the distinction flag between Global and Local Var