Skip to content

liblangutil: refactor SourceReferenceFormatter (split out extraction / line-cutting part). #5535

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

Closed
wants to merge 6 commits into from

Conversation

christianparpart
Copy link
Member

adds SourceReferenceExtractor API to liblangutil.

This is a prerequisite of #5511 - and can be merged early.

FYI: that API could receive get some tests. maybe in the PR or another?.

@chriseth
Copy link
Contributor

Why did you not modify SourceReferenceFormatter? I thought it was a refactor. Also there seem to be still some TODOs in the code.

@christianparpart
Copy link
Member Author

christianparpart commented Nov 28, 2018

@chriseth, it is, but that's a splitout of the bigger PR. the code changes of the SourceReferenceFormatter are in the main PR. you asked me to split a few commits out.

@christianparpart christianparpart force-pushed the cp-SourceReferenceExtractor branch from 75f2802 to e7bdf46 Compare November 28, 2018 16:35
@codecov

This comment has been minimized.

@christianparpart christianparpart force-pushed the cp-SourceReferenceExtractor branch from e7bdf46 to b25b57c Compare November 29, 2018 00:30
@christianparpart christianparpart changed the title liblangutil: adds SourceReferenceExtractor. liblangutil: refactor SourceReferenceFormatter (split out extraction / line-cutting part). Nov 29, 2018
@christianparpart christianparpart force-pushed the cp-SourceReferenceExtractor branch from b25b57c to cfa70ca Compare November 29, 2018 01:00
Christian Parpart added 5 commits November 29, 2018 12:28
…Stream source, eliminating sourceName

Also, adapted affecting code to those changes.
…arStream already)

Also, ParserBase::sourceName() was dead code. Eliminating it should
increase test coverage (how sneaky) :-)
…nderlying CharStream (which knows about the source's filename)
@christianparpart christianparpart force-pushed the cp-SourceReferenceExtractor branch from cfa70ca to 6aa9e67 Compare November 30, 2018 10:51
@christianparpart
Copy link
Member Author

due to rebase-fuckups with #5537, I cannot push onto the remote branch anymore. Have to start over, sorry.

@christianparpart christianparpart removed the request for review from chriseth November 30, 2018 13:40
@christianparpart christianparpart deleted the cp-SourceReferenceExtractor branch January 21, 2019 09:38
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.

2 participants