Repository navigation
Fmt wrappers (more) #3514
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
Open
tomc271
wants to merge
38
commits into
next
Choose a base branch
from
fmt-wrappers-more
base: next
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Fmt wrappers (more) #3514
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
02d80af
Rename all String()` with `format_as()`
tomchapman ef70e85
Disable the range formatter for Field types
tomchapman 415a5a6
Use a fmt::formatter for Field2D, Field3D, FieldPerp
tomchapman b13c455
Replace more `toSring()` calls with `format_as()`
tomchapman c032889
Move `format_as()` inside namespace `ns` in BOUT_ENUM_CLASS_NS
tomchapman d77ca70
Replace more `toSring()` calls with `format_as()`
tomchapman e074c09
Remove `format_as()` for ConductionMethod
tomchapman dcf4f06
Replace `{:s}` with `{}`
tomchapman c0cbb88
Replace more `toString()` calls with `format_as()`
tomchapman d10fc0b
Correct fmt::formatter SFINAE parameter for Field types
tomchapman bc87893
Delete catch-all `format_as` template from utils.hxx
tomchapman 255b81b
Remove redundant comments
tomchapman e0d838a
Replace calls to `format_as()` with `fmt::to_string` for types with c…
tomchapman 2a5f3ec
Wrap generic fmt::formatter for Fields in fmt namespace
tomchapman 1db89a8
Replace calls to `format_as()` with `fmt::to_string` for types with c…
tomchapman dff473e
No need to call `format_as()` with BoutException
tomchapman 17cfc84
Call `fmt::to_string()` or `fmt::format()` not `format_as()`
tomchapman eaa3a6a
Replace `{:s}` with `{}`
tomchapman 3682624
Remove namespace and qualify class name
tomchapman 7fe4256
Remove `format_as()` functions for std::string and bool types
tomchapman 18e1b25
Minor tidying:
tomchapman 8fb5952
Restore `toString()` for fields
tomchapman f1ee685
Disable the range formatter for Field types
tomchapman 62f2b3b
Fix signature of `format_as()` for DIFF_METHOD
tomchapman b36200f
Apply clang-format
tomchapman bc1e7ec
Add missing header
tomchapman abc0a66
Remove more `toString()` calls
tomchapman 01ee06c
Restore `toString()` for booleans
tomchapman 8080e6e
Restore original function order
tomchapman 3963b9e
Fix FieldFactoryCreationTest
tomchapman a568f2e
Replace `toString` with `fmt::to_string` for `operator<<`
tomchapman 7dc1724
Call `fmt::to_string` on enums when using in the argument to EXPECT_EQ.
tomchapman fca0e8c
Include output_bout_types.hxx in field2d.cxx, field3d.cxx, and fieldp…
tomchapman 6affe3f
Restore use of `toString()` in StringUtilitiesTests
tomchapman ad7344a
Restore use of `toString()` in OptionsTest
tomchapman 0f85800
Revert replace `toString` with `fmt::to_string` for `operator<<`
tomchapman eba7b8c
Replace one more `toString` with `fmt::to_string`
tomchapman e065cdf
Merge remote-tracking branch 'remotes/boutproject/next' into fmt-wrap…
tomchapman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
warning: variadic macro 'BOUT_ENUM_CLASS_NS' used; consider using a 'constexpr' variadic template function [cppcoreguidelines-macro-usage]