Skip to content

Commit

Permalink
[Infra] Bump clang-format@16 → 17
Browse files Browse the repository at this point in the history
  • Loading branch information
ncooke3 committed Sep 19, 2023
1 parent 1426609 commit 4aff963
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: Setup check
run: |
brew update
brew install clang-format@16
brew install clang-format@17
brew install mint
mint bootstrap
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ - (void)testSwizzlingAndUnswizzlingInheritedInstanceMethodsForSuperclassesWorksA

NSString * (^newImplementationPollutedTestObjectSubclassSubclass)(NSString *) =
^NSString *(id _self) {
return swizzledPollutedTestObjectSubclassSubclassDescription;
};
return swizzledPollutedTestObjectSubclassSubclassDescription;
};

SEL swizzledSelector = @selector(description);

Expand Down
12 changes: 6 additions & 6 deletions GoogleUtilities/Tests/Unit/Swizzler/GULSwizzlerTest.m
Original file line number Diff line number Diff line change
Expand Up @@ -426,8 +426,8 @@ - (void)testSwizzleMultipleInstanceMethodsOnSameClass {
};
NSString * (^newImplementationDescriptionThatSays)(TestObject *, NSString *) =
^NSString *(TestObject *_self, NSString *something) {
return [something stringByAppendingString:@"SWIZZLED!"];
};
return [something stringByAppendingString:@"SWIZZLED!"];
};
[GULSwizzler swizzleClass:testClass
selector:selectorOne
isClassSelector:NO
Expand Down Expand Up @@ -455,8 +455,8 @@ - (void)testSwizzleMultipleClassMethodsOnSameClass {
};
NSString * (^newImplementationDescriptionThatSays)(TestObject *, NSString *) =
^NSString *(TestObject *_self, NSString *something) {
return [something stringByAppendingString:@"SWIZZLED!"];
};
return [something stringByAppendingString:@"SWIZZLED!"];
};
[GULSwizzler swizzleClass:testClass
selector:selectorOne
isClassSelector:YES
Expand Down Expand Up @@ -611,8 +611,8 @@ - (void)testInvokingOriginalInstanceIMPWithOneArgument {
TestObject *testObject = [[TestObject alloc] init];
NSString * (^replacingBlock)(TestObject *, NSString *) =
^NSString *(TestObject *_self, NSString *something) {
return [something stringByAppendingString:@"SWIZZLED!"];
};
return [something stringByAppendingString:@"SWIZZLED!"];
};

SEL swizzledSelector = @selector(descriptionThatSays:);
[GULSwizzler swizzleClass:[TestObject class]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ GitHub Actions will verify that any code changes are done in a style compliant
way. Install `clang-format` and `mint`:

```console
brew install clang-format@16
brew install clang-format@17
brew install mint
```

Expand Down

0 comments on commit 4aff963

Please sign in to comment.