<div dir="ltr">Dear Clang Developers,<div><br></div><div>I am Shen, a beginner in 
Clang and LLVM. I hope to add some attributes to some variables, and 
check which variables include which attributes in my program. For 
example, I can write a statement as:</div><div><br></div><div>int x __attribute_(foo); (here "foo" is an attribute defined by myself)</div><div><br></div><div>and
 then how can i check whether x has attribute "foo"?  In Clang manual, 
the macro "__has_attribute" is just used for adding attribute for clang,
 not for a concrete variable. Can you give me some help?</div><div><br></div><div><br></div><div>This
 is the first time for me to use this way to ask questions about LLVM, 
if anything wrong please let me know so i can use a better way to get 
your help.</div><div><br></div><div>Thank you very much and have a nice day!<br><br></div><div>Shen<br></div></div>