Thibaut CHARLES
fc9aefbcb3
Fix std.traits.Variadic doc layout
2018-06-11 12:02:16 +02:00
The Dlang Bot
a56ae8026b
Merge pull request #6542 from wilzbach/underscore
...
Remove a few cases of underscore escaping
merged-on-behalf-of: Steven Schveighoffer <schveiguy@users.noreply.github.com>
2018-06-04 22:29:52 +02:00
Sebastian Wilzbach
c324714fde
Remove a few cases of underscore escaping
2018-06-04 13:05:01 +02:00
Martin Nowak
b4d444c5ee
Merge remote-tracking branch 'upstream/stable' into merge_stable
2018-06-03 18:09:49 +02:00
Biotronic
8db8debe32
Fix issue 18884 - getSymbolsByUDA fails on AliasSeq members
2018-05-20 19:38:02 +02:00
Basile Burg
593a4e2e39
fix issue 13741 - std.traits.moduleName does not work with functions that have parameters
2018-05-18 19:32:40 +02:00
Steven Schveighoffer
d4a35f09da
More removal of version(unittest)
2018-04-13 12:20:02 -04:00
Sebastian Wilzbach
152647e985
Add public examples to std.random
2018-04-04 11:42:56 +02:00
Sebastian Wilzbach
42894784dd
Markdownify Phobos
...
$(D word) -> `word`
2018-04-02 22:32:47 +02:00
The Dlang Bot
0372d48dc0
Merge pull request #6179 from aliak00/has-static-member
...
Fix issue 18438 - Handle T* in hasStaticMember like hasMember
merged-on-behalf-of: Nathan Sashihara <n8sh@users.noreply.github.com>
2018-03-30 01:52:58 +02:00
Jonathan Marler
2dd14c6445
Accomodate Enum init deprecation
2018-03-28 04:27:46 -06:00
Sebastian Wilzbach
08233cab19
Split UDA public examples into smaller chunks
2018-03-28 15:08:16 +02:00
Sebastian Wilzbach
41dbe5cc57
Add a public example for unsigned integral to std.traits.Unsigned
2018-03-28 15:01:27 +02:00
Jack Stouffer
5df8f15280
Add examples for the rest of std.traits and enable the dscanner check
2018-03-28 08:20:08 -04:00
The Dlang Bot
a6afdef932
Merge pull request #6355 from JackStouffer/issue18669
...
Fix Issue 18669 - isNestedFunction does not check if parameter is a f…
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2018-03-28 05:09:00 +02:00
Jack Stouffer
57b915d4b1
Improved docs for ImplicitConversionTargets and isAbstractFunction
2018-03-27 14:24:37 -04:00
Jack Stouffer
09cc0bac14
Fix Issue 18669 - isNestedFunction does not check if parameter is a function
2018-03-27 12:55:27 -04:00
Sebastian Wilzbach
87301eb1b5
Merge remote-tracking branch 'upstream/stable' into merge_stable
2018-03-25 18:23:14 +02:00
Sebastian Wilzbach
8f86a0d734
Fix if constraints indentation
2018-03-24 13:17:53 +01:00
The Dlang Bot
f55a6a797d
Merge pull request #6333 from JackStouffer/traits-examples5
...
Added examples for rvalueOf, lvalueOf, isSomeFunction, and Interfaces…
merged-on-behalf-of: MetaLang <MetaLang@users.noreply.github.com>
2018-03-24 07:44:24 +01:00
Jack Stouffer
ad1117514f
Added examples for rvalueOf, lvalueOf, isSomeFunction, and InterfacesTuple
2018-03-23 12:12:23 -04:00
The Dlang Bot
4ac4a06ace
Merge pull request #6324 from JackStouffer/traits-examples2
...
Added examples, improved docs, and changed style of std.traits.QualifierOf
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2018-03-23 16:01:08 +01:00
The Dlang Bot
805914bd85
Merge pull request #6325 from JackStouffer/traits-examples3
...
Added examples and improved docs of std.traits.extractParameterStorag…
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2018-03-23 02:25:09 +01:00
Jack Stouffer
e3b2fe4220
Improved docs and added examples for std.traits.EnumMembers
2018-03-22 13:15:11 -04:00
Jack Stouffer
cca9465dc0
Added examples and improved docs of std.traits.extractParameterStorageClassFlags
2018-03-22 10:42:07 -04:00
Jack Stouffer
22f62f32b7
Added examples, improved docs, and changed style of std.traits.QualifierOf
2018-03-22 09:50:57 -04:00
Jack Stouffer
739c884b7f
Added examples and docs to qualifier templates in std.traits
2018-03-21 09:15:16 -04:00
Spoov
9ab9b017ae
Fix Issue 18624 - wrong behavior of getSymbolsByUDA if one of the symbols having the UDA is a function
2018-03-17 14:50:31 +01:00
Johan Engelen
63a8b22665
std.traits.FieldNameTuple: clarify documentation and add testing for classes
2018-03-11 19:20:48 +01:00
Walter Bright
86d212aadf
AA key needs at least one data field
2018-03-05 22:16:30 -08:00
Jack Stouffer
663b5b9278
Revert addition of StdUnittest
2018-02-20 13:32:32 -05:00
Ali Akhtarzada
4e222b856b
Fix issue 18438 - Handle T* in hasStaticMember
...
hasMember treats T* as T, so lets make hasStaticMember do the
same
2018-02-15 15:07:42 +01:00
Sebastian Wilzbach
d9830b739e
Fix DScanner warnings
2018-02-10 22:46:32 +01:00
Jack Stouffer
18cbb29b04
Replaced version(unittest) blocks with version(StdUnittest)
2018-02-01 19:56:59 -05:00
The Dlang Bot
2a6df1f84b
Merge pull request #6085 from Biotronic/Issue-18314
...
Issue 18314 - std.traits.getSymbolsByUDA only considers the first sym…
merged-on-behalf-of: Sebastian Wilzbach <sebi.wilzbach@gmail.com>
2018-02-01 14:15:21 +01:00
biotronic
20c3e7f163
Issue 18314 - std.traits.getSymbolsByUDA only considers the first symbol of an overload set
2018-02-01 13:01:43 +01:00
The Dlang Bot
931a25126b
Merge pull request #5291 from jmdavis/fix_isSomeString
...
Fix it so that isSomeString and isNarrowString are false for enums.
merged-on-behalf-of: H. S. Teoh <quickfur@users.noreply.github.com>
2018-01-31 03:58:01 +01:00
Jack Stouffer
677d5b6703
Removed extra imports from std.traits examples
2018-01-30 13:07:55 -05:00
Sebastian Wilzbach
d2a83195dd
Merge pull request #6078 from jacob-carlborg/revert-5968-searching-findSplit
...
Revert "findSplit: return named tuples instead of an anonymous tuple"
2018-01-27 22:45:51 +01:00
Jacob Carlborg
83adbc3079
Revert "findSplit: return named tuples instead of an anonymous tuple"
2018-01-27 16:23:24 +01:00
Jonathan M Davis
3f8a13d474
Add warning to isConvertibleToString.
2018-01-26 23:30:02 -07:00
Jonathan M Davis
b0df44c868
Fix it so that isSomeString and isNarrowString are false for enums.
...
Having isSomeString and isNarrowString be true for enums whose base type
is a string type is a problem, because the enums will not work with the
same code that strings will, resulting either in compilation errors or
subtle bugs which result in variables of an enum type that contain
values that are not members of that enum type. As with other types that
implicitly convert to a string type, the enums need to be converted to
be used with the code that's designed for strings, which happens when
the function explicitly takes a string type or when the function takes
an array and is templated on the character/element type but does not
happen when the function is templated on the whole parameter type.
In addition to fixing isSomeString and isNarrowString for enums, these
changes catch and fix the fact that isNarrowString did not work
correctly with null - something that isSomeString did test for and
handle appropriately.
2018-01-26 14:08:23 -07:00
The Dlang Bot
c07b09e214
Merge pull request #5968 from wilzbach/searching-findSplit
...
findSplit: return named tuples instead of an anonymous tuple
merged-on-behalf-of: Jack Stouffer <jack@jackstouffer.com>
2018-01-24 17:10:43 +01:00
Mathis Beer
2d4d1be4bf
std.traits: move isDesiredUDA out of getUDAs, since it depends only on attribute and uda.
...
This conserves memory, since isDesiredUDA instances can be reused between symbols.
2018-01-22 18:16:30 +01:00
The Dlang Bot
976cb990f1
Merge pull request #6014 from wilzbach/complex
...
Start to move away from complex and imaginary types
merged-on-behalf-of: Andrei Alexandrescu <andralex@users.noreply.github.com>
2018-01-18 22:34:40 +01:00
Sebastian Wilzbach
8becc70da7
Fix CTFE Error: reinterpreting cast from inout(string)*
...
std/typecons.d(648): Error: reinterpreting cast from inout(string)* to inout(Tuple!(string, string, string))* is not supported in CTFE
std/traits.d(566): called from here: findSplit(s, "(").asTuple._Tuple_super()
std/traits.d(568): called from here: adjustIdent("std")
std/traits.d(556): Error: template instance std.traits.fqnSym!(std) error instantiating
std/traits.d(556): instantiated from here: fqnSym!(traits)
std/traits.d(478): instantiated from here: fqnSym!(fullyQualifiedName)
std/traits.d(484): instantiated from here: fullyQualifiedName!(fullyQualifiedName)
std/traits.d(484): while evaluating: static assert(fullyQualifiedName!(fullyQualifiedName) == "std.traits.fullyQualifiedName")
2018-01-17 12:50:00 +01:00
Sebastian Wilzbach
a972e266ed
Allow running all unittest with -transition=complex
2018-01-17 11:14:32 +01:00
The Dlang Bot
9fe884ddaf
Merge pull request #6016 from wilzbach/fix-18214
...
Fix Issue 18214 - TemplateOf should return void for non-templated symbols
merged-on-behalf-of: MetaLang <MetaLang@users.noreply.github.com>
2018-01-16 23:03:26 +01:00
Jack Stouffer
faa7300361
Added note to isInstanceOf docs on template usage
2018-01-08 19:57:27 -05:00
Sebastian Wilzbach
997f4fe64a
Fix Issue 18214 - TemplateOf should return void for non-templated symbols
2018-01-09 00:20:25 +01:00