[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cfe-dev
Subject:    Re: [cfe-dev] system file dependencies for a part of the code using libtooling
From:       Manuel Klimek <klimek () google ! com>
Date:       2015-01-30 9:17:56
Message-ID: CAOsfVvm2KsO1iisThBEJ2Oo77PjoDs-pCoq25hO9LeLkZXjF9A () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


You can take a look at include-what-you-use.
https://code.google.com/p/include-what-you-use/

Note that it has problems; we hope to get a better solution when we have
modules.

On Fri Jan 30 2015 at 12:21:42 AM Deepak Rajendrakumaran <deepak3@vt.edu>
wrote:

> Hello,
>
> I have been trying to find the system file dependencies for a part of the
> code within a single c file. A sample scenario will be-
>
> -There are 3 functions in file f1.c- func1(), func2() and func3()
> -the file f1.c had a number of system header files included
> -I use clang to take func2() from f1.c and move it to a new file f2.c
> -To do this I need  to understand which all system headers present in f1.c
> are being used by func2() so that I can add these also to f2.c
>
>
> I have looked at all functions which I could use from the clang API and I
> cannot see any way I can get this information. Does anyone know of any
> functionality which will help achieve this??
>
>
> Regards,
> Deepak
> _______________________________________________
> cfe-dev mailing list
> cfe-dev@cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>

[Attachment #5 (text/html)]

<div dir="ltr">You can take a look at include-what-you-use.<br><a \
href="https://code.google.com/p/include-what-you-use/">https://code.google.com/p/include-what-you-use/</a><br><div><br></div><div>Note \
that it has problems; we hope to get a better solution when we have \
modules.</div></div><br><div class="gmail_quote">On Fri Jan 30 2015 at 12:21:42 AM \
Deepak Rajendrakumaran &lt;<a href="mailto:deepak3@vt.edu">deepak3@vt.edu</a>&gt; \
wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>I have been \
trying to find the system file dependencies for a part of the code within a single c \
file. A sample scenario will be-</div><div><br></div><div>-There are 3 functions in \
file f1.c- func1(), func2() and func3()</div><div>-the file f1.c had a number of \
system header files included</div><div>-I use clang to take func2() from f1.c and \
move it to a new file f2.c</div><div>-To do this I need   to understand which all \
system headers present in f1.c are being used by func2() so that I can add these also \
to f2.c</div><div><br></div><div><br></div><div>I have looked at all functions which \
I could use from the clang API and I cannot see any way I can get this information. \
Does anyone know of any functionality which will help achieve \
this??</div><div><br></div><div><br></div><div>Regards,</div><div>Deepak  \
</div></div> ______________________________<u></u>_________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">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/<u></u>mailman/listinfo/cfe-dev</a><br> \
</blockquote></div>



_______________________________________________
cfe-dev mailing list
cfe-dev@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic