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

always provide settings for TokenList in tests #6055

Merged
merged 1 commit into from
Feb 28, 2024

Conversation

firewave
Copy link
Collaborator

No description provided.

@firewave
Copy link
Collaborator Author

There is just a few places left in the application code but I could not adjust these as they have massive ripple effects which affect a lot of code and might also change the behavior. I will re-visit this later on.

std::istringstream istr(code2);
tokenlist.createTokens(istr, "a.cpp");
ASSERT_EQUALS(true, tokenlist.front()->isKeyword());
}

{
const char code2[] = "co_return"; // C++20 keyword
TokenList tokenlist(nullptr); // no settings use latest standard
TokenList tokenlist(&settings); // defule settings use latest standard
Copy link
Collaborator

Choose a reason for hiding this comment

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

Typo: defule

@chrchr-github chrchr-github merged commit 5da25c1 into danmar:main Feb 28, 2024
64 checks passed
@firewave firewave deleted the toklist-set branch February 28, 2024 13:28
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