Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Report on C++ visibility and other attributes #3146

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,8 @@ enum NamedEnum {
Fish,
};

typedef enum NamedEnum AliasOfNamedEnum;
typedef enum NamedEnum AliasOfNamedEnum;

// Functions

void named_function();
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// Methods

class SomeClass {
public:
SomeClass() = delete;
SomeClass(const SomeClass&) = default;
SomeClass(SomeClass&&);
void named_method();
virtual void virtual_method();
virtual void pure_virtual_method() = 0;
private:
void private_method();
protected:
void protected_method();

};
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
void a();

namespace B {
void c();

namespace D {
void e();
}

// We should not report empty namespaces
namespace F {
}

namespace {
void g();
}

inline namespace H {
void i();
namespace J {
void k();
}
}

struct L {
struct M {

};
};
};
Loading
Loading