[cfe-dev] Empty function declaration when parsing Linux kernel code

Nimrod Partush nimrodpar at gmail.com
Sat Nov 20 11:26:19 PST 2010


Hi All,

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:

void vma_adjust(struct vm_area_struct *vma, unsigned long start,unsigned
long end, pgoff_t pgoff, struct vm_area_struct *insert)

i get this weird thing:

int vma_adjust()

And getBody() return null.

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.

Any ideas?

Much obliged.

-- 
Regards,
Nimrod
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20101120/1c91934d/attachment.html>


More information about the cfe-dev mailing list