diff --git a/.clang-format b/.clang-format index 7403b0f07fc..37c11c9c868 100644 --- a/.clang-format +++ b/.clang-format @@ -4,20 +4,6 @@ Language: Cpp AccessModifierOffset: -1 AlignAfterOpenBracket: Align AlignArrayOfStructures: None -AlignConsecutiveAssignments: - Enabled: false - AcrossEmptyLines: false - AcrossComments: false - AlignCompound: false - AlignFunctionPointers: false - PadOperators: true -AlignConsecutiveBitFields: - Enabled: false - AcrossEmptyLines: false - AcrossComments: false - AlignCompound: false - AlignFunctionPointers: false - PadOperators: false AlignConsecutiveDeclarations: Enabled: false AcrossEmptyLines: false @@ -25,13 +11,6 @@ AlignConsecutiveDeclarations: AlignCompound: false AlignFunctionPointers: false PadOperators: false -AlignConsecutiveMacros: - Enabled: false - AcrossEmptyLines: false - AcrossComments: false - AlignCompound: false - AlignFunctionPointers: false - PadOperators: false AlignConsecutiveShortCaseStatements: Enabled: false AcrossEmptyLines: false diff --git a/.github/workflows/clang-format.yml b/.github/workflows/clang-format.yml index 5128d500ea1..f0066750500 100644 --- a/.github/workflows/clang-format.yml +++ b/.github/workflows/clang-format.yml @@ -9,4 +9,4 @@ jobs: - name: clang format diff check run: | git fetch origin main - git clang-format-15 --help \ No newline at end of file + git clang-format-15 origin/main --diff \ No newline at end of file diff --git a/src/aws-cpp-sdk-core/include/aws/core/client/AWSClient.h b/src/aws-cpp-sdk-core/include/aws/core/client/AWSClient.h index 19bf979d7d5..b694a47bd35 100644 --- a/src/aws-cpp-sdk-core/include/aws/core/client/AWSClient.h +++ b/src/aws-cpp-sdk-core/include/aws/core/client/AWSClient.h @@ -358,6 +358,7 @@ namespace Aws void AppendHeaderValueToRequest( const std::shared_ptr &request, String header, String value) const; + void SomePoorlyFormattedFunction(const Aws::String&arg,const Aws::String&anotherarg, const Aws::String&anotheranotherarg, const Aws::String&anotheranotheranotherarg); }; AWS_CORE_API Aws::String GetAuthorizationHeader(const Aws::Http::HttpRequest& httpRequest); diff --git a/src/aws-cpp-sdk-core/source/client/AWSClient.cpp b/src/aws-cpp-sdk-core/source/client/AWSClient.cpp index f7b728b134c..90c8e27516c 100644 --- a/src/aws-cpp-sdk-core/source/client/AWSClient.cpp +++ b/src/aws-cpp-sdk-core/source/client/AWSClient.cpp @@ -796,8 +796,10 @@ void AWSClient::AppendHeaderValueToRequest(const std::shared_ptr& httpRequest, - const Aws::AmazonWebServiceRequest& request) const + const Aws::AmazonWebServiceRequest& request) const { Aws::String checksumAlgorithmName = Aws::Utils::StringUtils::ToLower(request.GetChecksumAlgorithmName().c_str()); if (request.GetServiceSpecificParameters()) {