<div dir="ltr">No no, the function is entirely in that code file and there is no forward declaration.<br><br><div class="gmail_quote">On Sat, Nov 20, 2010 at 10:49 PM, Chris Lattner <span dir="ltr"><<a href="mailto:clattner@apple.com">clattner@apple.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div></div><div class="h5"><br>
On Nov 20, 2010, at 11:26 AM, Nimrod Partush wrote:<br>
<br>
> Hi All,<br>
><br>
> When i ParseAST Linux's mmap.c (for instance) i get that several of the functions don't have a body even though they are defined inside that file. For instance when i try to dump() the vma_adjust function:<br>


><br>
> void vma_adjust(struct vm_area_struct *vma, unsigned long start,unsigned long end, pgoff_t pgoff, struct vm_area_struct *insert)<br>
><br>
> i get this weird thing:<br>
><br>
> int vma_adjust()<br>
><br>
> And getBody() return null.<br>
><br>
> It seems the entire FunctionDecl got lost or something. I haven't quite figured out what's in common for all these lost functions nor why does this happen.<br>
<br>
</div></div>Are you sure that you're not seeing a forward definition for that function?<br>
<br>
For example, you should see both decls in:<br>
int foo();<br>
...<br>
int foo(int x) {}<br>
<font color="#888888"><br>
-Chris</font></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr"><span style="font-family:arial, sans-serif;font-size:13px;border-collapse:collapse">Regards,<br><font color="#888888">Nimrod</font></span></div>

<br>
</div>