Commit graph

202 commits

Author SHA1 Message Date
berni44
b2019ebab0 Narrow imports of std.math in the rest of phobos. 2021-04-21 03:00:57 +02:00
berni44
4071c722bf Remove deprecated std.exception : enforceEx. 2021-03-12 14:56:35 +01:00
Steven Schveighoffer
2530979868 Followup to #7458 - Return true for mayPointTo(void[N]) that can hold a slice,
unless the entire thing is zero
2020-04-30 10:18:54 -04:00
MoonlightSentinel
bf7bde11cc
Fix Issue 20426 - doesPointTo with void[N] fails
Accept a false positive/negative for may/doesPointTo
2020-04-26 17:20:02 +02:00
Geod24
04f3979317 Replace 'Issue XXX' with Bugzilla links
Make the links clickable, as was done in the DMD repository.
Also avoids any ambiguity w.r.t. where the issue is stored.
2020-04-13 16:28:09 +09:00
Jacob Carlborg
02b02aab37 Support relocation for errnoEnforce unit test
This fix allows the unit test to be independent if the source code of
the unit test is available or not when running the unit test. This is
necessary to support cross-compiling when the unit test will be run
on a different platform than where it was compiled.
2020-03-03 12:51:07 +01:00
Adam D. Ruppe
ae93f5317c Use consistent quickindex wrapper around hand-written list-of-links tables 2020-02-21 21:04:05 -05:00
Alexandru Militaru
bb62aaca3d Replaced version (unittest) with version (StdUnittest) to avoid unnecessary overhead when compiling with -unittest 2020-01-19 14:05:17 +02:00
Chloé Kekoa
3d4bc84fc4 Make ErrnoException.errno nothrow pure @nogc @safe
In addition make the ctors (which were @trusted) and tests @safe, but
that is not an API change, so it is not in the changelog.
2019-06-14 07:34:28 +02:00
Iain Buclaw
fd5facfe04 posix.mak: Enforce whitespace before opening parenthesis for version conditions 2018-09-22 16:57:24 +02:00
Martin Kinkelin
70ee50053b std.exception: Make unittest less brittle
It makes sure the source file can be read from when running the tests.
If the path to std/exception.d in the compile-Phobos command line was
relative, this required the testrunner to be run in the same working
directory as when compiling Phobos.
2018-08-19 01:22:08 +02:00
Sebastian Wilzbach
b4eacb009d Fix Issue 19041 - errnoEnforce: example does not compile 2018-07-20 18:42:20 +02:00
Nick Treleaven
c2b40d8127 [trivial] Getter property should not return void 2018-06-18 13:23:35 +01:00
Walter Bright
02de37e6ae exception.d: add scope 2018-06-09 00:41:04 -07:00
Sebastian Wilzbach
c324714fde Remove a few cases of underscore escaping 2018-06-04 13:05:01 +02:00
BBasile
5d2590ed8c fix issue 17084 - Can't sort array of structs with alias this (#6472) 2018-04-24 16:38:50 +03:00
Sebastian Wilzbach
42894784dd Markdownify Phobos
$(D word) -> `word`
2018-04-02 22:32:47 +02:00
Sebastian Wilzbach
217127b1d8 Add more public examples to std.exception + enable DScanner check 2018-03-30 11:21:46 +02:00
Sebastian Wilzbach
87301eb1b5 Merge remote-tracking branch 'upstream/stable' into merge_stable 2018-03-25 18:23:14 +02:00
carblue
6551839aa3 std.exception: Fix a -dip1000 compilable issue 2018-03-22 11:29:17 +01:00
Sebastian Wilzbach
73b3b4ce12 Fix unrelated DAutoTest diff changes 2018-03-21 22:48:31 +01:00
Sebastian Wilzbach
38b1ca0a07
Merge pull request #6286 from wilzbach/errnoEnforce
Push deprecation of std.exception.enforceEx
2018-03-21 18:47:33 +01:00
Sebastian Wilzbach
d10ae2ae67 Push deprecation of std.exception.enforceEx 2018-03-20 13:23:21 +01:00
Sebastian Wilzbach
448ad8c92c Simply implementation of errnoEnforce 2018-03-16 11:32:20 +01:00
Jonathan M Davis
1436fca1cc Add website link to author name for Jonathan M Davis. 2018-03-10 16:31:23 -07:00
Radu Racariu
bb3681fd14 fix strerror usage in uClibc version 2018-03-05 09:59:17 +02:00
Sebastian Wilzbach
36f80d3636 Rewrite synopsis example of std.exception 2018-02-25 09:38:54 +01:00
The Dlang Bot
d17a195abc
Merge pull request #6184 from wilzbach/enforce-docs
Expose the enforce overload on the docs
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2018-02-21 17:50:04 +01:00
Jack Stouffer
663b5b9278 Revert addition of StdUnittest 2018-02-20 13:32:32 -05:00
Sebastian Wilzbach
594c5b045e Expose the enfore overload on the docs 2018-02-18 04:11:08 +01:00
Sebastian Wilzbach
d9830b739e Fix DScanner warnings 2018-02-10 22:46:32 +01:00
Sebastian Wilzbach
611e62c96f Turn enforce into an eponymous template + undocument enforceEx 2018-02-07 01:01:59 +01:00
Sebastian Wilzbach
b121fc9105
Revert "Turn enforce into an eponymous template + undocument enforceEx" 2018-02-06 16:55:28 +01:00
The Dlang Bot
757ec92db1
Merge pull request #6086 from wilzbach/enforceEx
Turn enforce into an eponymous template + undocument enforceEx
merged-on-behalf-of: Andrei Alexandrescu <andralex@users.noreply.github.com>
2018-02-06 05:34:25 +01:00
Sebastian Wilzbach
35c03b64ec Fix Ddoc template execution bug 2018-02-05 18:28:46 +01:00
Jack Stouffer
18cbb29b04 Replaced version(unittest) blocks with version(StdUnittest) 2018-02-01 19:56:59 -05:00
Sebastian Wilzbach
1199a96e25 Undocument enforceEx in favor of enforce
enforce can't fully replace enforceEx, hence it needs to stick around for at least one more release so that we can have a release where enforce can fully replace enforceEx. That way, someone can build their code with both the latest release and master without getting a bunch of deprecation messages.
2018-01-31 07:34:55 +01:00
Sebastian Wilzbach
d6f122543f Fix broken link 2018-01-28 19:19:16 +01:00
Sebastian Wilzbach
cbecad703e Add RUNNABLE_EXAMPLES macros to in-text examples in std.exception 2018-01-28 19:19:09 +01:00
Sebastian Wilzbach
2d6fb4ff16 Turn enforce into an eponymous template + undocument enforceEx 2018-01-28 18:58:15 +01:00
Sebastian Wilzbach
f4ccf68f26 Fix Issue 18319 - std.exception: enforce example does not compile 2018-01-28 03:31:55 +01:00
acehreli
408733ca37
Removed misleading "Use assert in contracts."
See https://forum.dlang.org/thread/arlupaqjxcpgeqodjlxs@forum.dlang.org
2018-01-27 14:53:03 -08:00
acehreli
fb3204de32
Clarify "they" as "contracts" 2018-01-27 06:27:07 -08: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
b0575c8a66 @safeify more unittests II 2018-01-03 06:26:05 +01:00
Andrei Alexandrescu
1a08d2a8d6 Convert section labels to title case 2017-07-12 15:19:57 -04:00
Petar Kirov
9216d923a0 [std.exception.errnoString]: avoid redundant allocation
in case `strerror_r` fails.
2017-07-01 20:13:35 +03:00
Roman Chistokhodov
7f17f84ce1 Fix errnoString attributes 2017-07-01 16:11:41 +03:00
Roman Chistokhodov
dc7f802605 Add errnoString to remove code duplication from some modules 2017-07-01 02:34:49 +03:00