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

Mechanical application of clang-format #372

Merged
merged 1 commit into from
Oct 12, 2023
Merged

Mechanical application of clang-format #372

merged 1 commit into from
Oct 12, 2023

Conversation

jeremykubica
Copy link
Contributor

No functionality changes.

@jeremykubica jeremykubica marked this pull request as ready for review October 12, 2023 14:01

const std::string to_yaml() const {
return "{x: " + std::to_string(x) + " y: " + std::to_string(y) + "}";
return "{x: " + std::to_string(x) + " y: " + std::to_string(y) + "}";
Copy link
Collaborator

Choose a reason for hiding this comment

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

the to_yaml above uses a comma between fields. Would be nice to be consistent.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm going to keep as-is for now to keep this a purely mechanical application of clang-format, but will change this in the next PR.

" vx: " + std::to_string(vx) +
" vy: " + std::to_string(vy) +
" obs_count: " + std::to_string(obs_count);
return "lh: " + std::to_string(lh) + " flux: " + std::to_string(flux) + " x: " + std::to_string(x) +
Copy link
Collaborator

Choose a reason for hiding this comment

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

This was a little easier to read in the original formatting (one field per line). Dunno about disabling code formatting for this block, though.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agreed that it was a little easier to read before. But I will keep it this way for now for consistency.

@jeremykubica jeremykubica merged commit 5acc9eb into main Oct 12, 2023
1 check passed
@jeremykubica jeremykubica deleted the clang-format branch October 12, 2023 14:45
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