]> git.feebdaed.xyz Git - 0xmirror/openssl.git/commit
Redo source reformatting with the TypeNames added
authorRichard Levitte <levitte@openssl.org>
Fri, 12 Dec 2025 15:44:45 +0000 (16:44 +0100)
committerNeil Horman <nhorman@openssl.org>
Wed, 17 Dec 2025 15:19:43 +0000 (10:19 -0500)
commit63e912b7581e85ca0eadcf950bbc70896b183b0e
tree24aa7757d5b8e02ad633b571475123ad8f30d702
parentaa9defaa1fc4247ce8988606a8dca171fe717760
Redo source reformatting with the TypeNames added

This resulted in some source reformatting becoming a bit less trippy

This is the script I used to run clang-format appropriately enough:

    #! /bin/bash

    include_re=$(yq -r '.repos.[].hooks.[] | select(.id == "clang-format") | .files' < .pre-commit-config.yaml)
    known_generated=( crypto/bn/bn_prime.h
                      crypto/objects/obj_dat.h
                      crypto/objects/obj_xref.h
                      include/openssl/obj_mac.h
                      crypto/conf/conf_def.h
                      crypto/asn1/charmap.h
                      '*_err.c'
                      '*err.h' )

    exclusions=()
    for g in "${known_generated[@]}"; do
        # Convert pattern to a regex
        g=${g//\./\\.}
        g=${g//\*/.\*}
        exclusions+=( "^${g}\$" )
    done
    # Join all exclusions into one regex
    exclude_re=$(IFS='|'; echo "${exclusions[*]}")

    (set -x; git ls-files | grep -E $include_re | grep -Ev $exclude_re | xargs clang-format -i)

Reviewed-by: Paul Yang <paulyang.inf@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Neil Horman <nhorman@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/29383)
19 files changed:
crypto/bn/bn_dh.c
crypto/bn/bn_exp.c
crypto/bn/bn_local.h
crypto/bn/bn_ppc.c
crypto/bn/bn_prime.c
crypto/bn/bn_rsa_fips186_5.c
crypto/bn/bn_sparc.c
crypto/cms/cms_local.h
crypto/x509/x_pubkey.c
include/crypto/lms_util.h
include/crypto/sparse_array.h
include/internal/constant_time.h
include/internal/time.h
include/openssl/core_dispatch.h
include/openssl/engine.h
providers/implementations/ciphers/cipher_aes_ocb.c
providers/implementations/include/prov/ciphercommon_ccm.h
providers/implementations/include/prov/ciphercommon_gcm.h
ssl/s3_lib.c