<div>Hi,</div><div><br></div><div>   Recently, I am using clang API using C++ to parse VC in Windows, but I want to add new custom attribute(GUN) or __declspec(MS) for somehow adding new features to C++ in order to do automatic code generation. Are there anything methods(API) or suggestions?<span id="_editor_bookmark_start_1" style="display: none; line-height: 0px;">‍</span><span id="_editor_bookmark_start_0" style="display: none; line-height: 0px;">‍</span></div><div>The following are my test result:</div><div><br></div><div>class  __declspec("test") Test_Class{}; </div><div><br></div><div>The AST printer result of above code does not contain a clang:Attr, while I look inside the 'ParseDecl.cpp', it actually parse the <span style="line-height: 1.5;">__declspec("test") and add it to the AttributeList. How can I get it?<span id="_editor_bookmark_start_4" style="display: none; line-height: 0px;">‍</span></span><span id="_editor_bookmark_start_3" style="display: none; line-height: 0px;">‍</span></div><div><br></div><div><br></div><div>Regards,</div><div>Vincky</div>