llcppsigfetch:collect public methods
This commit is contained in:
@@ -9,26 +9,33 @@ func main() {
|
||||
func TestClassDecl() {
|
||||
testCases := []string{
|
||||
`class A {
|
||||
public:
|
||||
int a;
|
||||
int b;
|
||||
};`,
|
||||
`class A {
|
||||
public:
|
||||
int a;
|
||||
int b;
|
||||
float foo(int a,double b);
|
||||
private:
|
||||
void bar();
|
||||
};`,
|
||||
`class A {
|
||||
public:
|
||||
A();
|
||||
explicit A();
|
||||
~A();
|
||||
static inline void foo();
|
||||
};`,
|
||||
`class Base {
|
||||
public:
|
||||
Base();
|
||||
virtual ~Base();
|
||||
virtual void foo();
|
||||
};
|
||||
class Derived : public Base {
|
||||
public:
|
||||
Derived();
|
||||
~Derived() override;
|
||||
void foo() override;
|
||||
|
||||
@@ -18,10 +18,12 @@ func TestScope() {
|
||||
}
|
||||
}`,
|
||||
`class a {
|
||||
public:
|
||||
void foo();
|
||||
};`,
|
||||
`namespace a {
|
||||
class b {
|
||||
public:
|
||||
void foo();
|
||||
};
|
||||
}`,
|
||||
|
||||
Reference in New Issue
Block a user