The Dlang Bot
c0652345e9
Merge pull request #5502 from wilzbach/fix-17539
...
Fix Issue 17539 - std.parallellism.parallel triggers 'statement not reachable'
merged-on-behalf-of: Vladimir Panteleev <github@thecybershadow.net>
2017-07-04 22:18:10 +02:00
Sebastian Wilzbach
339308b829
Add // nocoverage to non-deterministically covered lines
2017-07-03 23:36:15 +02:00
Sebastian Wilzbach
f3770ba1d6
Fix Issue 17539 - std.parallellism.parallel triggers 'statement not reachable'
2017-06-21 09:58:21 +02: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
Vladimir Panteleev
76c6dcc984
Allow ignoring individual lines for coverage analysis
...
This adds a work-around to the non-deterministic coverage fluctuations
in std.parallelism. Lines with `nocoverage` on them will be excluded
from coverage analysis, and be considered as not containing any code.
2017-05-07 15:26:25 +00:00
Jack Stouffer
516c74bf0b
Added some type qualifiers to std.parallelism
2017-03-19 15:01:47 -04:00
Jack Stouffer
d4a890fa09
Removed global std.typecons import from std.parallelism
2017-03-14 16:25:01 -04:00
Jack Stouffer
dddf0991d7
Removed global core.exception import from std.parallelism
2017-03-14 16:25:01 -04:00
Jack Stouffer
dbb7f7a722
Removed global std.math import from std.parallelism
2017-03-14 16:25:01 -04:00
Jack Stouffer
4a7deff8da
Removed global std.exception import from std.parallelism
2017-03-14 16:25:00 -04:00
Jack Stouffer
c70cbe6631
Removed global std.conv import from std.parallelism
2017-03-14 16:25:00 -04:00
Jack Stouffer
3d8edd5f96
Removed global std.range import from std.parallelism
2017-03-14 16:25:00 -04:00
Jack Stouffer
114ff0034e
Removed global std.algorithm import from std.parallelism
2017-03-14 16:24:58 -04:00
Jack Stouffer
4ce5d44dbb
Use underscores for number literals with five or more digits
2017-02-23 09:45:49 -05: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
Bastiaan Veelo
4c3ec6adc4
[doc] Remove spurious data section.
...
Not sure if this hack prevents the line starting with "data:" to be interpreted as a data section, please test.
Note: data sections seem to be an undocumented feature of ddoc: https://dlang.org/spec/ddoc.html
Maybe ddoc should require an empty line above (real) sections?
2017-02-09 18:41:16 +01:00
Sebastian Wilzbach
f0c5a9fad6
Follow-up style fixes for December
2016-12-08 12:32:24 +01:00
ZombineDev
b44fb6bea2
Fix typo introduced in PR #4915
2016-11-22 10:09:38 +02:00
Petar Kirov
a7597df60e
Fix issue 16705 - TaskPool.reduce fails to compile "cannot get frame pointer to D main"
2016-11-20 20:55:43 +02:00
Etienne Cimon
856c984b78
Avoid GC Allocations in sharedStaticDtor
...
The `Thread.opApply` static method will use `realloc` from `core.stdc.stdlib` instead of `gc.gc.GC.malloc` which sometimes fails with `onInvalidMemoryOperationError` when run within a `static ~this` module dtor
2016-10-04 15:04:29 -04:00
Walter Bright
b14de98141
use @system to return pointers to stack
2016-08-24 12:55:52 -07:00
Steven Schveighoffer
c74537000c
Fix all windows cycles
2016-07-08 21:07:15 -04:00
Steven Schveighoffer
612444ea67
Fix loop during unit tests between std.parallelism and std.range
2016-07-06 11:45:52 -04:00
Walter Bright
1decb74758
remove incorrect use of 'scope'
2016-07-04 13:22:29 -07:00
Jack Stouffer
a485ea00a0
Fixed local imports in std.parallelism
2016-07-01 09:16:22 -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
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
484f7bfbe0
enforce: whitespace after catch
2016-05-14 15:28:43 +03: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
Nikolay Tolstokulakov
eff74ed2a2
netbsd patch
2016-03-11 10:10:47 +06:00
Steven Schveighoffer
b0acb7a394
Fix remaining import deprecation messages
2016-02-22 16:03:12 -05:00
Martin Nowak
ce2ac192c9
fix incorrect imports/fqn usages
...
- mostly of the form `import a.b : sym; a.b.sym();`, which is wrong b/c
selective imports do not add the module to the current scope
2016-02-20 14:41:44 +01: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
k-hara
35f1f6226a
Supplemental fix for issue 14860
...
`task[] = RTask.init;` has two bugs:
1. `RTask` is a nested struct, so `RTask.init` contains null context pointer.
2. That is a block assignment, so there is a possibility to call
`RTask.~this()` on garbage objects (stack allocated `buf` is initialized by `void`).
Fixed to use `emplaceRef` on each elements.
2015-08-02 19:05:30 +09:00
Walter Bright
67f71a84e9
std.parallelism: move static constructor out of template
2015-07-02 19:55:28 -07:00
Dmitry Olshansky
bcedffd0ee
Merge pull request #2943 from MartinNowak/useInitOnce
...
use initOnce for lazy shared initialization
2015-06-26 20:51:14 +03: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
Joakim
3352c90c2e
Separate linux kernel, glibc, and bionic APIs where appropriate
2015-05-27 21:54:52 -05:00
Andrei Alexandrescu
9b9af3196a
Revert "Prefer std.typecons.Flag over booleans for some Phobos arguments"
2015-05-16 18:26:55 -07:00
Matt Kline
d04ebe0baa
Add comments and fixup capitalization of flags
2015-05-16 15:47:25 -07:00
Matt Kline
428f04138b
Move std.paralellism from bool args to Flags
2015-05-14 00:43:06 -07:00