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

Add clang format control for cpp11 features #180

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hallfox
Copy link
Collaborator

@hallfox hallfox commented Jan 5, 2024

These changes minimize the amount of changes coming from the files supporting a simulating C++11, eliminating all discrepancies except the license header. Future versions of sim_cpp11_features.pl should address this issue.

@hallfox hallfox added the A-Other Area: Other label Jan 5, 2024
@hallfox hallfox self-assigned this Jan 5, 2024
@hallfox hallfox requested a review from a team as a code owner January 5, 2024 22:53
Copy link
Collaborator

@pniedzielski pniedzielski left a comment

Choose a reason for hiding this comment

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

This PR fails our CI check for formatting; do we need to update our CI or are there missing comments to turn clang-format's check off?

@hallfox
Copy link
Collaborator Author

hallfox commented Jan 9, 2024

This is odd, locally I'm formatting these files and it changes nothing. Perhaps this is a clang-format version difference issue. Let me try running with clang-format-14 locally.

#undef COMPILING_MWCEX_BINDUTIL_H
# define COMPILING_MWCEX_BINDUTIL_H
# include <mwcex_bindutil_cpp03.h>
# undef COMPILING_MWCEX_BINDUTIL_H
Copy link
Collaborator

Choose a reason for hiding this comment

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

Odd spaces here

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is sim_cpp11_features.pl's output

@hallfox hallfox force-pushed the cpp03-format-fix branch 3 times, most recently from 3e591fc to afd236c Compare January 23, 2024 20:05
Signed-off-by: Taylor Foxhall <tfoxhall@bloomberg.net>

Regenerate cpp03 files

Update clang-format version in gh actions

Signed-off-by: Taylor Foxhall <tfoxhall@bloomberg.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Other Area: Other
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants