Skip to content

Get line numbers where function is defined #145

Open
@kerim371

Description

@kerim371

Hi,

I just started testing pygccxml and I can't find a way to retrieve information about where some function is declared or defined. Is it possible?
For example:

class MyClass {       // The class
  public:             // Access specifier
  int foo(int a)
  {
	  return a+1;
  }
};

here I expect that function foo is defind in lines from three to six.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions