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

Diff for: Algorithm.xcodeproj/project.pbxproj

+13-1
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;

Diff for: Algorithm.xcodeproj/xcshareddata/xcschemes/Algorithm iOS.xcscheme

+1-1
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"

Diff for: Algorithm.xcodeproj/xcshareddata/xcschemes/Algorithm macOS.xcscheme

+1-1
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"

Diff for: LICENSE.md

+1-1
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

Diff for: README.md

+1-1
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

Diff for: Sources/Algorithm+Array.swift

+3-3
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

Diff for: Sources/Algorithm+Set.swift

+1-1
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

Diff for: Sources/Algorithm.h

+1-1
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

Diff for: Sources/Deque.swift

+1-1
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

Diff for: Sources/DoublyLinkedList.swift

+1-1
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

Diff for: Sources/DoublyLinkedListNode.swift

+1-1
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

Diff for: Sources/LICENSE

+1-1
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

Diff for: Sources/Probable.swift

+1-1
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

Diff for: Sources/Queue.swift

+1-1
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

Diff for: Sources/RedBlackNode.swift

+1-1
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

Diff for: Sources/RedBlackTree.swift

+1-1
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

Diff for: Sources/SortedDictionary.swift

+1-1
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

Diff for: Sources/SortedMultiDictionary.swift

+1-1
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

Diff for: Sources/SortedMultiSet.swift

+1-1
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

Diff for: Sources/SortedSet.swift

+1-1
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

Diff for: Sources/Stack.swift

+1-1
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

Diff for: Tests/DequeTests.swift

+1-1
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

Diff for: Tests/DoublyLinkedListTests.swift

+1-1
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

Diff for: Tests/ProbabilityTests.swift

+1-1
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

Diff for: Tests/QueueTests.swift

+1-1
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

Diff for: Tests/RedBlackTreeTests.swift

+1-1
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

Diff for: Tests/SampleTests.swift

+1-1
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

Diff for: Tests/SortedDictionaryTests.swift

+1-1
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

Diff for: Tests/SortedMultiDictionaryTests.swift

+1-1
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

Diff for: Tests/SortedMultiSetTests.swift

+1-1
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

Diff for: Tests/SortedSetTest.swift

+1-1
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

Diff for: Tests/StackTests.swift

+1-1
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy