Skip to content
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

Simplify ostream.h SFINAE using a helper syntax #976

Merged
merged 3 commits into from
Mar 15, 2022
Merged

Simplify ostream.h SFINAE using a helper syntax #976

merged 3 commits into from
Mar 15, 2022

Conversation

geoffromer
Copy link
Contributor

No description provided.

@geoffromer geoffromer requested a review from a team as a code owner December 8, 2021 20:58
@github-actions
Copy link

We triage inactive PRs and issues in order to make it easier to find active work. If this PR should remain active, please comment or remove the inactive label.
This PR is labeled inactive because the last activity was over 90 days ago. This PR will be closed and archived after 14 additional days without activity.

@github-actions github-actions bot added the inactive Issues and PRs which have been inactive for at least 90 days. label Mar 11, 2022
Copy link
Contributor

@jonmeow jonmeow left a comment

Choose a reason for hiding this comment

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

LGTM. I forget why we hadn't done this before, I know we'd discussed it -- maybe it just felt unnecessary at the time, but now it feels more normal with the other exit-related changes.

@jonmeow
Copy link
Contributor

jonmeow commented Mar 11, 2022

(looking at the age of this PR, maybe I just lost track of it? Sorry.)

@github-actions github-actions bot removed the inactive Issues and PRs which have been inactive for at least 90 days. label Mar 12, 2022
@geoffromer geoffromer merged commit 3356445 into carbon-language:trunk Mar 15, 2022
@geoffromer geoffromer deleted the sfinae branch March 15, 2022 20:40
pk19604014 added a commit that referenced this pull request Mar 22, 2022
…like invalid syntax (#1120)

* Replaced std::exit() with return llvm::Expected/llvm::Error<T> for expected errors like invalid syntax.

* Use llvm::formatv() for formatting lexer error messages.
x

* Addresed merge errors.

* Fixed impl scope.

* Made ErrorBuilder::operator<< nodiscard, to catch code forgetting 'return' in 'return FATAL_COMPILATION_ERROR()'.

* FatalComplationError() -> ParseAndLexContext::RecordLexerError().
Other usages of ERROR_TOKEN in lexer.lpp were actually supposed to be END_OF_FILE.

* Update executable_semantics/syntax/parse_and_lex_context.h

Co-authored-by: Jon Meow <[email protected]>

* Code review fixes.

* Update executable_semantics/syntax/parser.ypp

Co-authored-by: Jon Meow <[email protected]>

* More code review fixes.

* Update executable_semantics/interpreter/type_checker.h

Co-authored-by: Jon Meow <[email protected]>

* Yet more code review fixes...

* Update executable_semantics/syntax/lexer.lpp

Co-authored-by: Jon Meow <[email protected]>

* code review comments

* Update executable_semantics/interpreter/interpreter.cpp

Co-authored-by: Geoff Romer <[email protected]>

* Apply suggestions from code review

Co-authored-by: Jon Meow <[email protected]>

* Update executable_semantics/syntax/lexer.lpp

Co-authored-by: Jon Meow <[email protected]>

* code review

* code review

* Apply suggestions from code review

Co-authored-by: Jon Meow <[email protected]>

* formatted code

* review comments

* Switched to the new ErrorOr<V> error implementation

* code review comments

* fixed comment

* restored ostream.h as #976 makes the change unnecesary

* review comments

Co-authored-by: Jon Meow <[email protected]>
Co-authored-by: Geoff Romer <[email protected]>
chandlerc pushed a commit that referenced this pull request Jun 28, 2022
chandlerc pushed a commit that referenced this pull request Jun 28, 2022
…like invalid syntax (#1120)

* Replaced std::exit() with return llvm::Expected/llvm::Error<T> for expected errors like invalid syntax.

* Use llvm::formatv() for formatting lexer error messages.
x

* Addresed merge errors.

* Fixed impl scope.

* Made ErrorBuilder::operator<< nodiscard, to catch code forgetting 'return' in 'return FATAL_COMPILATION_ERROR()'.

* FatalComplationError() -> ParseAndLexContext::RecordLexerError().
Other usages of ERROR_TOKEN in lexer.lpp were actually supposed to be END_OF_FILE.

* Update executable_semantics/syntax/parse_and_lex_context.h

Co-authored-by: Jon Meow <[email protected]>

* Code review fixes.

* Update executable_semantics/syntax/parser.ypp

Co-authored-by: Jon Meow <[email protected]>

* More code review fixes.

* Update executable_semantics/interpreter/type_checker.h

Co-authored-by: Jon Meow <[email protected]>

* Yet more code review fixes...

* Update executable_semantics/syntax/lexer.lpp

Co-authored-by: Jon Meow <[email protected]>

* code review comments

* Update executable_semantics/interpreter/interpreter.cpp

Co-authored-by: Geoff Romer <[email protected]>

* Apply suggestions from code review

Co-authored-by: Jon Meow <[email protected]>

* Update executable_semantics/syntax/lexer.lpp

Co-authored-by: Jon Meow <[email protected]>

* code review

* code review

* Apply suggestions from code review

Co-authored-by: Jon Meow <[email protected]>

* formatted code

* review comments

* Switched to the new ErrorOr<V> error implementation

* code review comments

* fixed comment

* restored ostream.h as #976 makes the change unnecesary

* review comments

Co-authored-by: Jon Meow <[email protected]>
Co-authored-by: Geoff Romer <[email protected]>
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