Commit graph

147 commits

Author SHA1 Message Date
Q. F. Schroll
fafe26f4e6 AA version of assumeUnique documented 2017-03-15 16:40:58 +01:00
Sebastian Wilzbach
feeae9d761 [BOOKTABLES]: Add BOOKTABLE to std.exception 2017-03-01 08:15:35 +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
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
Tomer Filiba
66a90c5ca7 ErrnoException: add a ctor overload that takes errno as an argument
ErrnoException used to take the global errno variable; the overloaded ctor allows one to provide a custom errno
(e.g., one that's been stored in a variable, or asynchronous operations).
Add unittests to the new ErrnoException ctor
2017-02-14 10:56:36 +02:00
Eduard Staniloiu
3d98191ce9 Fix issue 16970 - Fix deprecations and warnings when compiling Phobos 2016-12-27 15:57:20 +02:00
Sebastian Wilzbach
cc7f125ed1 Add missing imports to public unittests 2016-12-15 23:23:35 +01:00
Jack Stouffer
67d44e4cdc Remove package wide std.algorithm imports from Phobos 2016-09-22 08:36:14 +01:00
Jonathan M Davis
5c2be71132 Move deprecations along. 2016-09-07 00:15:29 -07:00
Walter Bright
5f2178c0ef remove unsafe use of .ptr in std.exception 2016-07-24 13:27:05 -07:00
Atila Neves
c4afb8774b Add @system and @safe to std.exception unit tests 2016-07-01 19:15:48 +02:00
Jack Stouffer
da603ca178 Removed global core.stdc.errorno import in std.exception 2016-06-27 18:55:55 -04:00
Jack Stouffer
02678d3d3c Removed global core.stdc.string import in std.exception 2016-06-27 18:55:25 -04:00
Jack Stouffer
07e5f61f07 Removed global std.range import in std.exception 2016-06-27 08:47:17 -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
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
Sebastian Wilzbach
18b8abf60a remove the deprecated wiki macros 2016-05-27 05:52:23 +02:00
Sebastian Wilzbach
484f7bfbe0 enforce: whitespace after catch 2016-05-14 15:28:43 +03:00
Jack Stouffer
6fae385f5f Fixed long lines in std/exception.d 2016-05-10 20:51:39 -04:00
Jonathan M Davis
43227b12c4 Move some deprecations along. 2016-05-05 12:44:06 +02:00
Shriramana Sharma
8ddd871779 Add basicExceptionCtors mixin 2016-01-17 10:39:37 +05:30
Benjamin L. Merritt
5f08c058ab Changed "Examples:" in Ddoc to "Example:" 2015-12-17 18:32:41 -08:00
Jonathan M Davis
d34164a2ea Move some deprecations along. 2015-11-26 00:28:38 -08:00
AndrejMitrovic
48701fcd1f Merge pull request #3624 from quickfur/enforce_doc2
[dox] Revise confusing wording of "if !value is false" in std.exception.enforce
2015-10-19 23:18:22 +02: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
H. S. Teoh
8623ba3285 Revise confusing wording of "if !value is false".
Improve wording.
2015-09-02 09:50:26 -07:00
Dmitry Olshansky
5829606b34 Merge pull request #3597 from quickfur/pointsTo
[dox] Improve docs for std.exception.{does,may}PointTo
2015-09-02 10:32:07 +03:00
Dmitry Olshansky
535db5ea02 Merge pull request #3602 from jmdavis/deprecations
Move along some of the deprecations.
2015-08-31 10:24:09 +03:00
H. S. Teoh
9fa2cac3fc Fix missing ddoc'd unittests for {does,may}PointTo.
Apparently private function was inadvertently inserted between the
original pointsTo implementation and its ddoc'd unittests, causing ddoc
not to pick them up correctly. So reordered the private function and
deprecated alias so that the unittests immediately follow the pointsTo
overloads.

Also, did some cosmetic fixups in the unittests to make them nicer to
read as docs.
2015-08-30 17:55:36 -07:00
H. S. Teoh
c27cc05288 Update docs not to refer to deprecated pointsTo(). 2015-08-30 17:44:08 -07:00
H. S. Teoh
31b0f9c8cd Improve docs for std.exception.{does,may}PointTo
Add Params: and Returns:.

Reorder function overloads so that ddoc merges them properly in the
output.
2015-08-30 17:44:08 -07:00
Jonathan M Davis
7b4abd0aa7 Move deprecations along. 2015-08-29 17:01:23 -07:00
H. S. Teoh
26b26e3063 Add standard Returns: section to std.exception.ifThrown() 2015-08-28 07:55:50 -07:00
Daniel Murphy
0da2ea04de Merge pull request #3590 from quickfur/std_exception_assume
[dox] Add Params: and Returns: to assumeUnique and assumeWontThrow
2015-08-28 13:16:23 +10:00
H. S. Teoh
12ccd7518f No double negatives! 2015-08-27 10:45:18 -07:00
H. S. Teoh
4f5ae2f195 [dox] Add Params: and Returns: to assumeUnique and assumeWontThrow 2015-08-27 10:14:15 -07:00
H. S. Teoh
e4a7a63d5c [dox] Add Params: and Returns: to the various enforce() overloads. 2015-08-27 09:53:14 -07:00
Robert burner Schadek
6f5983471d assertNotThrown can call expressions that return useful data
this allows the data to be returned from assertNotThrown

returns block
2015-07-16 00:19:27 +02:00
k-hara
4f2e16ed39 fix Issue 14685 - Silent incorrect behavior with enforce and custom exception 2015-06-22 21:40:16 +09:00
anonymous
b28962635f fix package XREFs
Also add escaping underscores in some places, and rewrap to 80 columns
where touching anyway.
2015-06-15 22:30:41 +02:00
Daniel Murphy
ebc90dc149 Merge pull request #2657 from joakim-noah/separate_glibc
Separate linux kernel, glibc, and bionic APIs where appropriate
2015-05-30 08:22:30 -06:00
Robert burner Schadek
c4b3d06618 exception: union closing brace doesn't semicolon 2015-05-28 18:41:25 +02:00
Joakim
3352c90c2e Separate linux kernel, glibc, and bionic APIs where appropriate 2015-05-27 21:54:52 -05:00
Walter Bright
d9a9826e55 Revert "Introducing std.meta package" 2015-05-06 14:36:45 -07:00
Dicebot
a76d90c927 Phobos should only mention tuple as std.typecons.Tuple 2015-05-05 22:22:11 +03:00