[cfe-dev] Getting all variable declaration which is inside a loop

via cfe-dev cfe-dev at lists.llvm.org
Wed May 3 05:47:51 PDT 2017


Hi everyone,

I want to get all variable declaration which is inside a loop ( whose
scope limited to that loop only). Can someone please tell me how can i do
this?

Ex

int a,bl
for(){
int c,d;
}
Output should be c,d

-- 
Thanks and Regards
Awanish Pandey
PhD, CSE
IIT Kanpur




More information about the cfe-dev mailing list