Commit graph

170 commits

Author SHA1 Message Date
crimaniak
f8fbd2976d Add error message for static assert in bitmanip.d
Static assert, checking the number of bits for a field with the type
bool, did not have an error message.
2018-03-17 13:21:59 +01:00
Jack Stouffer
7c53aa43e4 Add writer overload to BitArray 2018-03-13 15:20:41 -04:00
byebye
af539beb06 BitArray - improve constructors documentation, add examples. 2018-03-11 13:51:11 +01:00
Jonathan M Davis
1436fca1cc Add website link to author name for Jonathan M Davis. 2018-03-10 16:31:23 -07:00
The Dlang Bot
6264e40d8a
Merge pull request #6110 from byebye/issue_18134
Fix issue 18134 - BitArray right shift broken if length is multiple of 8*size_t.sizeof
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2018-03-06 20:14:04 +01:00
Jack Stouffer
663b5b9278 Revert addition of StdUnittest 2018-02-20 13:32:32 -05:00
carblue
de8db50485 std.bitmanip.d - fix a -dip1000 compilable issue; trivial 2018-02-14 17:41:39 +01:00
byebye
b211347454 Fix issue 18134 - BitArray right shift broken if length is multiple of 8*size_t.sizeof 2018-02-02 19:18:49 +01:00
Jack Stouffer
18cbb29b04 Replaced version(unittest) blocks with version(StdUnittest) 2018-02-01 19:56:59 -05:00
Jack Stouffer
dc291a16e4 Changed all instances of FormatSpec to const ref 2018-01-04 10:05:16 -05:00
Sebastian Wilzbach
7de3787876 Use static foreach in Phobos 2018-01-03 17:30:11 +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
Alexandru Caciulescu
997eb62299 Fix Issue 17467 - BitArray are broken with <<= 64 2017-11-07 17:39:31 +02:00
The Dlang Bot
b147252785
Merge pull request #5634 from RazvanN7/Issue_1998
Fix Issue 1998 - std.bitarray should have setAll / opSliceAssign
merged-on-behalf-of: Petar Kirov <ZombineDev@users.noreply.github.com>
2017-10-30 11:49:38 +01:00
RazvanN7
7a37001359 Fix Issue 4717 - std.bitmanip.BitArray changes 2017-08-25 16:50:25 +03:00
RazvanN7
876e4ccd0e Fix Issue 1998 - std.bitarray should have setAll / opSliceAssign 2017-08-15 13:31:21 +03:00
Walter Bright
fd69d85c6e bitmanip - inure against integral promotion changes 2017-07-24 20:10:24 -07:00
RazvanN7
24080dfe95 Fix Issue 1998 - std.bitarray should have setAll / opSliceAssign(bool) etc 2017-07-20 13:36:08 +03: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
H. S. Teoh
6111a6cb37 Fix issue 17247. 2017-03-08 12:36:13 -08:00
Sebastian Wilzbach
62249e99ec [BOOKTABLES]: Add BOOKTABLE to std.bitmanip 2017-03-01 22:20:08 +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
87dec58a41 DStyle: Constraints on declarations should have the same indentation level 2017-02-17 07:36:23 +01:00
Jonathan M Davis
130714acdd Move deprecations along. 2017-01-24 03:08:10 -08:00
Sebastian Wilzbach
18ecb6b72c Make more modules publicly runnable on dlang.org 2017-01-06 23:29:55 +01:00
Sebastian Wilzbach
0c822434cb Merge pull request #4509 from JohanEngelen/outofboundshift
Fix undefined behavior of BitsSet.popFront() upon aggressive optimization
2017-01-04 13:16:58 +01:00
Walter Bright
18396218f0 bitmanip: missing a 'return' attribute 2016-08-24 22:06:03 -07:00
Jack Stouffer
f30c6a106c Enable always true assert checks in Travis 2016-07-31 10:47:26 -04:00
Johan Engelen
46f0d65358 Fix undefined behavior of BitsSet.ctor() and BitsSet.popFront() upon aggressive optimization.
The bug is triggered by the `assert(bitsSet(1).equal([0]));` unittest already present, with LDC+aggressive inlining and optimization.
2016-07-29 16:02:08 +02:00
Jack Stouffer
6f5f20bd93 Added const and immutable to several variables in std.bitmanip 2016-07-19 12:03:09 -04:00
Atila Neves
b543043a87 Add @system and @safe to std.bitmanip unit tests 2016-07-05 09:35:47 +02:00
Jack Stouffer
8b18cc082b Fixed std.algorithm imports in std.bitmanip to not be package wide 2016-07-02 23:37:46 -04:00
Jack Stouffer
3be598effc Fixed local imports in std.bitmanip 2016-06-30 17:54:13 -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
501de1d59f add missing comma to authors of std.bitmanip 2016-06-14 04:31:23 +02:00
Sebastian Wilzbach
ca098c57d2 manual allman brace fixup 2016-05-31 13:07:53 +02:00
Sebastian Wilzbach
2dfbc51f17 Standardize whitespace after imports
Unified with:

sed -E "s/import\s*([^ ]+)\s*:\s*(.*(,|;))/import \1 : \2/" -i **/*.d
2016-05-29 22:09:56 +02:00
Sebastian Wilzbach
18b8abf60a remove the deprecated wiki macros 2016-05-27 05:52:23 +02:00
Jack Stouffer
caba6dab6d Fixed long lines in std/bitmanip.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
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
amaury
196418a8b3 Change taggedClassRef and taggedPointer so that the bitfield appear as a void* in the parent 2016-03-24 17:20:27 -07:00
amaury
3a9bb9363b Remove FUD warning 2016-03-20 01:29:41 -07:00
Jonathan M Davis
c3cd933131 Moving deprecations along.
This is mostly just putting dates on existing deprecations that were
missing dates, but it does remove a few things that have been deprecated
long enough to be removed.
2016-02-10 16:43:25 -08:00
Martin Nowak
3b417a98f6 Merge remote-tracking branch 'upstream/stable' into merge_stable 2016-01-27 21:17:17 +01:00
Martin Nowak
861c1c5b39 fixup for #3822
- keep ptr and len as deprecated (unsafe) properties
2016-01-24 23:38:06 +01:00