[cfe-users] Generating a dependency graph and dependency file

Dmitri Gribenko gribozavr at gmail.com
Mon Mar 24 03:45:35 PDT 2014

On Mon, Mar 24, 2014 at 10:37 AM, Samrat Roy <samratroy at gmail.com> wrote:
> Hi there.
> I am trying to generate a list of include dependencies of a specific cpp
> file using the option -dependency-file <filename> of clang 3.5 on Unbuntu
> 12.04 LTS. I have tried using it in the following way:
>            clang++ -MM -dependency-file hello_includes.txt hello.cpp

Please use the same option as with GCC:

clang++ -MM hello.cpp


clang++ -MM -MF deps.txt hello.cpp

-dependency-file is an internal option and should not be used directly.


(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/

More information about the cfe-users mailing list