Dmitry Olshansky
fbccadbc5e
Merge pull request #4543 from Geod24/correct-opassign
...
Issue 16142 - Enable test for disabled recursive identity opAssign
2016-07-03 18:27:54 +02:00
Geod24
dbb412d49c
Issue 16142 - Enable test for disabled recursive identity opAssign
2016-07-03 05:39:42 +02:00
Walter Bright
4dabad58a3
std.traits: fix return ref
2016-07-02 18:59:12 -07:00
Walter Bright
1eb9c55a8c
std.traits: scope is only for types with pointers
2016-07-01 03:38:45 -07:00
Steven Schveighoffer
fd61e2adf5
Merge pull request #4479 from WalterBright/traitsinfer
...
std.traits: prevent inference of attributes of test cases
2016-06-27 08:32:06 -04:00
Walter Bright
48bdb3538e
std.traits: prevent inference of attributes of test cases
2016-06-27 03:23:16 -07:00
Robert Schadek
ff7c3691e3
Merge pull request #3936 from JackStouffer/traits
...
New Traits for std.traits
2016-06-20 22:54:57 +02:00
Jack Stouffer
dea43f818e
Add new traits
...
Added traits isType, isFunction, isPropertyFunction, and isFinal
2016-06-20 16:00:42 -04:00
Andrei Alexandrescu
a26026478c
Merge pull request #4421 from mathias-lang-sociomantic/dmd-pr-5854
...
Issue 16142: Correct test for hasElaborateAssign
2016-06-18 04:01:02 -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
Mathias Lang
348bd95e06
Issue 16142: Correct test for hasElaborateAssign
...
Nested member's `@disable opAssign` should propagate to parents.
2016-06-09 14:52:45 +02:00
Joakim
a839be6dcc
Fix five modules where imports were made more local and selective.
2016-06-04 00:09:48 +05:30
Dmitry Olshansky
d80f31e1b0
Merge pull request #4370 from joakim-noah/imports
...
std.string and std.traits: use locally-scoped selective imports and document module-scope symbols
2016-06-03 17:47:15 +04:00
Joakim
ea6e96ece6
std.string and std.traits: use locally-scoped selective imports and document symbols imported at module scope, checked with ddmd
2016-06-03 16:36:26 +05:30
Jack Stouffer
e8832385b0
Add ddoc example for isDynamicArray
2016-06-02 11:38:25 -04:00
Jack Stouffer
380623daa4
Add ddoc example for isArray
2016-06-02 11:35:37 -04:00
Jack Stouffer
f93303eb2c
Add ddoc example to isImplicitlyConvertible
2016-06-01 16:35:29 -04: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
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
18b8abf60a
remove the deprecated wiki macros
2016-05-27 05:52:23 +02:00
Brian Schott
0117797e2c
Merge pull request #4285 from wilzbach/update_travis_dscanner
...
proper filtering of dscanner
2016-05-07 14:45:50 -07:00
Sebastian Wilzbach
69a3d9e59f
fix static if mistakes
2016-05-07 14:38:03 +02:00
Andrej Mitrović
17645d92e0
Merge pull request #4284 from GilesBathgate/traits-doc
...
Added documentation for isSomeChar/isSomeString.
2016-05-07 13:27:42 +02:00
Giles Bathgate
bbb9109dc0
Add documentation for isSomeChar/isSomeString.
...
This just adds to the examples to show what is a char/string
instead of what is not.
2016-05-06 16:05:26 +01:00
Jack Stouffer
3a322792bf
Fix Issue 15980: std.traits.Identity is undocumented but public
2016-05-03 10:16:09 -04:00
Sebastian Wilzbach
67eafbd7e7
std.traits: remove html comment
2016-04-29 18:57:37 +03:00
Dmitry Olshansky
893a1fe1ca
Merge pull request #4195 from Biotronic/fix-15920
...
Fix 15920 - std.traits.MemberFunctionsTuple gives a wrong result
2016-04-28 19:05:48 +04:00
Sebastian Wilzbach
d1714c9afb
minor style fixes
2016-04-27 04:18:22 +03:00
Sebastian Wilzbach
3d67cd228c
style fix: space between operators
2016-04-26 22:26:20 +03:00
biotronic
26f3eb9b1f
Fix issue 15920 - std.traits.MemberFunctionsTuple gives a wrong result
2016-04-13 17:34:56 +00:00
Dmitry Olshansky
fda2df5592
Merge pull request #3275 from Biotronic/master
...
Fix 14561 - Large enums cannot be parsed due to too many recursive template expansions
2016-04-09 16:45:19 +04:00
Uldis Kalnins
f7359a8da7
fix getSymbolsByUDA to not fail if struct has no UDAs
2016-04-06 19:10:05 +03:00
biotronic
4cb7c0199d
Fix 14561 - Large enums cannot be parsed due to too many recursive template expansions
2016-04-03 16:47:36 +00:00
Martin Nowak
5fb53481fc
fix Issue 15782 - Alias no longer strips qualifiers from user defined types
...
- introduce OldAlias for internal usage
- deprecate unqualifying of UDTs
- unfortunately deprecation message isn't shown in many use-cases
2016-03-20 16:49:42 +01:00
Sebastian Wilzbach
66e0dc39c5
convert docstring examples to unittests
2016-03-09 21:22:15 +02:00
John Colvin
b3f05a28d6
Make std.traits.Select work for compile-time expressions
2016-02-19 20:45:27 +00:00
Benjamin L. Merritt
5f08c058ab
Changed "Examples:" in Ddoc to "Example:"
2015-12-17 18:32:41 -08:00
Brian Schott
40b2e45e33
Merge pull request #3838 from jmdavis/deprecations
...
Move some deprecations along.
2015-11-29 11:57:28 -08:00
Brian Schott
d1d129243f
Merge pull request #3827 from rcorre/getSymbolsByUDA_private2
...
Enable getSymbolsByUDA to retrieve private members.
2015-11-29 01:41:03 -08:00
Ryan Roden-Corrent
79fd6aac79
Enable getSymbolsByUDA to retrieve private members.
...
Resolves #15335 : getSymbolsByUDA fails if type has private members.
Generous (ab)use of mixins allows getSymbolsByUDA to reference symbols
without trying to access them, allowing it to inspect private members
without failing.
Testing this required private symbols defined outside of std.traits.
This adds std.internal.test.uda, which defines a struct containing
private members that is used in a unittest added to std.traits.
2015-11-28 07:14:47 -05:00
Vladimir Panteleev
e90be60a67
Merge pull request #3839 from aG0aep6G/ddlink
...
use DDLINK/DDSUBLINK instead of LINK2 and raw HTML
2015-11-27 04:54:52 +02:00
Jonathan M Davis
7afe668428
Merge pull request #3807 from dcarp/Fix15320
...
[Issue 15320] eliminate 'static assert(__traits(compiles,..'
2015-11-26 17:57:44 -08:00
anonymous
6832caf0be
use DDLINK/DDSUBLINK instead of LINK2 and raw HTML
...
DDLINK/DDSUBLINK use ROOT_DIR which is more robust than a relative path.
2015-11-26 16:04:44 +01:00
Jonathan M Davis
d34164a2ea
Move some deprecations along.
2015-11-26 00:28:38 -08:00
anonymous
1c8467c676
update links to spec pages
2015-11-24 17:58:49 +01:00
Dragos Carp
eb293b5063
Fix issue 15320
2015-11-13 03:45:29 +01:00
Jack Applegame
cafed8e1c3
allows std.traits.getUDAs to filter attributes by template type.
...
See unittests.
2015-11-05 11:18:16 +03:00
Andrei Alexandrescu
168d96dfd7
Merge pull request #3395 from nordlow/either-and-every
...
Add new algorithm: either()
2015-10-29 16:57:59 -04:00
Per Nordlöw
c46a463628
Add algorithm either() and trait allSatisfy()
2015-10-29 21:11:05 +01:00
Martin Nowak
0e95f6723a
Merge remote-tracking branch 'upstream/stable' into merge_stable
2015-10-27 15:55:59 +01:00