Commit graph

170 commits

Author SHA1 Message Date
Sebastian Wilzbach
a36cec8686 DScanner: automatially set all unattributed unittests to @safe or @system 2017-02-22 05:42:04 +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
Andrei Alexandrescu
2a97fb4234 Merge pull request #5036 from JackStouffer/nogc-Array
Fix Issue 17153 – Make std.container.array @nogc
2017-02-20 16:00:06 -05:00
Jack Stouffer
ccff296d70 Removed some GC allocations from std.container.array 2017-02-20 14:44:28 -05:00
Sebastian Wilzbach
87dec58a41 DStyle: Constraints on declarations should have the same indentation level 2017-02-17 07:36:23 +01:00
Bastiaan Veelo
e1c55df579 [doc] Fix argument naming. 2017-02-09 15:35:08 +01:00
Basile Burg
17cea5abdc
style fix - remove wrong usages of the final attribute 2017-01-16 21:00:13 +01:00
somzzz
682536d586 fix issue 155421 2016-12-08 13:43:56 -08:00
somzzz
b339da57ed unittest for dup present and missing in Store 2016-12-06 17:00:41 -08:00
somzzz
4c708c7566 comment 2016-12-06 10:17:46 -08:00
somzzz
c3714ea01e unittest 2016-12-06 02:04:57 -08:00
somzzz
192b47aadb allow BinaryHeap.dup only on Store.dup present 2016-12-02 12:37:42 -08:00
somzzz
fba056a8df fix issue 13314 2016-12-02 04:40:14 -08:00
Tomoya Tanjo
242a4959d4 Make std.container.rbtree.RedBlackTree._add @safe 2016-11-21 06:22:45 +09:00
Per Nordlöw
ad5537d5c9 Restrict making of containers to non-infinite ranges 2016-10-13 16:33:14 +02:00
Jack Stouffer
67d44e4cdc Remove package wide std.algorithm imports from Phobos 2016-09-22 08:36:14 +01:00
Jack Stouffer
f82611ad19 Remove package wide std.algorithm imports from std/container/rbtree.d 2016-09-20 11:01:28 +01:00
Andrei Alexandrescu
6ca3017b91 Merge pull request #4359 from wilzbach/fix_16072
fix issue 16072 - container.binaryheap should be extendable for arrays
2016-09-16 12:43:49 -04:00
Steven Schveighoffer
75627ddb6b I'm not the author of most of these, just RBTree. 2016-09-13 09:25:16 -04:00
Jonathan M Davis
5c2be71132 Move deprecations along. 2016-09-07 00:15:29 -07:00
Walter Bright
0c8fd57c66 container.array.sorting.d: add overflow checks 2016-08-05 01:02:52 -07:00
Sebastian Wilzbach
539d860380 Fix issue 16331 - std.container.array should allow uncomparable values 2016-07-28 17:24:46 +02:00
Jack Stouffer
f9397c70a1 Removed package wide std.algorithm imports from std.container.util 2016-07-18 09:46:03 -04:00
Jack Stouffer
b62801d880 Removed package wide std.algorithm imports from std.container.slist 2016-07-18 09:44:59 -04:00
Jack Stouffer
dc8e929f85 Removed package wide std.algorithm imports from std.container.array 2016-07-18 09:40:20 -04:00
Jack Stouffer
50476873b0 Removed package wide std.algorithm imports from std.container.array/binaryheap 2016-07-07 09:46:02 -04:00
Jack Stouffer
aba30c6c40 Fixed local imports in std.container.util 2016-06-30 17:54:13 -04:00
Jack Stouffer
565b45ed0d Fixed local imports in std.container.slist 2016-06-30 17:54:13 -04:00
Jack Stouffer
e51a044c19 Fixed local imports in std.container.rbtree 2016-06-30 17:54:13 -04:00
Jack Stouffer
fb12e930c0 Fixed local imports in std.container.array 2016-06-30 17:54:13 -04:00
Sebastian Wilzbach
71f01c961d fix issue 16072 - container.binaryheap should be extendable for arrays 2016-06-19 18:05:01 +02:00
Martin Nowak
f24567b1ed fix spacing after if 2016-06-18 16:58:22 +02:00
Andrei Alexandrescu
81d132f39a Merge pull request #4381 from MartinNowak/merge_stable
Merge remote-tracking branch 'upstream/stable' into merge_stable
2016-06-18 08:31:42 -04:00
Sebastian Wilzbach
ec47ac4224 Remove the WEB macro in favor of HTTP
replacement: sed 's/\$(WEB/\$(HTTP/g' -i **/*.d
2016-06-16 00:14:51 +02:00
Robert Schadek
1e640852a9 Merge pull request #4331 from wilzbach/example_binaryheap
add top-level example for binary heap
2016-06-02 00:11:54 +02:00
Dmitry Olshansky
ca292ff78c Merge pull request #4357 from wilzbach/table_format_container
fix table formatting in container
2016-06-01 15:29:35 +04:00
Sebastian Wilzbach
1d34a121e9 apply all-man braces in Phobos
// find common cases
sed -E "s/^(\s*)((if|static if|for|foreach|foreach_reverse|while|unittest|switch|else|version).*)\s*\{$/\1\2\n\1{/" -i **/*.d
// catch else-if
sed -E "s/^(\s*)} (else static if| if|else if|else)(.*)\s*\{$/\1}\n\1\2\3\n\1{/" -i **/*.d
// remove created trailing whitespace
sed -i 's/[ \t]*$//' **/*.d
2016-05-31 13:07:53 +02:00
Sebastian Wilzbach
a1b3af1ca1 fix table formatting in container 2016-05-30 21:37:47 +02:00
Martin Nowak
82a147765a Merge remote-tracking branch 'upstream/stable' into merge_stable 2016-05-29 23:56:51 +02:00
Sebastian Wilzbach
2dfbc51f17 Standardize whitespace after imports
Unified with:

