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
[SR-13245] Refactor construction of ModuleDecl::ImportFilter
s to use new initializer list constructor
#55685
Comments
This should be a good starter task, as the behavior after the refactoring should not change. There is no new functionality to be added. The main challenge would be to get the compiler building properly. Please feel free to ask for help or code review (I'm varungandhi-apple on GitHub). 🙂 |
@swift-ci create |
Comment by Nikhil (JIRA) theindigamer (JIRA User)..will work on this. |
Sure thing! Let me know if you hit any issues. |
Comment by Jaz Garewal (JIRA) srinikhil07 (JIRA User) theindigamer (JIRA User) It looks like some of the changes have been made on this issue. Is it okay if I take on handling the rest or are you still on making changes srinikhil07 (JIRA User)? |
Comment by Nikhil (JIRA) jazgarewal (JIRA User) No, I am not making any changes and I thought the changes made were enough to close this issue. |
Comment by Jaz Garewal (JIRA) srinikhil07 (JIRA User) I might be misreading the issue, but I found other elements that are implementing SwiftASTContext::CacheUserImports(SwiftASTContext &swift_ast_context, at around line 8265, should swift::ModuleDecl::ImportFilter be implemented with the new constructor? |
Comment by Nikhil (JIRA) jazgarewal (JIRA User) Seems like this is in LLVM, please check with theindigamer (JIRA User) I made changes only in Swift repo. |
Yeah, that part is code in LLDB. Since |
Comment by Jaz Garewal (JIRA) theindigamer (JIRA User) Will do - thank you! |
Comment by Jaz Garewal (JIRA) theindigamer (JIRA User) The PR is ready to go and is at [apple/llvm-project#1662] |
Resolved by #33250 and apple/llvm-project#1662 |
Additional Detail from JIRA
md5: dc041543501cdfb3045d66f6f0b1cbb0
Issue Description:
Throughout the codebase, we have patterns like:
However, this would be cleaner if we used the newly introduced initializer list constructor.
The idea would be to search the code for
ImportFilterKind::
or similar and see places manually using the|=
construction and use the new constructor instead. This shouldn't require any new test cases.The text was updated successfully, but these errors were encountered: