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

Purge using namespace from libsolidity/lsp and parsing #14493

Merged

Conversation

nikola-matic
Copy link
Collaborator

Related: #14403

@nikola-matic nikola-matic self-assigned this Aug 15, 2023
@nikola-matic nikola-matic force-pushed the purge-using-namespace-from-libsolidity-lsp-parsing branch from 364a446 to bc5e267 Compare August 15, 2023 14:55
cameel
cameel previously approved these changes Aug 16, 2023
Copy link
Member

@cameel cameel left a comment

Choose a reason for hiding this comment

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

Needs one cosmetic fix but otherwise looks good.

libsolidity/lsp/Utils.cpp Outdated Show resolved Hide resolved
@nikola-matic nikola-matic force-pushed the purge-using-namespace-from-libsolidity-lsp-parsing branch from bc5e267 to 3e9a52d Compare August 16, 2023 12:52
cameel
cameel previously approved these changes Aug 16, 2023
@nikola-matic nikola-matic merged commit 25fc3aa into develop Aug 16, 2023
1 check passed
@nikola-matic nikola-matic deleted the purge-using-namespace-from-libsolidity-lsp-parsing branch August 16, 2023 16:15
Comment on lines 1246 to 1252
tie(keyName, keyNameLocation) = expectIdentifierWithLocation();
expectToken(Token::DoubleArrow);
ASTPointer<TypeName> valueType = parseTypeName();
ASTPointer<ASTString> valueName = make_shared<ASTString>("");
ASTPointer<ASTString> valueName = std::make_shared<ASTString>("");
SourceLocation valueNameLocation{};
if (m_scanner->currentToken() == Token::Identifier)
tie(valueName, valueNameLocation) = expectIdentifierWithLocation();
Copy link
Member

@cameel cameel Aug 16, 2023

Choose a reason for hiding this comment

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

I'm rebasing my PRs on top of this now and just noticed that there are quite a few instances of std::tie() without std:: in this file. How does that even compile? Do we have a custom definition of tie() somewhere? Or maybe using namespace std in one of the headers?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

Successfully merging this pull request may close these issues.

2 participants