Commit graph

71 commits

Author SHA1 Message Date
Andrei Alexandrescu
1a08d2a8d6 Convert section labels to title case 2017-07-12 15:19:57 -04:00
anonymous
29c7f36df5 fix issue 17519 - RedBlackTree doesn't like const/immutable elements 2017-06-18 11:35:00 +03:00
Vladimir Panteleev
d0b9555a06
Revert "Sort selective imports"
This reverts commit 998ad51fd7.
2017-06-13 17:51:52 +00: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
Jack Stouffer
e554764c01 Merge pull request #5216 from wilzbach/unluckily-phobos
Replace LUCKY links with actual links
2017-03-01 15:17:19 -05:00
Sebastian Wilzbach
3817d6f37d Check public functions for public examples (#4998)
Check public functions for public examples
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2017-03-01 15:49:15 +01:00
Sebastian Wilzbach
d548e8830a Replace LUCKY links with actual links 2017-02-28 23:46:54 +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
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
87dec58a41 DStyle: Constraints on declarations should have the same indentation level 2017-02-17 07:36:23 +01:00
Basile Burg
17cea5abdc
style fix - remove wrong usages of the final attribute 2017-01-16 21:00:13 +01:00
Tomoya Tanjo
242a4959d4 Make std.container.rbtree.RedBlackTree._add @safe 2016-11-21 06:22:45 +09:00
Jack Stouffer
f82611ad19 Remove package wide std.algorithm imports from std/container/rbtree.d 2016-09-20 11:01:28 +01:00
Jack Stouffer
e51a044c19 Fixed local imports in std.container.rbtree 2016-06-30 17:54:13 -04: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
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
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
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
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
89a2dd5f11 use mref macro instead of link2 2016-05-16 03:30:08 +03:00
Sebastian Wilzbach
484f7bfbe0 enforce: whitespace after catch 2016-05-14 15:28:43 +03:00
Jack Stouffer
13e7176b8f Fixed long lines in std/container/rbtree.d 2016-05-10 20:51:39 -04:00
Sebastian Wilzbach
5a8988c149 style fix: add space after for operator 2016-04-27 02:04:02 +03:00
Sebastian Wilzbach
3d67cd228c style fix: space between operators 2016-04-26 22:26:20 +03:00
Sebastian Wilzbach
e2ce2b36f8 add documentation example for RBTree 2016-03-11 00:25:03 +02:00
Benjamin L. Merritt
5f08c058ab Changed "Examples:" in Ddoc to "Example:" 2015-12-17 18:32:41 -08:00
k-hara
e864e53adc fix property enforcement 2015-12-04 15:42:53 +09:00
Dragos Carp
d698887729 Remove obsolete TypeTuple references
Replace following names:
std.typetuple      -> std.meta
TypeTuple          -> AliasSeq
ParameterTypeTuple -> Parameters
FieldTypeTuple     -> Fields

std.traits requires more work than search/replace and is left unchanged.
2015-10-13 20:37:44 +02:00
Jack Stouffer
0f05183f5c implemented issue 5945 2015-09-03 08:43:06 -04:00
Maksim Klimov
a29552563d Constness of opSlice, upperBound, lowerBound and equalRange 2015-08-09 14:41:48 -07:00
Brian Schott
3f82c9711d Document the return value of stableInsert 2015-05-20 03:00:59 -07:00
Walter Bright
d9a9826e55 Revert "Introducing std.meta package" 2015-05-06 14:36:45 -07:00
Dicebot
7970fcc748 Don't use fqn for any/all
In most cases it resolves unambiguosly
2015-05-05 22:22:11 +03:00
Dicebot
1c9ae027ef Rename old std.typetuple symbols inside Phobos
staticIndexOf -> indexOf
allSatisfy -> all
anySatisfy -> any
staticMap -> Map
2015-05-05 22:22:11 +03:00
Dicebot
73f773838d import std.typetuple -> import std.meta 2015-05-05 22:22:10 +03:00
anonymous
e837b2ad94 inout leftmost, rightmost, next, and prev 2015-04-23 23:23:45 +02:00
anonymous
2065983d03 const RedBlackTree.opBinaryRight
Fixes Issue 12702.
2015-04-23 22:36:57 +02:00
Exi
d0592e9ccb removed unnecessary ref eq check 2015-04-20 09:26:34 -07:00
Kevin
504847cddf updated doc, added reference equality check in opEquals 2015-04-18 16:01:10 -07:00
rsw0x
3c78fe388c Mark RBTree.length as const
add unit tests for constness
2015-04-01 10:16:30 -04:00
Andrei Alexandrescu
11b32b56e5 Fix links 2015-02-16 13:39:18 -08:00