Skip to content

Commit

Permalink
Fix Xcode 11 warnings. Use angled brackets for framework headers
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulTaykalo committed Apr 12, 2021
1 parent fc2dd8b commit bb9f9c5
Show file tree
Hide file tree
Showing 35 changed files with 93 additions and 105 deletions.
6 changes: 5 additions & 1 deletion Expecta.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1216,7 +1216,7 @@
attributes = {
CLASSPREFIX = EXP;
LastTestingUpgradeCheck = 0630;
LastUpgradeCheck = 1010;
LastUpgradeCheck = 1250;
ORGANIZATIONNAME = "Peter Jihoon Kim";
TargetAttributes = {
908379101A8B9660009844DA = {
Expand All @@ -1232,6 +1232,7 @@
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
English,
en,
);
mainGroup = E9ACDF0113B2DD520010F4D7;
Expand Down Expand Up @@ -1992,6 +1993,7 @@
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
Expand Down Expand Up @@ -2191,6 +2193,7 @@
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
Expand Down Expand Up @@ -2238,6 +2241,7 @@
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
Expand Down
24 changes: 10 additions & 14 deletions Expecta.xcodeproj/xcshareddata/xcschemes/Expecta-iOS.xcscheme
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1010"
LastUpgradeVersion = "1250"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand All @@ -27,6 +27,15 @@
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "908379101A8B9660009844DA"
BuildableName = "Expecta.framework"
BlueprintName = "Expecta-iOS"
ReferencedContainer = "container:Expecta.xcodeproj">
</BuildableReference>
</MacroExpansion>
<Testables>
<TestableReference
skipped = "NO">
Expand All @@ -39,17 +48,6 @@
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "908379101A8B9660009844DA"
BuildableName = "Expecta.framework"
BlueprintName = "Expecta-iOS"
ReferencedContainer = "container:Expecta.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
Expand All @@ -70,8 +68,6 @@
ReferencedContainer = "container:Expecta.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
Expand Down
24 changes: 10 additions & 14 deletions Expecta.xcodeproj/xcshareddata/xcschemes/Expecta.xcscheme
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1010"
LastUpgradeVersion = "1250"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand All @@ -27,6 +27,15 @@
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "908379781A8B972C009844DA"
BuildableName = "Expecta.framework"
BlueprintName = "Expecta"
ReferencedContainer = "container:Expecta.xcodeproj">
</BuildableReference>
</MacroExpansion>
<Testables>
<TestableReference
skipped = "NO">
Expand All @@ -39,17 +48,6 @@
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "908379781A8B972C009844DA"
BuildableName = "Expecta.framework"
BlueprintName = "Expecta"
ReferencedContainer = "container:Expecta.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
Expand All @@ -70,8 +68,6 @@
ReferencedContainer = "container:Expecta.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1010"
LastUpgradeVersion = "1250"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down Expand Up @@ -39,8 +39,6 @@
</BuildableReference>
</TestableReference>
</Testables>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
Expand All @@ -61,8 +59,6 @@
ReferencedContainer = "container:Expecta.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
Expand Down
24 changes: 10 additions & 14 deletions Expecta.xcodeproj/xcshareddata/xcschemes/libExpecta.xcscheme
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1010"
LastUpgradeVersion = "1250"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down Expand Up @@ -41,6 +41,15 @@
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "E9ACDF0B13B2DD520010F4D7"
BuildableName = "libExpecta.a"
BlueprintName = "libExpecta"
ReferencedContainer = "container:Expecta.xcodeproj">
</BuildableReference>
</MacroExpansion>
<Testables>
<TestableReference
skipped = "NO">
Expand All @@ -53,17 +62,6 @@
</BuildableReference>
</TestableReference>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "E9ACDF0B13B2DD520010F4D7"
BuildableName = "libExpecta.a"
BlueprintName = "libExpecta"
ReferencedContainer = "container:Expecta.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
Expand All @@ -84,8 +82,6 @@
ReferencedContainer = "container:Expecta.xcodeproj">
</BuildableReference>
</MacroExpansion>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
Expand Down
4 changes: 2 additions & 2 deletions Expecta/EXPBlockDefinedMatcher.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
//

#import <Foundation/Foundation.h>
#import "EXPMatcher.h"
#import "EXPDefines.h"
#import <Expecta/EXPMatcher.h>
#import <Expecta/EXPDefines.h>

@interface EXPBlockDefinedMatcher : NSObject <EXPMatcher> {
EXPBoolBlock prerequisiteBlock;
Expand Down
4 changes: 2 additions & 2 deletions Expecta/EXPExpect.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#import <Foundation/Foundation.h>
#import "EXPMatcher.h"
#import "EXPDefines.h"
#import <Expecta/EXPMatcher.h>
#import <Expecta/EXPDefines.h>

@interface EXPExpect : NSObject {
EXPIdBlock _actualBlock;
Expand Down
4 changes: 2 additions & 2 deletions Expecta/ExpectaSupport.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#import "EXPExpect.h"
#import "EXPBlockDefinedMatcher.h"
#import <Expecta/EXPExpect.h>
#import <Expecta/EXPBlockDefinedMatcher.h>

#ifdef __cplusplus
extern "C" {
Expand Down
2 changes: 1 addition & 1 deletion Expecta/Matchers/EXPMatchers+beCloseTo.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import "Expecta.h"
#import <Expecta/Expecta.h>

EXPMatcherInterface(_beCloseToWithin, (id expected, id within));
EXPMatcherInterface(beCloseToWithin, (id expected, id within));
Expand Down
2 changes: 1 addition & 1 deletion Expecta/Matchers/EXPMatchers+beFalsy.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#import "Expecta.h"
#import <Expecta/Expecta.h>

EXPMatcherInterface(beFalsy, (void));
2 changes: 1 addition & 1 deletion Expecta/Matchers/EXPMatchers+beGreaterThan.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import "Expecta.h"
#import <Expecta/Expecta.h>

EXPMatcherInterface(_beGreaterThan, (id expected));
EXPMatcherInterface(beGreaterThan, (id expected));
Expand Down
2 changes: 1 addition & 1 deletion Expecta/Matchers/EXPMatchers+beGreaterThanOrEqualTo.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import "Expecta.h"
#import <Expecta/Expecta.h>

EXPMatcherInterface(_beGreaterThanOrEqualTo, (id expected));
EXPMatcherInterface(beGreaterThanOrEqualTo, (id expected));
Expand Down
2 changes: 1 addition & 1 deletion Expecta/Matchers/EXPMatchers+beIdenticalTo.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import "Expecta.h"
#import <Expecta/Expecta.h>

EXPMatcherInterface(_beIdenticalTo, (void *expected));
EXPMatcherInterface(beIdenticalTo, (void *expected)); // to aid code completion
Expand Down
2 changes: 1 addition & 1 deletion Expecta/Matchers/EXPMatchers+beInTheRangeOf.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import "Expecta.h"
#import <Expecta/Expecta.h>

EXPMatcherInterface(_beInTheRangeOf, (id expectedLowerBound, id expectedUpperBound));
EXPMatcherInterface(beInTheRangeOf, (id expectedLowerBound, id expectedUpperBound));
Expand Down
2 changes: 1 addition & 1 deletion Expecta/Matchers/EXPMatchers+beInstanceOf.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import "Expecta.h"
#import <Expecta/Expecta.h>

EXPMatcherInterface(beInstanceOf, (Class expected));
EXPMatcherInterface(beAnInstanceOf, (Class expected));
Expand Down
2 changes: 1 addition & 1 deletion Expecta/Matchers/EXPMatchers+beKindOf.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import "Expecta.h"
#import <Expecta/Expecta.h>

EXPMatcherInterface(beKindOf, (Class expected));
EXPMatcherInterface(beAKindOf, (Class expected));
2 changes: 1 addition & 1 deletion Expecta/Matchers/EXPMatchers+beLessThan.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import "Expecta.h"
#import <Expecta/Expecta.h>

EXPMatcherInterface(_beLessThan, (id expected));
EXPMatcherInterface(beLessThan, (id expected));
Expand Down
2 changes: 1 addition & 1 deletion Expecta/Matchers/EXPMatchers+beLessThanOrEqualTo.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import "Expecta.h"
#import <Expecta/Expecta.h>

EXPMatcherInterface(_beLessThanOrEqualTo, (id expected));
EXPMatcherInterface(beLessThanOrEqualTo, (id expected));
Expand Down
2 changes: 1 addition & 1 deletion Expecta/Matchers/EXPMatchers+beNil.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import "Expecta.h"
#import <Expecta/Expecta.h>

EXPMatcherInterface(beNil, (void));
EXPMatcherInterface(beNull, (void));
2 changes: 1 addition & 1 deletion Expecta/Matchers/EXPMatchers+beSubclassOf.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import "Expecta.h"
#import <Expecta/Expecta.h>

EXPMatcherInterface(beSubclassOf, (Class expected));
EXPMatcherInterface(beASubclassOf, (Class expected));
2 changes: 1 addition & 1 deletion Expecta/Matchers/EXPMatchers+beSupersetOf.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import "Expecta.h"
#import <Expecta/Expecta.h>

EXPMatcherInterface(beSupersetOf, (id subset));

2 changes: 1 addition & 1 deletion Expecta/Matchers/EXPMatchers+beTruthy.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#import "Expecta.h"
#import <Expecta/Expecta.h>

EXPMatcherInterface(beTruthy, (void));
2 changes: 1 addition & 1 deletion Expecta/Matchers/EXPMatchers+beginWith.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import "Expecta.h"
#import <Expecta/Expecta.h>

EXPMatcherInterface(beginWith, (id expected));
EXPMatcherInterface(startWith, (id expected));
2 changes: 1 addition & 1 deletion Expecta/Matchers/EXPMatchers+conformTo.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#import "Expecta.h"
#import <Expecta/Expecta.h>

EXPMatcherInterface(conformTo, (Protocol *expected));
2 changes: 1 addition & 1 deletion Expecta/Matchers/EXPMatchers+contain.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import "Expecta.h"
#import <Expecta/Expecta.h>

EXPMatcherInterface(_contain, (id expected));
EXPMatcherInterface(contain, (id expected)); // to aid code completion
Expand Down
2 changes: 1 addition & 1 deletion Expecta/Matchers/EXPMatchers+endWith.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#import "Expecta.h"
#import <Expecta/Expecta.h>

EXPMatcherInterface(endWith, (id expected));
2 changes: 1 addition & 1 deletion Expecta/Matchers/EXPMatchers+equal.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import "Expecta.h"
#import <Expecta/Expecta.h>

EXPMatcherInterface(_equal, (id expected));
EXPMatcherInterface(equal, (id expected)); // to aid code completion
Expand Down
2 changes: 1 addition & 1 deletion Expecta/Matchers/EXPMatchers+haveCountOf.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import "Expecta.h"
#import <Expecta/Expecta.h>

EXPMatcherInterface(haveCountOf, (NSUInteger expected));
EXPMatcherInterface(haveCount, (NSUInteger expected));
Expand Down
2 changes: 1 addition & 1 deletion Expecta/Matchers/EXPMatchers+match.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#import "Expecta.h"
#import <Expecta/Expecta.h>

EXPMatcherInterface(match, (NSString *expected));
2 changes: 1 addition & 1 deletion Expecta/Matchers/EXPMatchers+postNotification.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import "Expecta.h"
#import <Expecta/Expecta.h>

EXPMatcherInterface(postNotification, (id expectedNotification));
EXPMatcherInterface(notify, (id expectedNotification));
2 changes: 1 addition & 1 deletion Expecta/Matchers/EXPMatchers+raise.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#import "Expecta.h"
#import <Expecta/Expecta.h>

EXPMatcherInterface(raise, (NSString *expectedExceptionName));
#define raiseAny() raise(nil)
2 changes: 1 addition & 1 deletion Expecta/Matchers/EXPMatchers+raiseWithReason.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#import "Expecta.h"
#import <Expecta/Expecta.h>

EXPMatcherInterface(raiseWithReason, (NSString *expectedExceptionName, NSString *expectedReason));
2 changes: 1 addition & 1 deletion Expecta/Matchers/EXPMatchers+respondTo.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#import "Expecta.h"
#import <Expecta/Expecta.h>

EXPMatcherInterface(respondTo, (SEL expected));
Loading

0 comments on commit bb9f9c5

Please sign in to comment.