[cfe-dev] Retrieve included header files

ishani harry.denholm at gmail.com
Sat Jun 18 12:16:45 PDT 2011


Here's one way. compile with 

-save-temps -S -Xpreprocessor -CC <source_file.cpp>

and you will get a <source_file>.ii file generated showing the result of the
preprocessor, each of the headers included will be displayed in the form
they will be consumed by the compiler, along with line numbers and comments
intact.

-h

--
View this message in context: http://clang-developers.42468.n3.nabble.com/Retrieve-included-header-files-tp3071784p3080448.html
Sent from the Clang Developers mailing list archive at Nabble.com.



More information about the cfe-dev mailing list