<div dir="ltr"><div><div>Hello,<br></div>I develop a source-to-source project for fun and to learn clang. The idea is to generate an xml of a function or class declared in a header file which is an input of my program. But if this header file has an #include directive the code generate also an xml for functions/classes declared in this one and i would like to avoid it.<br></div><br>There exist a way to know in which file a clang::Decl object is declared ?<br><div><br>
<div>SourceManager::getFileName returns my input file so i can't compare file name.<br></div><div></div>
<br></div><div>Thanks in advance,<br></div><div>karpalo.<br></div></div><div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br> <table style="border-top:1px solid #d3d4de">
<tr>
<td style="width:55px;padding-top:18px"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif" alt="" width="46" height="29" style="width: 46px; height: 29px;"></a></td>
<td style="width:470px;padding-top:17px;color:#41424e;font-size:13px;font-family:Arial,Helvetica,sans-serif;line-height:18px">Garanti sans virus. <a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank" style="color:#4453ea">www.avast.com</a> </td>
</tr>
</table>
<a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"></a></div>