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

Separate keyword validation for fully supported keywords #5866

Merged
merged 3 commits into from
Feb 6, 2025

Conversation

vkip
Copy link
Member

@vkip vkip commented Jan 13, 2025

Avoid abusing 'PartiallySuppportedFlowKeywords' to for non-contextual verification of keywords that are actually fully supported.

@vkip
Copy link
Member Author

vkip commented Jan 13, 2025

jenkins build this please

@vkip
Copy link
Member Author

vkip commented Jan 13, 2025

jenkins build this please

const PartiallySupportedKeywords<std::string>& string_items,
const PartiallySupportedKeywords<int>& int_items,
const PartiallySupportedKeywords<double>& double_items,
KeywordValidator(const UnsupportedKeywords& unsupported_keywords,
Copy link
Member

Choose a reason for hiding this comment

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

Imho this is getting out of hand. I'd introduce some struct, e.g.

struct Supported
{
  SupportedKeywords<std::string>& string;
  SupportedKeywords<int>& int;
  SupportedKeywords<double>& double;
};

and adjust constructor to

KeywordValidator(unsupported, partially_supported, fully_supported, special)

and adjust getters accordingly.

@vkip
Copy link
Member Author

vkip commented Jan 15, 2025

jenkins build this please

@GitPaean GitPaean requested review from akva2 and bska February 6, 2025 08:49
@GitPaean
Copy link
Member

GitPaean commented Feb 6, 2025

jenkins build this please

@GitPaean
Copy link
Member

GitPaean commented Feb 6, 2025

It is approved and jenkins is green. Let us get it in now.

@GitPaean GitPaean merged commit a799f46 into OPM:master Feb 6, 2025
1 check passed
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