[GCC-XML] static functions: no `static' attribute?

David Cole david.cole at kitware.com
Thu Aug 19 07:23:37 EDT 2010


Here is a sampling of the output of processing vtkWin32OutputWindow.h with
gccxml:

  <Method id="_17" name="IsTypeOf" returns="_64" static="1" context="_9"
access="public" mangled="_ZN20vtkWin32OutputWindow8IsTypeOfEPKc"
demangled="vtkWin32OutputWindow::IsTypeOf(char const*)" location="f1:35"
file="f1" line="35" endline="35" inline="1">
    <Argument name="type" type="_7" location="f1:35" file="f1" line="35"/>
  </Method>

There is clearly a static="1" attribute on each static method, just as I
would expect.

There must be something masking it in your case.

It's not a limitation, so it must be a "bug"...

How are you calling gccxml? (What's the exact command line used?)


On Thu, Aug 19, 2010 at 12:17 AM, Óscar Fuentes <ofv at wanadoo.es> wrote:

> Qt have something like this on their headers:
>
> inline static int foo(int blah) { .... }
>
> `inline' is reported, but not `static'.
>
> Is this a limitation of gcc-xml or a bug?
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.gccxml.org/mailman/listinfo/gccxml
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/gccxml/attachments/20100819/33efe031/attachment.html>


More information about the gccxml mailing list