Skip to content

[CodeCompletion] Enable SwiftParser parsing for code completion #65078

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

Merged
merged 2 commits into from
Apr 12, 2023

Conversation

rintaro
Copy link
Member

@rintaro rintaro commented Apr 11, 2023

Enable SwiftParser parsing for code completion, but disable the roundtrip/validation testing. So that macro expansions are correctly performed in code completion, while avoiding an assertion failure
caused by existence of null character in the source buffer.

rdar://107900870

@rintaro rintaro force-pushed the ide-completion-rdar107900870 branch from 9ca4ef6 to 53d1a2b Compare April 11, 2023 21:48
@rintaro
Copy link
Member Author

rintaro commented Apr 11, 2023

@swift-ci Please test

if (!options::LoadPluginLibrary.empty()) {
std::vector<std::string> paths;
for (auto path: options::LoadPluginLibrary) {
llvm::errs() << "LoadPluginLibrary: " << path << "\n";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this just debug output during development or do you want to keep it for the future?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Argh, I will remove this.

rintaro added 2 commits April 11, 2023 17:35
But disable roundtrip/validation testing. So that macro expansions are
correctly performed in code completion, but avoid an assertion failure
caused by existence of null character in the source buffer.

rdar://107900870
@rintaro rintaro force-pushed the ide-completion-rdar107900870 branch from 53d1a2b to f9feee6 Compare April 12, 2023 00:36
@rintaro
Copy link
Member Author

rintaro commented Apr 12, 2023

@swift-ci Please smoke test

@rintaro rintaro merged commit 153c9d2 into swiftlang:main Apr 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants