Skip to content

[NFC] Hide SourceFile::Decls#28995

Merged
CodaFi merged 2 commits into
swiftlang:masterfrom
CodaFi:absolutely-path-ological
Jan 7, 2020
Merged

[NFC] Hide SourceFile::Decls#28995
CodaFi merged 2 commits into
swiftlang:masterfrom
CodaFi:absolutely-path-ological

Conversation

@CodaFi
Copy link
Copy Markdown
Contributor

@CodaFi CodaFi commented Jan 3, 2020

In preparation for installing some stable paths infrastructure here,
hide access to the array of top-level decls.

@CodaFi
Copy link
Copy Markdown
Contributor Author

CodaFi commented Jan 3, 2020

@swift-ci please smoke test and merge

@davidungar davidungar self-requested a review January 3, 2020 19:49
@davidungar
Copy link
Copy Markdown
Contributor

Nice!

Copy link
Copy Markdown
Contributor

@davidungar davidungar left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Copy Markdown
Contributor

@slavapestov slavapestov left a comment

Choose a reason for hiding this comment

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

Nice cleanup!

Comment thread include/swift/AST/SourceFile.h Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Eventually this should set them all in one shot so that anything depending on getTopLevelDecls() is immutable.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

LLDB is going to be the last bastion of mutations here...

@CodaFi
Copy link
Copy Markdown
Contributor Author

CodaFi commented Jan 3, 2020

Urf, need LLDB patches.

@CodaFi
Copy link
Copy Markdown
Contributor Author

CodaFi commented Jan 3, 2020

swiftlang/llvm-project#525

@swift-ci smoke test

In preparation for installing some stable paths infrastructure here,
hide access to the array of top-level decls.
@CodaFi CodaFi force-pushed the absolutely-path-ological branch from 7bd03f0 to 96b3b9f Compare January 3, 2020 22:14
@CodaFi
Copy link
Copy Markdown
Contributor Author

CodaFi commented Jan 3, 2020

swiftlang/llvm-project#525

@swift-ci smoke test

CodaFi added a commit to CodaFi/llvm-project that referenced this pull request Jan 6, 2020
@CodaFi
Copy link
Copy Markdown
Contributor Author

CodaFi commented Jan 6, 2020

swiftlang/llvm-project#525

@swift-ci smoke test

SwiftASTManipulator is installing declarations in the wrong order, and
currently fails a REPL test if the right API is used.

rdar://58355191 is tracking the removal of this entrypoint.
@CodaFi
Copy link
Copy Markdown
Contributor Author

CodaFi commented Jan 6, 2020

Installed a workaround for LLDB and filed rdar://58355191 about removing it on their end.

@CodaFi
Copy link
Copy Markdown
Contributor Author

CodaFi commented Jan 6, 2020

swiftlang/llvm-project#525

@swift-ci smoke test

@CodaFi
Copy link
Copy Markdown
Contributor Author

CodaFi commented Jan 7, 2020

⛵️

@CodaFi CodaFi merged commit 19f0d52 into swiftlang:master Jan 7, 2020
@CodaFi CodaFi deleted the absolutely-path-ological branch January 7, 2020 02:48
adrian-prantl pushed a commit to swiftlang/llvm-project that referenced this pull request Jan 8, 2020
Supports swiftlang/swift#28995

(cherry picked from commit f64e25b)
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