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

Prevent clang-format from formatting CBMC contracts on functions #258

Merged
merged 1 commit into from
Oct 18, 2024

Conversation

rod-chapman
Copy link
Contributor

@rod-chapman rod-chapman commented Oct 18, 2024

This PR prevents clang-format reformatting the CBMC contracts that are attached
to function declarations, by wrapping them in // clang-format [off|on]
pairs.

NO CHANGE to the .clang-format file

lint OK
All tests pass OK
All CBMC proofs OK for KYBER_K=2,3,4

@hanno-becker hanno-becker added the benchmark this PR should be benchmarked in CI label Oct 18, 2024
…rations

Wrap function declaration contracts in
 // clang-format off

 // clang-format on
pairs to prevent reformatting of these sections.

Signed-off-by: Rod Chapman <[email protected]>
@hanno-becker hanno-becker force-pushed the no_format_function_contracts branch from b82dd17 to d18e995 Compare October 18, 2024 18:04
@hanno-becker hanno-becker merged commit 3f579b2 into main Oct 18, 2024
17 checks passed
@hanno-becker hanno-becker deleted the no_format_function_contracts branch October 18, 2024 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
benchmark this PR should be benchmarked in CI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants