Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] CModel (DOM/AST ?) does not know methods?

Hi,

working on the outline view I noticed that methods in C++ source files are
reported as IFunction and not IMethod in the CModel (and AST?)

MyClass::myFunction(int arg1)
{
}

Therefore they always show up as public (and not private or protected as it
might have been defined in a .h header file) function. This way you also
can't group methods because you don't know about their classes.

Is this a limitation of AST or the CModel because it only scans a file
without checking declarations of included header files ?

Is there any chance or work-around so that CModel will report methods as
IMethod and not as IFunction ?

Thanks

Sascha




Back to the top