-
Notifications
You must be signed in to change notification settings - Fork 36
Tests for static GetClassDecls #230
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
Conversation
vgvassilev
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
| } | ||
|
|
||
| TEST(FunctionReflectionTest, GetClassDecls) { | ||
| std::vector<Decl*> Decls, SubDecls; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: variable 'Decls' is not initialized [cppcoreguidelines-init-variables]
| std::vector<Decl*> Decls, SubDecls; | |
| std::vector<Decl*> Decls = 0, SubDecls; |
| GetAllTopLevelDecls(code, Decls); | ||
| GetAllSubDecls(Decls[0], SubDecls); | ||
|
|
||
| std::vector<Cpp::TCppFunction_t> methods; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: variable 'methods' is not initialized [cppcoreguidelines-init-variables]
| std::vector<Cpp::TCppFunction_t> methods; | |
| std::vector<Cpp::TCppFunction_t> methods = 0; |
| GetAllSubDecls(Decls[0], SubDecls); | ||
|
|
||
| std::vector<Cpp::TCppFunction_t> methods; | ||
| std::vector<Cpp::TCppFunction_t> template_methods; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: variable 'template_methods' is not initialized [cppcoreguidelines-init-variables]
| std::vector<Cpp::TCppFunction_t> template_methods; | |
| std::vector<Cpp::TCppFunction_t> template_methods = 0; |
This tests both interfaces (GetClassMethods, GetFunctionTemplatedDecls) that use the GetClassDecls static function simultaneously under the same scope