Commit graph

244 commits

Author SHA1 Message Date
Iain Buclaw
fd5facfe04 posix.mak: Enforce whitespace before opening parenthesis for version conditions 2018-09-22 16:57:24 +02:00
Basile Burg
db819575f1 Fix issue 11959 - Set private symbols declared in version(unittest) blocks 2018-08-26 10:22:11 +02:00
Sebastian Wilzbach
84b98fc3f0 Remove invalid Markdown backticks in std.{container,path,random}.d 2018-06-19 22:04:01 +02:00
Sebastian Wilzbach
c324714fde Remove a few cases of underscore escaping 2018-06-04 13:05:01 +02:00
The Dlang Bot
7ab0e8c4dc
Merge pull request #6274 from JackStouffer/issue18178
Fix Issue 18178 - std.path should be usable in @safe
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2018-05-10 16:56:21 +02:00
Jack Stouffer
f6e4416a72 Fix Issue 18178 - std.path should be usable in @safe 2018-05-08 08:32:09 -04:00
Jack Stouffer
c1399d34b0 Added examples to std.path 2018-04-26 11:55:07 -04:00
The Dlang Bot
e13e3889ac
Merge pull request #6435 from JackStouffer/input-range-link
Make references to input ranges a link to isInputRange
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2018-04-15 01:42:45 +02:00
Steven Schveighoffer
d4a35f09da More removal of version(unittest) 2018-04-13 12:20:02 -04:00
Jack Stouffer
e14f89e170 Make references to input ranges a link to isInputRange 2018-04-08 16:19:57 -04:00
Sebastian Wilzbach
42894784dd Markdownify Phobos
$(D word) -> `word`
2018-04-02 22:32:47 +02:00
Walter Bright
49216a2707 make buildNormalizedPath() @safe 2018-03-27 18:14:12 -07:00
Jack Stouffer
663b5b9278 Revert addition of StdUnittest 2018-02-20 13:32:32 -05:00
Jack Stouffer
18cbb29b04 Replaced version(unittest) blocks with version(StdUnittest) 2018-02-01 19:56:59 -05:00
Jonathan M Davis
8d158d3a1d Fix safety of withDefaultExtension for implicitly convertible types. 2018-01-27 21:02:49 -07:00
Jonathan M Davis
32e4e8ab13 Remove some unnecessary template constraints.
The public-facing functions already should protect these private
functions against getting bad input, and we might as well avoid making
the compiler do extra work.
2018-01-27 20:30:27 -07:00
Jonathan M Davis
39fa1a5532 Fix safety of withExtension for implicitly convertible types. 2018-01-27 20:30:27 -07:00
Jonathan M Davis
47b67275d9 Add missing template constraint on stripDrive. 2018-01-27 20:23:19 -07:00
Jonathan M Davis
879f6851ac Fix safety of stripExtension for implicitly convertible types. 2018-01-27 20:23:19 -07:00
Sebastian Wilzbach
70d3b892ff
Merge pull request #5410 from jmdavis/path
Fix safety issues with driveName, stripDrive, and rootName
2018-01-28 02:12:46 +01:00
Jonathan M Davis
d4a7e693d7 Fix safety of stripDrive for implicitly convertible types. 2018-01-27 17:15:54 -07:00
Jonathan M Davis
13240d7825 Fix safety of rootName for implicitly convertible types. 2018-01-27 17:15:54 -07:00
Jonathan M Davis
0af330d2de Fix safety of driveName for implicitly convertible types. 2018-01-27 17:15:54 -07:00
Lance Bachmeier
04dbe396b9
Update path.d 2018-01-26 16:33:55 -06:00
The Dlang Bot
f3189822ab
Merge pull request #5989 from wilzbach/static-foreach
Use static foreach in Phobos
merged-on-behalf-of: Andrei Alexandrescu <andralex@users.noreply.github.com>
2018-01-03 19:05:07 +01:00
Sebastian Wilzbach
7de3787876 Use static foreach in Phobos 2018-01-03 17:30:11 +01:00
Sebastian Wilzbach
9f492c1c2c @safeify more unittests 2018-01-03 05:44:04 +01:00
Thomas Mader
9add02ecbb Don't expect root home dir in unittest 2017-12-28 09:13:36 +01:00
Diederik de Groot
31ca73d58d
Port of phobos to DragonFlyBSD
Notes:
- FIXME message related to dragonfly malloc issue (issue reported on upstream dragonfly issue database)
2017-12-20 08:05:49 +01:00
Sebastian Wilzbach
df6365092a Replace body keyword with its replacement: do
Automatic replacement with

    sed -i "s/^\([ ]*\)body/\1do/" -i **/*.d
2017-11-20 15:33:52 +01: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
Walter Bright
75744e07f3 Merge pull request #5406 from jmdavis/path
Fix safety issues with baseName and dirName
2017-05-21 07:24:31 -07:00
Walter Bright
c0403e1527 path.d: add overflow checks 2017-05-20 13:07:08 -07:00
Jonathan M Davis
edc049d7dd Fix it so that using convertible types with baseName is @safe. 2017-05-20 09:16:07 -07:00
Jonathan M Davis
cc8bd1cdfc Fix it so that dirName does not use isConvertibleToString. 2017-05-20 08:43:35 -07:00
Sebastian Wilzbach
b95264241f [BOOKTABLES]: Add BOOKTABLE to std.path 2017-03-01 08:27:58 +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
Jack Stouffer
da65768451 Add checks for infinite ranges in many range function signitures 2017-02-14 21:59:12 -05:00
Sebastian Wilzbach
cc7f125ed1 Add missing imports to public unittests 2016-12-15 23:23:35 +01:00
Basile Burg
9d1fc0750b [TRIVIAL, DDOC] fix issue 16624 - setExtension ddoc comment is strangely formated 2016-11-03 10:09:46 +01:00
Sean Enck
335beff82d The word "tranforms" is a typo, should be "transforms" (especially painful when searching for the word "transforms") 2016-10-15 11:12:28 -04:00
Jack Stouffer
8053150b64 Remove package wide std.algorithm imports from std.path 2016-09-16 10:33:21 +01:00
Walter Bright
6c379491db std.path: make .ptr access trusted 2016-07-23 17:58:13 -07:00
Atila Neves
5ed8ffc05b Add @system and @safe to std.path unit tests 2016-07-08 16:24:32 +02:00
Jack Stouffer
bc0276ff16 Fixed local imports in std.path 2016-07-01 09:42:41 -04:00