Commit graph

12524 commits

Author SHA1 Message Date
Sebastian Wilzbach
97a2c88175 Move public unittest below their respective declaration 2017-11-20 14:17:41 +01:00
Sebastian Wilzbach
171e81d689 [Static if] static_if_std_algorithm_comparison 2017-11-20 13:51:05 +01:00
The Dlang Bot
7a2732e4b0
Merge pull request #5577 from wilzbach/algorithm-find-skip
Provide pred-only overload to std.algorithm.searching.findSkip
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2017-11-20 00:47:38 +01:00
The Dlang Bot
43c494261b
Merge pull request #5865 from jmdavis/elaborate
Simplify hasElaborateConstructor.
merged-on-behalf-of: Petar Kirov <ZombineDev@users.noreply.github.com>
2017-11-19 22:54:32 +01:00
Jonathan M Davis
87fbbbc390 Simplify hasElaborateConstructor.
__postblit represents a directly declared postblit constructor, but any
struct which either has a postblit constructor or which has a member
which has a postblit constructor will have __xpostblit. So, we should
only need to check for __xpostblit instead of recursively checking all
of the member variables for __postblit.
2017-11-18 22:57:03 -07:00
MetaLang
67e853607e
More precisely define what this overload returns 2017-11-19 00:33:35 -04:00
MetaLang
dd70c998f7
Change comment as requested by Andrei 2017-11-19 00:31:13 -04:00
The Dlang Bot
1649edd483
Merge pull request #5862 from jercaianu/krr
Fix Issue 16564 - KRRegion.empty sometimes returns Ternary.no
merged-on-behalf-of: Andrei Alexandrescu <andralex@users.noreply.github.com>
2017-11-19 03:40:51 +01:00
Alexandru Jercaianu
f130ff0628 minor refactor for regionMode 2017-11-18 21:11:00 +02:00
Andrei Alexandrescu
e02fb7e60a
Avoid subtraction of pointers to different types
See also https://github.com/dlang/dmd/pull/7332
2017-11-18 11:49:53 -05:00
The Dlang Bot
9599832755
Merge pull request #5696 from dukc/arrayOverlaps
std.array.overlap made ctfe:able and redocumented.
merged-on-behalf-of: unknown
2017-11-17 21:00:39 +01:00
Sebastian Wilzbach
42236b711d Provide pred-only overload to std.algorithm.searching.findSkip 2017-11-17 17:45:46 +01:00
Sebastian Wilzbach
8089602180
Merge pull request #5795 from MartinNowak/cstring_template_bloat
factor out code that does not depend on input range
2017-11-17 16:17:25 +01:00
Alexandru Jercaianu
f529c855ae Fix Issue 17986 - Erratic failure with std/experimental/allocator/common.d(445): unittest failure 2017-11-17 12:15:05 +02:00
Alexandru Jercaianu
02074889d5 Fix Issue 16564 - KRRegion.empty sometimes returns Ternary.no 2017-11-16 16:19:59 +02:00
Sebastian Wilzbach
ea1e9b2aa3
Merge pull request #5819 from MartinNowak/merge_stable
Merge remote-tracking branch 'upstream/stable' into merge_stable
2017-11-15 16:11:15 +01:00
The Dlang Bot
8e4dfdbd50
Merge pull request #5794 from n8sh/container-array-puremalloc
Fix Issue 17919: Make std.container.Array use pureMalloc
merged-on-behalf-of: Andrei Alexandrescu <andralex@users.noreply.github.com>
2017-11-15 00:42:11 +01:00
Andrei Alexandrescu
9dde01acac
Merge pull request #5861 from jercaianu/align
alignedReallocate also checks for correct alignment if sizes are equal
2017-11-14 14:48:44 -05:00
Alexandru Jercaianu
b619323193 added testcase for alignedReallocate
replaced ulong with size_t

