Skip to content

Commit 31f9f0b

Browse files
committed
test clang-format
1 parent 4264fc4 commit 31f9f0b

File tree

4 files changed

+5
-23
lines changed

4 files changed

+5
-23
lines changed

.clang-format

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,34 +4,13 @@ Language: Cpp
44
AccessModifierOffset: -1
55
AlignAfterOpenBracket: Align
66
AlignArrayOfStructures: None
7-
AlignConsecutiveAssignments:
8-
Enabled: false
9-
AcrossEmptyLines: false
10-
AcrossComments: false
11-
AlignCompound: false
12-
AlignFunctionPointers: false
13-
PadOperators: true
14-
AlignConsecutiveBitFields:
15-
Enabled: false
16-
AcrossEmptyLines: false
17-
AcrossComments: false
18-
AlignCompound: false
19-
AlignFunctionPointers: false
20-
PadOperators: false
217
AlignConsecutiveDeclarations:
228
Enabled: false
239
AcrossEmptyLines: false
2410
AcrossComments: false
2511
AlignCompound: false
2612
AlignFunctionPointers: false
2713
PadOperators: false
28-
AlignConsecutiveMacros:
29-
Enabled: false
30-
AcrossEmptyLines: false
31-
AcrossComments: false
32-
AlignCompound: false
33-
AlignFunctionPointers: false
34-
PadOperators: false
3514
AlignConsecutiveShortCaseStatements:
3615
Enabled: false
3716
AcrossEmptyLines: false

.github/workflows/clang-format.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ jobs:
99
- name: clang format diff check
1010
run: |
1111
git fetch origin main
12-
git clang-format-15 --help
12+
git clang-format-15 origin/main --diff

src/aws-cpp-sdk-core/include/aws/core/client/AWSClient.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,7 @@ namespace Aws
358358
void AppendHeaderValueToRequest(
359359
const std::shared_ptr<Http::HttpRequest> &request, String header,
360360
String value) const;
361+
void SomePoorlyFormattedFunction(const Aws::String&arg,const Aws::String&anotherarg, const Aws::String&anotheranotherarg, const Aws::String&anotheranotheranotherarg);
361362
};
362363

363364
AWS_CORE_API Aws::String GetAuthorizationHeader(const Aws::Http::HttpRequest& httpRequest);

src/aws-cpp-sdk-core/source/client/AWSClient.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -796,8 +796,10 @@ void AWSClient::AppendHeaderValueToRequest(const std::shared_ptr<Aws::Http::Http
796796
}
797797
}
798798

799+
void AWSClient::SomePoorlyFormattedFunction(const Aws::String& arg,const Aws::String& anotherarg, const Aws::String& anotheranotherarg,const Aws::String& anotheranotheranotherarg) {AWS_UNREFERENCED_PARAM(arg);AWS_UNREFERENCED_PARAM(anotherarg);AWS_UNREFERENCED_PARAM(anotheranotherarg);AWS_UNREFERENCED_PARAM(anotheranotheranotherarg);}
800+
799801
void AWSClient::AddChecksumToRequest(const std::shared_ptr<Aws::Http::HttpRequest>& httpRequest,
800-
const Aws::AmazonWebServiceRequest& request) const
802+
const Aws::AmazonWebServiceRequest& request) const
801803
{
802804
Aws::String checksumAlgorithmName = Aws::Utils::StringUtils::ToLower(request.GetChecksumAlgorithmName().c_str());
803805
if (request.GetServiceSpecificParameters()) {

0 commit comments

Comments
 (0)