Commit graph

607 commits

Author SHA1 Message Date
Andrei Alexandrescu
49833864d5 Merge pull request #4739 from aG0aep6G/isInstanceOf-for-non-types
implement std.traits.isInstanceOf for non-types
2016-08-30 07:31:45 -04:00
togrue
b44e3bd24a Fixed Issue 16387
(getSymbolsByUDA works with structs but fails with classes)

- added a filter to skip the inaccessable 'this' member
2016-08-29 20:14:30 +02:00
anonymous
a0247166a7 implement std.traits.isInstanceOf for non-types 2016-08-18 22:52:21 +02:00
Lodovico Giaretta
b96a330b77 fix issue 16319 2016-08-15 21:02:30 +02:00
SealabJaster
f7d26c5715 Issue 16168 - isCopyable trait for value types 2016-08-15 11:04:18 +01:00
Andrei Alexandrescu
c38d0d11f2 Merge pull request #4650 from lodo1995/trait_is_inner_class
New trait std.traits.isInnerClass
2016-08-15 00:53:46 -04:00
Jonathan M Davis
29470ebb3c Fix issue# 16364. Make getUDAs and hasUDA consistent. 2016-08-08 07:01:36 -07:00
Ilya Yaroshenko
f75eeb596d Merge pull request #4437 from puneet/master
Fix for for issue 16182 - std.traits.fullyQualifiedName Bug
2016-07-29 15:40:40 +02:00
Lodovico Giaretta
ebb74d5fc0 Better documentation 2016-07-25 20:19:50 +02:00
Lodovico Giaretta
a44527ac94 Removed extra spacing 2016-07-25 01:05:24 +02:00
Lodovico Giaretta
33f813a3ce Fixed spacing around colon in selective import 2016-07-24 23:20:49 +02:00
Lodovico Giaretta
0ecc0868f2 Implemented isInnerClass trait 2016-07-24 23:08:02 +02:00
Jonathan M Davis
1add09c180 Move deprecations along. 2016-07-18 14:56:03 -07:00
Atila Neves
ca0adc1141 Add @system and @safe to std.traits unit tests 2016-07-10 14:19:02 +02:00
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
Puneet Goel
59df244abb Fix for issue 16182
https://issues.dlang.org/show_bug.cgi?id=16182

It is beyond my comprension as to why this irrelevant change helps
fixes #16182. I believe there is something amiss becuase expression
fqnSym!(__traits(parent, T)) ~ '.' is returning a char[] while
fqnSym!(__traits(parent, T)) ~ "." returns a string. This while
expression fqnSym!(__traits(parent, T)) returns a string.
2016-06-19 17:18:03 +05:30
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