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

Polish KeywordGenerator #4475

Merged
merged 1 commit into from
Feb 12, 2025
Merged

Polish KeywordGenerator #4475

merged 1 commit into from
Feb 12, 2025

Conversation

bska
Copy link
Member

@bska bska commented Feb 10, 2025

Mostly by splitting long lines, removing needless declarations, and replacing repeated std::endl calls by \n characters where applicable.

@bska
Copy link
Member Author

bska commented Feb 10, 2025

jenkins build this please

Copy link
Member

@akva2 akva2 left a comment

Choose a reason for hiding this comment

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

Looks fine, couple of suggestions

void write_file(const std::string& content,
const std::string& file,
const bool verbose,
const std::string& desc = "source")
Copy link
Member

Choose a reason for hiding this comment

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

i think we can drop the default?

Copy link
Member Author

Choose a reason for hiding this comment

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

i think we can drop the default?

True. I've pushed an update to that effect.

return fmt::format("#ifndef PARSER_KEYWORDS_{0}_HPP\n"
"#define PARSER_KEYWORDS_{0}_HPP\n"
"#include <opm/input/eclipse/Parser/ParserKeyword.hpp>\n"
"namespace Opm {{\n"
Copy link
Member

Choose a reason for hiding this comment

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

may as well modernize, ie namespace Opm::ParserKeywords

Copy link
Member Author

Choose a reason for hiding this comment

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

may as well modernize, i.e., namespace Opm::ParserKeywords

Agreed. I've pushed an update to that effect.

@bska bska force-pushed the polish-kw-generator branch 2 times, most recently from 6b0af23 to 140aa96 Compare February 11, 2025 15:49
@bska
Copy link
Member Author

bska commented Feb 11, 2025

jenkins build this please

void write_file(const std::stringstream& stream,
const std::string& file,
const bool verbose,
const std::string& desc = "source")
Copy link
Member

Choose a reason for hiding this comment

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

here as well?

Copy link
Member Author

Choose a reason for hiding this comment

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

here as well?

😣

Thanks–I should have been more thorough before. I've pushed an update that I believe fixes that one as well...

Mostly by splitting long lines, removing needless declarations,
and removing repeated 'std::endl' calls.
@bska bska force-pushed the polish-kw-generator branch from 140aa96 to 430924b Compare February 11, 2025 16:13
@bska
Copy link
Member Author

bska commented Feb 11, 2025

jenkins build this please

@bska
Copy link
Member Author

bska commented Feb 12, 2025

PR approved and build check is green. I'll merge into master.

@bska bska merged commit c7211ad into OPM:master Feb 12, 2025
1 check passed
@bska bska deleted the polish-kw-generator branch February 12, 2025 08:27
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