Commit graph

13612 commits

Author SHA1 Message Date
Andrei Alexandrescu
d3ddf0fd38 Improve docs spacing, remove spurious output in unittest 2017-02-24 09:12:12 -05:00
Andrei Alexandrescu
30626d289d Improve coverage a bit more 2017-02-24 09:12:12 -05:00
Andrei Alexandrescu
0f75fc2ac1 Fix copypasta in documentation 2017-02-24 09:12:12 -05:00
Andrei Alexandrescu
082b8b61c8 Add Throw hook, improve coverage, fix a few bugs 2017-02-24 09:12:12 -05:00
Andrei Alexandrescu
89df85c412 Lil more coverage 2017-02-24 09:12:12 -05:00
Andrei Alexandrescu
cde67f4ca1 Increase coverage, fix bugs 2017-02-24 09:12:12 -05:00
Andrei Alexandrescu
ca164a7d74 Add isNAN function, fix bug 2017-02-24 09:12:12 -05:00
Andrei Alexandrescu
53c9b8b51a Review by JohanEngelen 2017-02-24 09:12:12 -05:00
Andrei Alexandrescu
a09c5a7e4b Add const/immutable support 2017-02-24 09:12:12 -05:00
Andrei Alexandrescu
d7a4ad96c2 Back to no custom min and max 2017-02-24 09:12:12 -05:00
Andrei Alexandrescu
77bb316d8e Adding custom min and max to Checked 2017-02-24 09:12:12 -05:00
Andrei Alexandrescu
1a62d66d93 Simplify checked(), replace onBadOpOpAssign with more precise onLowerBound/onUpperBound 2017-02-24 09:12:12 -05:00
Andrei Alexandrescu
047687889a Mumble -> Warn 2017-02-24 09:12:12 -05:00
Andrei Alexandrescu
edca085de8 Small improvements to documentation 2017-02-24 09:12:12 -05:00
Andrei Alexandrescu
ca9543921f Add Mumble, improve documentation 2017-02-24 09:12:12 -05:00
Andrei Alexandrescu
522077ea36 Add Saturate, change definition of onBadOpOpAssign 2017-02-24 09:12:12 -05:00
Andrei Alexandrescu
157db49e39 Workaround bug in libdparse 2017-02-24 09:12:12 -05:00
Andrei Alexandrescu
c9d9920b80 Rename representation to get; add function checked; improve documentation 2017-02-24 09:12:12 -05:00
Andrei Alexandrescu
2ca8872101 Review 2017-02-24 09:12:12 -05:00
Andrei Alexandrescu
aeb6325c93 Review 2017-02-24 09:12:12 -05:00
Andrei Alexandrescu
0033df3bd8 Add dox for ProperCompare 2017-02-24 09:12:12 -05:00
Andrei Alexandrescu
e7be3c823d Add changes to winxx.mak too 2017-02-24 09:12:12 -05:00
Andrei Alexandrescu
cecb6d8916 WIP: add std.experimental.checkedint 2017-02-24 09:12:12 -05:00
The Dlang Bot
7e41404904 Merge pull request #5186 from JackStouffer/underscores
Check For Underscores in Number Literals With Five or More Digits
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2017-02-23 16:26:03 +01:00
Jack Stouffer
89e4014e3d Enable the underscore check in dscanner 2017-02-23 09:45:49 -05:00
Jack Stouffer
4ce5d44dbb Use underscores for number literals with five or more digits 2017-02-23 09:45:49 -05:00
Andrei Alexandrescu
22331db571 Merge pull request #5182 from wilzbach/style-binary-ops
Style: add a check to enforce whitespace between binary ops
2017-02-23 08:04:05 -05:00
Sebastian Wilzbach
a1bb0515fc Automatically add spaces to binary operators (>=)
command:

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-23 00:57:47 +01:00
Sebastian Wilzbach
203755d296 Automatically add spaces to binary operators (>>)
command:

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-23 00:57:47 +01:00
Sebastian Wilzbach
ef7be4b60d Automatically add spaces to binary operators (<<)
command:

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-23 00:57:47 +01:00
Sebastian Wilzbach
d905ef53b1 Automatically add spaces to binary operators (<=)
command:

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-23 00:57:47 +01:00
Sebastian Wilzbach
0b33b50812 Automatically add spaces to binary operators (!=)
command:

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-23 00:57:47 +01:00
Sebastian Wilzbach
a2c6398332 Automatically add spaces to binary operators (==)
command:

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-23 00:57:47 +01:00
Sebastian Wilzbach
af42d8df3d Add initial style check to enforce space between binary operators 2017-02-23 00:57:47 +01:00
The Dlang Bot
f795addf3f Merge pull request #5155 from wilzbach/fix-allocator-api
Allocator: fix experimental makeMultidimensionalArray API
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2017-02-23 00:44:29 +01:00
Sebastian Wilzbach
64a0814ae4 Issue 16824: fix experimental makeMultidimensionalArray API 2017-02-22 23:32:04 +01:00
Jack Stouffer
77b37fd8f1 Merge pull request #5181 from JackStouffer/capitalize
Small optimization for std.string.capitalize
2017-02-22 16:07:30 -05:00
Jack Stouffer
738a18a27a Small optimization for std.string.capitalize 2017-02-22 15:28:27 -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
Andrei Alexandrescu
b628836770 Merge pull request #5179 from wilzbach/style-space-opslice
[Style] Enforce a .. b opSlice style
2017-02-22 11:38:04 -05:00
Sebastian Wilzbach
6c9b626e6f [opSlice stye fixup] fix false-positives from the automatic conversion 2017-02-22 06:33:37 +01: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
4b49413b5a Add check to enforce space between opSlice: a .. b 2017-02-22 05:37:07 +01:00
Sebastian Wilzbach
9c794f5c87 DScanner: enable check for explicitly annotated unittests 2017-02-22 03:16:02 +01:00
Andrei Alexandrescu
027ae18cab Merge pull request #5175 from wilzbach/style-cast-space
Add a check to enforce space after cast(..) expressions
2017-02-21 20:11:23 -05:00
The Dlang Bot
60b557f06f Merge pull request #5177 from JackStouffer/group-docs
Added practical example to std.algorithm.iteration.group
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2017-02-21 22:14:03 +01:00
Jack Stouffer
e656eec40f Added practical example to std.algorithm.iteration.group 2017-02-21 15:40:24 -05:00
The Dlang Bot
bb50cf1cbf Merge pull request #5176 from JackStouffer/isemail3
Make std.net.isemail.isEmail @safe
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2017-02-21 20:59:32 +01:00
Jack Stouffer
3e205b4e62 Make std.net.isemail.isEmail @safe 2017-02-21 14:00:25 -05:00