spaces after cast
2017-11-14 20:00:57 +02:00
The Dlang Bot
99002c366b
Merge pull request #5792 from jercaianu/lockingtextwriter
Fix Issue 9661 - LockingTextWriter should increment file handle reference count
merged-on-behalf-of: Andrei Alexandrescu <andralex@users.noreply.github.com>
2017-11-14 18:14:07 +01:00
Alexandru Jercaianu
4df0c64179 alignedReallocate checks for alignment if sizes are equal 2017-11-14 18:38:11 +02:00
The Dlang Bot
d1a0a32e79
Merge pull request #5858 from BBasile/issue-12064
fix issue 12064 - std.typecons.wrap doesn't handle NVI
merged-on-behalf-of: MetaLang <MetaLang@users.noreply.github.com>
2017-11-14 17:01:41 +01:00
Alexandru Jercaianu
0802e6adef Refactored if blocks 2017-11-14 17:55:37 +02:00
aG0aep6G
d2aad6b7e6
remove unintended highlighting from cache's docs
Fixes two links.
2017-11-13 23:37:45 +01:00
Andrei Alexandrescu
0308bd6b9a
Merge pull request #5857 from BBasile/issue-16398
fix issue 16398 - experimental allocators, add aligned reallocation for Posix
2017-11-13 16:22:33 -05:00
Andrei Alexandrescu
fbe4f4e361
whitespace 2017-11-13 14:48:52 -05:00
Andrei Alexandrescu
58d7efe1ae
Fix a few issues 2017-11-13 14:40:46 -05:00
The Dlang Bot
53e5cf67df
Merge pull request #5852 from jercaianu/region
Fix Issue 15637 - Region allocator assert failure when expanding the last allocation
merged-on-behalf-of: Andrei Alexandrescu <andralex@users.noreply.github.com>
2017-11-13 19:22:51 +01:00
The Dlang Bot
20413aed16
Merge pull request #5854 from jercaianu/bitmap_chooseAtRuntime
Fixed Issue 16253 - BitmappedBlock allocator not working with chooseAtRuntime
merged-on-behalf-of: Andrei Alexandrescu <andralex@users.noreply.github.com>
2017-11-13 18:39:21 +01:00
Andrei Alexandrescu
0b006c6f8c
Merge pull request #5856 from jercaianu/freeList
Fix Issue 15140 - std.experimental.allocator.building_blocks.free_list.FreeList leaks memory
2017-11-13 11:30:12 -05:00
Basile Burg
c9f2158b59
fix issue 12064 - std.typecons.wrap doesn't handle NVI 2017-11-13 13:41:19 +01:00
Basile Burg
a196f171f6
fix issue 16398 - experimental allocators, add aligned reallocation for Posix 2017-11-13 13:20:52 +01:00
Andrei Alexandrescu
5e41ddf0cf
Merge pull request #5851 from jercaianu/alignedreal
alignedReallocate returns false on failure and FallbackAllocator needs stateless allocators for test
2017-11-11 16:23:22 -05:00
Alexandru Jercaianu
762375058f Added test for FreeList destructor 2017-11-11 23:13:06 +02:00
Alexandru Jercaianu
b8d70b32fd Fix Issue 15140 - std.experimental.allocator.building_blocks.free_list.FreeList leaks memory 2017-11-11 21:43:28 +02:00
Alexandru Jercaianu
f8a8589036 Added test for stateful allocator with FallbackAllocator 2017-11-11 19:59:58 +02:00
The Dlang Bot
4e71185e99
Merge pull request #5796 from jondegenhardt/splitter-doc-changes
Documentation improvements for std.algorithm.splitter.
merged-on-behalf-of: Jonathan M Davis <jmdavis@users.noreply.github.com>
2017-11-11 08:28:49 +01:00
Jon Degenhardt
913a0527cd Switch from dot delimiter to avoid style check involving consecutive dots. 2017-11-10 22:31:44 -08:00
Alexandru Jercaianu
3910abb31b Renamed 'file' to 'file_' 2017-11-10 19:43:55 +02:00
Alexandru Jercaianu
1f63f2d039 Added constraint for Allocator to have alignedAllocate 2017-11-10 15:31:00 +02:00
Alexandru Jercaianu
01295695c5 Minor refactor in test 2017-11-10 01:27:13 +02:00
Alexandru Jercaianu
22954c5376 Added comments reflecting the change 2017-11-10 01:24:40 +02:00
Alexandru Jercaianu
752235ee8c Removed FILE* member, because we can access it through the 'File' object 2017-11-10 01:04:34 +02:00
Alexandru Jercaianu
f730d230f5 Fixed Issue 16253 - BitmappedBlock allocator not working with chooseAtRuntime 2017-11-10 00:25:00 +02:00
The Dlang Bot
2534841d3c
Merge pull request #5842 from Darredevil/issue-17467-bitArray-rollLeft-rollRight
Fix Issue 17467 - BitArray are broken with <<= 64
merged-on-behalf-of: Andrei Alexandrescu <andralex@users.noreply.github.com>
2017-11-09 20:07:44 +01:00
Alexandru Jercaianu
c2609a8c25 added testcase 2017-11-09 15:20:51 +02:00
Alexandru Jercaianu
04cbf312a9 Fix Issue 15637 - Region allocator assert failure when expanding the last allocation 2017-11-09 14:53:32 +02:00
Alexandru Jercaianu
5fa79373c9 Added comments explaining why we need to keep both members 2017-11-09 14:02:46 +02:00
Alexandru Jercaianu
caadfecd26 Change comment to reflect change 2017-11-09 13:52:51 +02:00
Alexandru Jercaianu
9bad191d6a alignedReallocate returns false if alignedAllocate fails
FallbackAllocator requires both allocators to be stateless when running tests

fallback test
2017-11-09 13:45:48 +02:00