<div dir="ltr">an easy workaround could be to create a source file which contains only include directives of the desired header files.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Jun 4, 2014 at 2:51 AM, Manasij Mukherjee <span dir="ltr"><<a href="mailto:manasij7479@gmail.com" target="_blank">manasij7479@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>

        <p>Hi<br>I have seen the examples in clang/tools/, and even built a few simple tools myself.<br>
But all of them work on source files.<br>
For example, I am not sure if I can use clang-check on a header file.  </p>

<p>How do I write a clang tool that will allow me to read a header file 
and ..say.. print the names of all the top level declarations?<br>
This is easy for a source file but I can not figure out how to handle headers.<span class="HOEnZb"><font color="#888888"><br><br></font></span></p><span class="HOEnZb"><font color="#888888"><p>Manasij Mukherjee<br></p>

    </font></span></div></div>
<br>_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
<br></blockquote></div><br></div>