<div dir="auto">Thank you Eli for the your suggestion and we are trying at clang AST level ,since we are supporting through pragma directive. <div dir="auto"><br></div><div dir="auto">Umesh</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Dec 21, 2016 4:34 PM, "Umesh Kalappa" <<a href="mailto:umesh.kalappa0@gmail.com">umesh.kalappa0@gmail.com</a>> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Guys ,<div><br></div><div>We have the function that accepts StringRef and construct the DeclarationName instance .</div><div><br></div><div>Currenlty we are achieving the same as ,the code snap</div><div><br></div><div>void appendExtern(StringRef Sr)</div><div>{</div><div> char *ExternChar = const_cast<char *> (Sr.data());<br></div><div><div> *Ptr =reinterpret_cast<void *>(ExternChar);</div><div> </div><div> this->ExternName = DeclarationName::<wbr>getFromOpaquePtr(Ptr);</div></div><div><br></div><div>}</div><div><br></div><div>There is, any better way of achieving this ,because the above code is crashing intermittently ? </div><div><br></div><div>Thank you and any help here appreciated.</div><font color="#888888"><div>~Umesh</div><div><br></div><div><br></div></font></div>
</blockquote></div><br></div>