Commit graph

317 commits

Author SHA1 Message Date
Sebastian Wilzbach
625dfeeb87 Merge pull request #4827 from andralex/length
Restrict length
2017-06-16 19:21:20 +02:00
Vladimir Panteleev
d0b9555a06
Revert "Sort selective imports"
This reverts commit 998ad51fd7.
2017-06-13 17:51:52 +00:00
Andrei Alexandrescu
72f3950843 Fix Issue 16566 - hasLength should enforce that length has type size_t 2017-06-13 07:21:55 +02:00
Sebastian Wilzbach
998ad51fd7 Sort selective imports 2017-06-12 08:12:09 +02:00
Sebastian Wilzbach
61717ecc7d Sort imports 2017-06-12 07:54:38 +02:00
The Dlang Bot
5a96d04021 Merge pull request #5475 from wilzbach/fix-circle
Fix CircleCi: actually run the style targets
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2017-06-12 05:26:02 +02:00
Sebastian Wilzbach
3afbd28c43 Fix Dscanner errors 2017-06-12 04:24:41 +02:00
Sebastian Wilzbach
c5fde07c13 Fix Ddoc warnings 2017-06-12 04:24:41 +02:00
Sebastian Wilzbach
d686929385 Style fix: use space between a .. b 2017-06-12 04:24:41 +02:00
Sebastian Wilzbach
052fcda917 Style fix: no space after assert( 2017-06-12 04:24:41 +02:00
Andrei Alexandrescu
994dbce134 Eliminate redundant __gshared, immutable data is shared already 2017-06-11 15:13:31 -04:00
H. S. Teoh
c2fbe42a02 Fix wrong parens in std.range ddoc. 2017-06-08 09:33:25 -07:00
The Dlang Bot
9be83b1220 Merge pull request #5398 from JackStouffer/range-spelling
Fixed spelling mistakes in std/range/package.d
merged-on-behalf-of: Vladimir Panteleev <github@thecybershadow.net>
2017-05-17 04:10:50 +02:00
The Dlang Bot
138d9b9128 Merge pull request #5397 from andralex/15720
Fix Issue 15720 - iota(long.max, long.min, step) does not work properly
merged-on-behalf-of: Vladimir Panteleev <github@thecybershadow.net>
2017-05-16 22:13:29 +02:00
Jack Stouffer
5ada634e4f Fixed spelling mistakes in std.range 2017-05-16 15:54:17 -04:00
Jack Stouffer
a240041876 Rename slideWithLessElements to withFewerElements 2017-05-16 14:12:12 -04:00
Jack Stouffer
41578f734e Rename slides to slide 2017-05-16 14:12:12 -04:00
Jack Stouffer
cc44bc4e51 Small clean-up for PR #4027 2017-05-16 14:12:10 -04:00
Andrei Alexandrescu
49ee158a9e Fix Issue 15720 - iota(long.max, long.min, step) does not work properly 2017-05-16 13:59:14 -04:00
Jack Stouffer
f92adce388 Merge branch 'master' into pairwise 2017-05-15 09:37:16 -04:00
Andrei Alexandrescu
74514bc7e5 Improve behavior on overflow 2017-05-14 12:19:40 -04:00
Andrei Alexandrescu
6ff81f1405 Fix issue 16246 - cannot call iota with 3 [u]bytes or 3 [u]shorts 2017-05-14 08:19:20 -04:00
Sebastian Wilzbach
54671af217 std.range: Add missing methods to the booktable, disable the quickindex and improve the docs 2017-05-05 12:06:31 +02:00
The Dlang Bot
2f1de8aa72 Merge pull request #5297 from dukc/cycleOverloads
Simplified overloads of std.range.cycle.
merged-on-behalf-of: H. S. Teoh <quickfur@users.noreply.github.com>
2017-03-30 20:48:14 +02:00
dukc
94b31ce55a It now still accepts inputRanges when they're infinite. 2017-03-28 07:54:44 +03:00
Superstar64
250d972364 changed front declaration to an alias 2017-03-20 23:06:31 -04:00
dukc
d37b8ad6d8 Simplified overloads of std.range.cycle. 2017-03-20 19:34:37 +02:00
Superstar64
6f01592b21 make InputAssignable work with isInputRange 2017-03-09 22:20:43 -05:00
Sebastian Wilzbach
090d5164e8 Fix links from $(LREF $(D ...)) -> $(LREF ...)
sed -E 's/[$]\(D [$]\(LREF (.*)\)\)/$(LREF \1)/' -i **/*.d
2017-03-05 08:11:29 +01:00
Jack Stouffer
9ab1fc442a Merge pull request #5211 from wilzbach/std-range
std.range: remove quick index and fix docs (part 2)
2017-03-01 15:46:48 -05:00
Sebastian Wilzbach
64760be50f std.range: remove quick index and fix docs (part 2) 2017-03-01 03:59:38 +01:00
Sebastian Wilzbach
d548e8830a Replace LUCKY links with actual links 2017-02-28 23:46:54 +01:00
Andrei Alexandrescu
a36113e5ba Merge pull request #5160 from wilzbach/dscanner-check-for-void-auto-return
DScanner: check for auto function with void return statement
2017-02-28 13:28:42 -05:00
Sebastian Wilzbach
70ebcb8405 reorder CircleCi setup to init DMD before style checking 2017-02-26 09:33:14 +01:00
Sebastian Wilzbach
b8a88558a9 Fix Ddoc warnings 2017-02-26 09:33:14 +01:00
Andrei Alexandrescu
30724e67d9 Merge pull request #5166 from wilzbach/dscanner-unittest-safe-or-system
Dscanner: let unittest be @safe or @system
2017-02-22 14:44:08 -05:00
Sebastian Wilzbach
c8cd04d27a DScanner: check for auto function with void return statement 2017-02-22 05:51:14 +01:00
Sebastian Wilzbach
a36cec8686 DScanner: automatially set all unattributed unittests to @safe or @system 2017-02-22 05:42:04 +01:00
Sebastian Wilzbach
425ab667a3 Automatically set the range style from a..b -> a .. b
Commands:

sed -E "s/([[:alnum:]])[.][.]([[:alnum:]])/\1 .. \2/g" -i **/*.d
sed -E "s/([[:alnum:]])[.][.] ([[:alnum:]])/\1 .. \2/g" -i **/*.d
sed -E "s/([[:alnum:]]) [.][.]([[:alnum:]])/\1 .. \2/g" -i **/*.d
2017-02-22 05:37:31 +01:00
Sebastian Wilzbach
805c720595 Unify Phobos by ensuring there's always a space after cast(...)
Command:

sed -E 's/([^"])cast\(([^)]*?)\)([[:alnum:]])/\1cast(\2) \3/g' -i **/*.d
2017-02-21 16:40:20 +01:00
Sebastian Wilzbach
5521541032 Unify assert style to have no spaces between the first brace
Application of:

sed -E "s/assert +\(/assert(/" -i **/*.d
2017-02-21 15:27:15 +01:00
Sebastian Wilzbach
87dec58a41 DStyle: Constraints on declarations should have the same indentation level 2017-02-17 07:36:23 +01:00
Sebastian Wilzbach
db2bf8fcfb Fix issue 6621 - add sliding window iterator 2017-02-17 01:17:36 +01:00
Sebastian Wilzbach
8d5b051235 Provide reference to other common names 2017-02-16 02:57:51 +01:00
Nick Treleaven
759da8eec0 swapRanges: Remove redundant constraint tests
hasSwappableElements already tests for isInputRange.
Also fix hasSwappableElements docs.
2017-02-15 17:21:21 +00:00
RazvanN7
41c2d14658 Fix Issue 16442 - FrontTransversal fails with empty ranges 2017-02-06 16:48:20 +02:00
dukc
a5208075c6 Fixed a bug: takeOne with unslicabe ranges did not pop its source range when popped. This made it inconsistent with take and takeExactly when using reference ranges. Also corrected its documentation. 2017-01-26 23:09:38 +02:00
Eduard Staniloiu
095e3277b8 Enable opIndexAssign only for ranges that have assignable elements 2017-01-13 23:17:58 +02:00
Eduard Staniloiu
46a3353ad1 Fix opSlice index error. Add unittests and changelog entry 2017-01-13 21:22:54 +02:00
Martin Nowak
9de40a6b6c remove bitwise documentation
- still unresolved issues before release
2017-01-06 22:37:54 +01:00