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

List:       cfe-dev
Subject:    Re: [cfe-dev] how should I use clang to locate every method in my project?
From:       Manuel Klimek <klimek () google ! com>
Date:       2014-11-24 8:44:26
Message-ID: CAOsfVvm3Mz-1QJh-Ea1BMmUs_puPpKg-bcimoD-Sp4n3Jo0COQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On Mon Nov 24 2014 at 9:42:39 AM yinping qin <qinyinping@gmail.com> wrote:

> I need to locate every method in my project,including C, C++, ObjC. That
> is I need to get each method's name start position and end position.
>
> I have tried to use libTooling to write a tool in clang, it went well with
> C/C++(I searched for FunctionDecl in the source code), but with ObjC code,
> it came out with a lot of errors(I searched for ObjCMethodDecl).
>

This is the right approach - but without knowing the errors we cannot
really help :)


>
> Now, I am wondering if there is a tool or plugin in clang that I can use
> to locate the functions.
>
> Thx~
> _______________________________________________
> cfe-dev mailing list
> cfe-dev@cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>

[Attachment #5 (text/html)]

<div class="gmail_quote">On Mon Nov 24 2014 at 9:42:39 AM yinping qin &lt;<a \
href="mailto:qinyinping@gmail.com">qinyinping@gmail.com</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">I need to locate every method in my \
project,including C, C++, ObjC. That is I need to get each method&#39;s name start \
position and end position.<div><br></div><div>I have tried to use libTooling to write \
a tool in clang, it went well with C/C++(I searched for FunctionDecl in the source \
code), but with ObjC code, it came out with a lot of errors(I searched for \
ObjCMethodDecl).</div></div></blockquote><div><br></div><div>This is the right \
approach - but without knowing the errors we cannot really help :)<br></div><div>  \
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr"><div><br></div><div>Now, I am wondering if \
there is a tool or plugin in clang that I can use to locate the \
functions.</div><div><br></div><div>Thx~</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