Repository navigation
Conversation
Member
Member
Author
|
Good catch, let me include these. |
Collaborator
|
This PR is in a state where it requires action by @openssl/committers but the last update was 30 days ago |
Member
It is cherry-picked from commit 1afb05b "Add serialization for SHA-2 digest contexts" to ensure that .clang-format configuration are in sync between branches.
esyr
force-pushed
the
esyr/clang-format-updates-3.6
branch
from
April 1, 2026 08:23
3a850ca to
0eb5b72
Compare
Member
Author
This resulted in an adjustment of reformatting that is a bit less trippy in some places. Original-PR: openssl#29383 Original-Commit: 821b265 "Add a few more ASN.1 related StatementMacros"
This was done by calling a script I made on the spot:
bash add-types-to-clang-format > .clang-format.new && mv .clang-format.new .clang-format
This is what that script looked like:
#! /bin/bash
sed -ne '1,/^CommentPragmas:/p' < .clang-format
cat <<_____
# OpenSSL uses typedefs extensively. Tell clang-format about them.
TypeNames:
_____
include_re=$(yq -r '.repos.[].hooks.[] | select(.id == "clang-format") | .files' < .pre-commit-config.yaml)
include_dirs=( apps crypto include providers ssl )
git ls-files "${include_dirs[@]}" \
| grep -E $include_re \
| xargs ctags -f - \
| awk -F "\t" -- '$2 ~ /\.h/ && $4 == "t" { printf " - \"%s\"\n", $1 }' \
| sort \
| uniq
cat <<_____
# The following types are macros, and need to remain that way, unfortunately
- "HASH_CTX"
- "HASH_LONG"
- "MD32_REG_T"
_____
sed -ne '/^# OpenSSL uses macros extensively/,$p' < .clang-format
Original-PR: openssl#29383
Original-Commit: aa9defa "Dump all known typedefs into .clang-format"
Original-PR: openssl#29383 Original-Commit: 16fa01b "Add a couple of DH related StatementMacros, and adjust"
Anytime a new error code is added it generates error related files. These are generated using a perl script which used readable indenting. The indenting has been removed. Original-PR: openssl#29631 Original-Commit: 8424f565dcbb "Make OpenSSL generated error files use the current clang-format."
…bjects. Original-PR: openssl#29599 Original-Commit: a62d247 "Add clang-format file exclusions for generated files related to OBJ" Original-Merge-Date: Tue Jan 13 10:13:37 2026
Ensure that all the source files are formatted with the current .clang-format configuration, to avoid spurious clang-format checker errors when arbitrary files are touched. Signed-off-by: Eugene Syromiatnikov <[email protected]>
esyr
force-pushed
the
esyr/clang-format-updates-3.6
branch
from
April 1, 2026 09:05
0eb5b72 to
39a0940
Compare
npajkovsky
approved these changes
Apr 2, 2026
t8m
approved these changes
Apr 2, 2026
Collaborator
|
This pull request is ready to merge |
Member
|
Merged to the 3.6 branch. Thank you. |
openssl-machine
pushed a commit
that referenced
this pull request
Apr 3, 2026
It is cherry-picked from commit 1afb05b "Add serialization for SHA-2 digest contexts" to ensure that .clang-format configuration are in sync between branches. Reviewed-by: Nikola Pajkovsky <[email protected]> Reviewed-by: Tomas Mraz <[email protected]> MergeDate: Fri Apr 3 14:47:50 2026 (Merged from #29821)
openssl-machine
pushed a commit
that referenced
this pull request
Apr 3, 2026
This resulted in an adjustment of reformatting that is a bit less trippy in some places. Original-PR: #29383 Original-Commit: 821b265 "Add a few more ASN.1 related StatementMacros" Reviewed-by: Nikola Pajkovsky <[email protected]> Reviewed-by: Tomas Mraz <[email protected]> MergeDate: Fri Apr 3 14:47:51 2026 (Merged from #29821)
openssl-machine
pushed a commit
that referenced
this pull request
Apr 3, 2026
This was done by calling a script I made on the spot:
bash add-types-to-clang-format > .clang-format.new && mv .clang-format.new .clang-format
This is what that script looked like:
#! /bin/bash
sed -ne '1,/^CommentPragmas:/p' < .clang-format
cat <<_____
# OpenSSL uses typedefs extensively. Tell clang-format about them.
TypeNames:
_____
include_re=$(yq -r '.repos.[].hooks.[] | select(.id == "clang-format") | .files' < .pre-commit-config.yaml)
include_dirs=( apps crypto include providers ssl )
git ls-files "${include_dirs[@]}" \
| grep -E $include_re \
| xargs ctags -f - \
| awk -F "\t" -- '$2 ~ /\.h/ && $4 == "t" { printf " - \"%s\"\n", $1 }' \
| sort \
| uniq
cat <<_____
# The following types are macros, and need to remain that way, unfortunately
- "HASH_CTX"
- "HASH_LONG"
- "MD32_REG_T"
_____
sed -ne '/^# OpenSSL uses macros extensively/,$p' < .clang-format
Original-PR: #29383
Original-Commit: aa9defa "Dump all known typedefs into .clang-format"
Reviewed-by: Nikola Pajkovsky <[email protected]>
Reviewed-by: Tomas Mraz <[email protected]>
MergeDate: Fri Apr 3 14:47:52 2026
(Merged from #29821)
openssl-machine
pushed a commit
that referenced
this pull request
Apr 3, 2026
Original-PR: #29383 Original-Commit: 16fa01b "Add a couple of DH related StatementMacros, and adjust" Reviewed-by: Nikola Pajkovsky <[email protected]> Reviewed-by: Tomas Mraz <[email protected]> MergeDate: Fri Apr 3 14:47:53 2026 (Merged from #29821)
openssl-machine
pushed a commit
that referenced
this pull request
Apr 3, 2026
Cherry-picked from commits d4c1efc "Remove dead EVP_aes_*() code" and 32eaa74 "Cleanup block cipher macros in include/crypto/evp.h". Reviewed-by: Nikola Pajkovsky <[email protected]> Reviewed-by: Tomas Mraz <[email protected]> MergeDate: Fri Apr 3 14:47:54 2026 (Merged from #29821)
openssl-machine
pushed a commit
that referenced
this pull request
Apr 3, 2026
Anytime a new error code is added it generates error related files. These are generated using a perl script which used readable indenting. The indenting has been removed. Original-PR: #29631 Original-Commit: 8424f565dcbb "Make OpenSSL generated error files use the current clang-format." Reviewed-by: Nikola Pajkovsky <[email protected]> Reviewed-by: Tomas Mraz <[email protected]> MergeDate: Fri Apr 3 14:47:55 2026 (Merged from #29821)
openssl-machine
pushed a commit
that referenced
this pull request
Apr 3, 2026
…bjects. Original-PR: #29599 Original-Commit: a62d247 "Add clang-format file exclusions for generated files related to OBJ" Original-Merge-Date: Tue Jan 13 10:13:37 2026 Reviewed-by: Nikola Pajkovsky <[email protected]> Reviewed-by: Tomas Mraz <[email protected]> MergeDate: Fri Apr 3 14:47:56 2026 (Merged from #29821)
openssl-machine
pushed a commit
that referenced
this pull request
Apr 3, 2026
Ensure that all the source files are formatted with the current .clang-format configuration, to avoid spurious clang-format checker errors when arbitrary files are touched. Signed-off-by: Eugene Syromiatnikov <[email protected]> Reviewed-by: Nikola Pajkovsky <[email protected]> Reviewed-by: Tomas Mraz <[email protected]> MergeDate: Fri Apr 3 14:47:57 2026 (Merged from #29821)
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
As revealed during the release process, not every file conforms to the current
.clang-formatconfiguration, which is combination of different configurations in different branches and some files not being re-formatted during commits. Try to address both of these issues.