sed -E "s/import\s*([^ ]+)\s*:\s*(.*(,|;))/import \1 : \2/" -i **/*.d
2016-05-29 22:09:56 +02:00
anonymous
641d6ff8d7 clean up remaining XREFs (manual)
Found by: grep -r '$(XREF'

std.experimental.allocator has a custom XREF2. Leaving that as is for now.
2016-05-27 21:40:46 +02:00
anonymous
d648f9320e XREF_PACK -> REF (sed)
Done by:

from='\$\(XREF_PACK\s+([^(),]*),\s*([^(),]*),\s*([^(),]*)\)'
to='$(REF \3, std,\1,\2)'
(find . -type f -name "*.d" -print0; \
    find . -type f -name "*.dd" -print0) | \
xargs -0 sed -i -r "s/$from/$to/g"
2016-05-27 21:32:46 +02:00
anonymous
764caefa36 XREF -> REF (sed)
Done by:

(find . -type f -name "*.d" -print0; \
    find . -type f -name "*.dd" -print0) | \
xargs -0 sed -i -r \
    's/\$\(XREF\s+([^(),]*),\s*([^(),]*)\)/$(REF \2, std,\1)/g'
2016-05-27 21:32:46 +02:00
Steven Schveighoffer
bf1dde7ac7 Fix issue 15941 -- rbtree no longer supports classes 2016-05-27 08:19:08 -04:00
Sebastian Wilzbach
357e02a4a9 remove unused TEXTWITHCOMMAS macro 2016-05-27 05:52:27 +02:00
Sebastian Wilzbach
18b8abf60a remove the deprecated wiki macros 2016-05-27 05:52:23 +02:00
Sebastian Wilzbach
5f7a4ca7c5 add top-level example for binary heap 2016-05-25 16:02:48 +02:00
Robert Schadek
2f124dee5d Merge pull request #4330 from wilzbach/example_array
add module example to std.container.array
2016-05-24 16:59:49 +02:00
Vladimir Panteleev
38a6370788 Merge pull request #4303 from wilzbach/mref_phobos
use mref macro instead of link2
2016-05-24 03:12:08 +03:00
Sebastian Wilzbach
66099f1640 add module example to std.container.array 2016-05-23 18:22:34 +02:00