Skip to content

Commit bea7486

Browse files
author
Daniel Dahan
committed
copyright update
1 parent 57e0e84 commit bea7486

32 files changed

+46
-34
lines changed

Algorithm.xcodeproj/project.pbxproj

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@
372372
isa = PBXProject;
373373
attributes = {
374374
LastSwiftUpdateCheck = 0720;
375-
LastUpgradeCheck = 0800;
375+
LastUpgradeCheck = 0920;
376376
ORGANIZATIONNAME = "CosmicMind, Inc.";
377377
TargetAttributes = {
378378
65744C9B1C554BA50011C977 = {
@@ -547,14 +547,20 @@
547547
CLANG_CXX_LIBRARY = "libc++";
548548
CLANG_ENABLE_MODULES = YES;
549549
CLANG_ENABLE_OBJC_ARC = YES;
550+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
550551
CLANG_WARN_BOOL_CONVERSION = YES;
552+
CLANG_WARN_COMMA = YES;
551553
CLANG_WARN_CONSTANT_CONVERSION = YES;
552554
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
553555
CLANG_WARN_EMPTY_BODY = YES;
554556
CLANG_WARN_ENUM_CONVERSION = YES;
555557
CLANG_WARN_INFINITE_RECURSION = YES;
556558
CLANG_WARN_INT_CONVERSION = YES;
559+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
560+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
557561
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
562+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
563+
CLANG_WARN_STRICT_PROTOTYPES = YES;
558564
CLANG_WARN_SUSPICIOUS_MOVE = YES;
559565
CLANG_WARN_UNREACHABLE_CODE = YES;
560566
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
@@ -600,14 +606,20 @@
600606
CLANG_CXX_LIBRARY = "libc++";
601607
CLANG_ENABLE_MODULES = YES;
602608
CLANG_ENABLE_OBJC_ARC = YES;
609+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
603610
CLANG_WARN_BOOL_CONVERSION = YES;
611+
CLANG_WARN_COMMA = YES;
604612
CLANG_WARN_CONSTANT_CONVERSION = YES;
605613
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
606614
CLANG_WARN_EMPTY_BODY = YES;
607615
CLANG_WARN_ENUM_CONVERSION = YES;
608616
CLANG_WARN_INFINITE_RECURSION = YES;
609617
CLANG_WARN_INT_CONVERSION = YES;
618+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
619+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
610620
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
621+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
622+
CLANG_WARN_STRICT_PROTOTYPES = YES;
611623
CLANG_WARN_SUSPICIOUS_MOVE = YES;
612624
CLANG_WARN_UNREACHABLE_CODE = YES;
613625
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;

Algorithm.xcodeproj/xcshareddata/xcschemes/Algorithm iOS.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0900"
3+
LastUpgradeVersion = "0920"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

Algorithm.xcodeproj/xcshareddata/xcschemes/Algorithm macOS.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0900"
3+
LastUpgradeVersion = "0920"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (C) 2015 - 2017, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.com>. All rights reserved.
1+
Copyright (C) 2015 - 2018, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.com>. All rights reserved.
22

33
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
44

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ for student in students {
300300

301301
## License
302302

303-
Copyright (C) 2015 - 2017, CosmicMind, Inc. <http://cosmicmind.com>. All rights reserved.
303+
Copyright (C) 2015 - 2018, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.com>. All rights reserved.
304304

305305
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
306306

Sources/Algorithm+Array.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2015 - 2017, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.com>.
2+
* Copyright (C) 2015 - 2018, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.com>.
33
* All rights reserved.
44
*
55
* Redistribution and use in source and binary forms, with or without
@@ -75,7 +75,7 @@ extension Array where Element: Equatable {
7575
- Returns: An Int.
7676
*/
7777
public func count(of elements: [Element]) -> Int {
78-
78+
7979
var c = 0
8080
for e in elements {
8181
for x in self where e == x {
@@ -119,7 +119,7 @@ extension Array where Element: Equatable {
119119
c += 1
120120
}
121121
}
122-
122+
123123
return Double(c) / Double(count)
124124
}
125125

Sources/Algorithm+Set.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2015 - 2017, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.com>.
2+
* Copyright (C) 2015 - 2018, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.com>.
33
* All rights reserved.
44
*
55
* Redistribution and use in source and binary forms, with or without

Sources/Algorithm.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2015 - 2017, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.com>.
2+
* Copyright (C) 2015 - 2018, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.com>.
33
* All rights reserved.
44
*
55
* Redistribution and use in source and binary forms, with or without

Sources/Deque.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2015 - 2017, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.com>.
2+
* Copyright (C) 2015 - 2018, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.com>.
33
* All rights reserved.
44
*
55
* Redistribution and use in source and binary forms, with or without

Sources/DoublyLinkedList.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2015 - 2017, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.com>.
2+
* Copyright (C) 2015 - 2018, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.com>.
33
* All rights reserved.
44
*
55
* Redistribution and use in source and binary forms, with or without

Sources/DoublyLinkedListNode.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2015 - 2017, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.com>.
2+
* Copyright (C) 2015 - 2018, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.com>.
33
* All rights reserved.
44
*
55
* Redistribution and use in source and binary forms, with or without

Sources/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (C) 2015 - 2017, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.com>. All rights reserved.
1+
Copyright (C) 2015 - 2018, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.com>. All rights reserved.
22

33
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
44

Sources/Probable.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2015 - 2017, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.com>.
2+
* Copyright (C) 2015 - 2018, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.com>.
33
* All rights reserved.
44
*
55
* Redistribution and use in source and binary forms, with or without

Sources/Queue.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2015 - 2017, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.com>.
2+
* Copyright (C) 2015 - 2018, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.com>.
33
* All rights reserved.
44
*
55
* Redistribution and use in source and binary forms, with or without

Sources/RedBlackNode.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2015 - 2017, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.com>.
2+
* Copyright (C) 2015 - 2018, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.com>.
33
* All rights reserved.
44
*
55
* Redistribution and use in source and binary forms, with or without

Sources/RedBlackTree.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2015 - 2017, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.com>.
2+
* Copyright (C) 2015 - 2018, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.com>.
33
* All rights reserved.
44
*
55
* Redistribution and use in source and binary forms, with or without

Sources/SortedDictionary.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2015 - 2017, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.com>.
2+
* Copyright (C) 2015 - 2018, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.com>.
33
* All rights reserved.
44
*
55
* Redistribution and use in source and binary forms, with or without

Sources/SortedMultiDictionary.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2015 - 2017, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.com>.
2+
* Copyright (C) 2015 - 2018, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.com>.
33
* All rights reserved.
44
*
55
* Redistribution and use in source and binary forms, with or without

Sources/SortedMultiSet.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2015 - 2017, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.com>.
2+
* Copyright (C) 2015 - 2018, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.com>.
33
* All rights reserved.
44
*
55
* Redistribution and use in source and binary forms, with or without

Sources/SortedSet.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2015 - 2017, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.com>.
2+
* Copyright (C) 2015 - 2018, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.com>.
33
* All rights reserved.
44
*
55
* Redistribution and use in source and binary forms, with or without

Sources/Stack.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2015 - 2017, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.com>.
2+
* Copyright (C) 2015 - 2018, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.com>.
33
* All rights reserved.
44
*
55
* Redistribution and use in source and binary forms, with or without

Tests/DequeTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2015 - 2017, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.com>.
2+
* Copyright (C) 2015 - 2018, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.com>.
33
* All rights reserved.
44
*
55
* Redistribution and use in source and binary forms, with or without

Tests/DoublyLinkedListTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2015 - 2017, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.com>.
2+
* Copyright (C) 2015 - 2018, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.com>.
33
* All rights reserved.
44
*
55
* Redistribution and use in source and binary forms, with or without

Tests/ProbabilityTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2015 - 2017, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.com>.
2+
* Copyright (C) 2015 - 2018, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.com>.
33
* All rights reserved.
44
*
55
* Redistribution and use in source and binary forms, with or without

Tests/QueueTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2015 - 2017, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.com>.
2+
* Copyright (C) 2015 - 2018, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.com>.
33
* All rights reserved.
44
*
55
* Redistribution and use in source and binary forms, with or without

Tests/RedBlackTreeTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2015 - 2017, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.com>.
2+
* Copyright (C) 2015 - 2018, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.com>.
33
* All rights reserved.
44
*
55
* Redistribution and use in source and binary forms, with or without

Tests/SampleTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2015 - 2017, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.com>.
2+
* Copyright (C) 2015 - 2018, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.com>.
33
* All rights reserved.
44
*
55
* Redistribution and use in source and binary forms, with or without

Tests/SortedDictionaryTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2015 - 2017, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.com>.
2+
* Copyright (C) 2015 - 2018, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.com>.
33
* All rights reserved.
44
*
55
* Redistribution and use in source and binary forms, with or without

Tests/SortedMultiDictionaryTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2015 - 2017, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.com>.
2+
* Copyright (C) 2015 - 2018, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.com>.
33
* All rights reserved.
44
*
55
* Redistribution and use in source and binary forms, with or without

Tests/SortedMultiSetTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2015 - 2017, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.com>.
2+
* Copyright (C) 2015 - 2018, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.com>.
33
* All rights reserved.
44
*
55
* Redistribution and use in source and binary forms, with or without

Tests/SortedSetTest.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2015 - 2017, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.com>.
2+
* Copyright (C) 2015 - 2018, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.com>.
33
* All rights reserved.
44
*
55
* Redistribution and use in source and binary forms, with or without

Tests/StackTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2015 - 2017, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.com>.
2+
* Copyright (C) 2015 - 2018, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.com>.
33
* All rights reserved.
44
*
55
* Redistribution and use in source and binary forms, with or without

0 commit comments

Comments
 (0)