-
Notifications
You must be signed in to change notification settings - Fork 36
refactor Cpp::GetAllCppNames
#355
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
refactor Cpp::GetAllCppNames
#355
Conversation
8738a27 to
ed6fd23
Compare
| const std::vector<TemplateArgInfo>& arg_types); | ||
|
|
||
| CPPINTEROP_API std::vector<std::string> GetAllCppNames(TCppScope_t scope); | ||
| CPPINTEROP_API void GetAllCppNames(TCppScope_t scope, |
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.
Should be a vector.
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.
No, wait. I take that back.
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
| } | ||
|
|
||
| std::vector<std::string> GetAllCppNames(TCppScope_t scope) { | ||
| void GetAllCppNames(TCppScope_t scope, std::set<std::string>& names) { |
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: no header providing "std::set" is directly included [misc-include-cleaner]
lib/Interpreter/CppInterOp.cpp:26:
- #if CLANG_VERSION_MAJOR >= 19
+ #include <set>
+ #if CLANG_VERSION_MAJOR >= 19
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #355 +/- ##
==========================================
- Coverage 74.57% 74.55% -0.03%
==========================================
Files 8 8
Lines 3214 3211 -3
==========================================
- Hits 2397 2394 -3
Misses 817 817
|
f00daa4 to
80fecfa
Compare
|
clang-tidy review says "All clean, LGTM! 👍" |
Takes in
std::set<std::string>&as an argument and populates it.