[cfe-dev] How to analyze a C++ header file with a clang tool?

Manasij Mukherjee manasij7479 at gmail.com
Tue Jun 3 17:51:49 PDT 2014


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

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?
This is easy for a source file but I can not figure out how to handle
headers.

Manasij Mukherjee
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20140604/368059be/attachment.html>


More information about the cfe-dev mailing list