Commit graph

272 commits

Author SHA1 Message Date
Hara Kenji
7b85f7a479 Merge pull request #1260 from denis-sh/fix-std.traits.hasElaborate-docs
Fix `std.traits.hasElaborate*` docs
2013-04-29 05:02:16 -07:00
k-hara
9e178000a4 Enable test for issue 8321 2013-04-24 15:56:41 +09:00
David Nadlinger
8391dcbc6b Merge pull request #1262 from denis-sh/use-FieldTypeTuple!S-instead-of-typeof(S.tupleof)
Use `FieldTypeTuple!S` instead of `typeof(S.tupleof)`.
2013-04-23 01:08:58 -07:00
Denis Shelomovskij
75736f1370 [Refactoring] Use FieldTypeTuple!S instead of typeof(S.tupleof).
`FieldTypeTuple` is what have to be used when searching through fields as it ignores hidden fields which we don't need here.

Replace in `std.traits.hasElaborate{CopyConstructor,Assign,Destructor}`. This is a refactoring change as hidden fields didn't affect these templates behaviour.
2013-04-23 12:06:37 +04:00
Denis Shelomovskij
d13a02e439 Fix std.traits.hasElaborateAssign for static arrays. 2013-04-17 23:12:09 +04:00
Denis Shelomovskij
e68de377fa Document compiler-generated opAssign for std.traits.hasElaborateAssign.
* also add unittests
2013-04-17 19:43:17 +04:00
Denis Shelomovskij
82dd61c0f6 Fix std.traits.hasElaborate* docs for static arrays. 2013-04-17 19:43:17 +04:00
Andrej Mitrovic
320b73a39d Fixes Issue 9839 - Select should be able to select symbols. 2013-03-31 13:06:00 +02:00
Denis Shelomovskij
519fdae818 Add std.traits.isNestedFunction.
As I see no cases where nestidness check for both types and functions is required a new `isNestedFunction` template is created instead if adding an overload to `isNested`.
2013-03-25 20:19:44 +04:00
David Nadlinger
6bcb2f2f93 Merge pull request #948 from denis-sh/add-traits-for-nested-structs
Add `std.traits.{isNested,hasNested}`.
2013-03-23 14:04:20 -07:00
Andrei Alexandrescu
28fad77612 Merge pull request #1192 from AndrejMitrovic/Fix5359
Issue 5359 - isDelegate should work for types and expressions.
2013-03-09 15:58:55 -08:00
k-hara
3eecfd2b1e fix Issue 3789 - Structs members that require non-bitwise comparison not correctly compared 2013-03-09 16:52:43 +09:00
Andrej Mitrovic
091a57650b Fixes Issue 5359 - isDelegate should work for types and expressions. 2013-03-08 22:25:57 +01:00
Denis Shelomovskij
6a2c63bf51 Document what exactly std.traits.FieldTypeTuple do. 2013-03-06 09:34:56 +04:00
Denis Shelomovskij
9365e706a0 Fix std.traits.FieldTypeTuple for structs. 2013-03-06 09:34:56 +04:00
Denis Shelomovskij
fd17064603 Add std.traits.{isNested,hasNested}. 2013-03-06 09:34:56 +04:00
Dicebot
a269e6eb76 fullyQualifiedNameImplForSymbols: .stringof -> __traits(identifier) 2013-02-27 23:09:29 +02:00
k-hara
7dd1ed7a21 fix Issue 9596 - Ambiguous match is incorrectly hidden by additional lesser match 2013-02-27 01:25:28 +09:00
k-hara
9985101830 Tuple member defaultInit requires 'this', so use std.traits.defaultInit with selective import. 2013-02-24 13:05:39 +09:00
Alex Rønne Petersen
222ea0f2b1 Merge pull request #1080 from monarchdodra/postblit
Extra doc and tests for hasElaborateAssign
2013-02-10 09:45:49 -08:00
monarch dodra
153ac3690f Update std/traits.d 2013-02-04 16:00:51 +01:00
k-hara
5c092c2814 Fix isAssignable unittest results 2013-01-31 09:34:53 +09:00
Andrej Mitrovic
40cca46b42 Fixes Issue 6614 - Add isFinalFunction and isFinalClass.
Add isAbstractClass to mirror __traits().
2013-01-25 23:56:00 +01:00
Andrej Mitrovic
e387b6fd80 Improve isAbstractFunction and add unittest. 2013-01-25 23:53:04 +01:00
Hara Kenji
1ec2e521b2 Merge pull request #1088 from AndrejMitrovic/Fix9269
Issue 9269 - Remove import to curl to avoid unittest build failure
2013-01-21 18:44:05 -08:00
Andrej Mitrovic
40d9ebcdfb Fixes Issue 9269 - Remove import to curl to avoid unittest build failure. 2013-01-22 02:16:23 +01:00
k-hara
122b3b8e2f fix Issue 9199 - Module level qualified functions should be rejected
`inout` had qualified the function itself, rather than its return type.
2013-01-22 09:48:17 +09:00
unknown
302b566723 Extra doc and tests for hasElaborateAssign 2013-01-20 17:09:02 +01:00
Daniel Murphy
41a9f1fa05 Fix Issue 6408 - Phobos fixes
Do not use typeof(Type[0]) to get the element type of an array, use typeof(Type.init[0])
2013-01-18 19:10:16 +11:00
Dicebot
261b9d914b fullyQualifiedName: Review comments adressed (AA key qualifiers, overall style) 2013-01-17 13:18:12 +02:00
Dicebot
e85aa4799d fullyQualifiedName: created a single entry template, rearranged code to match new hierarchy 2013-01-16 18:11:48 +02:00
Dicebot
a26d6aa31f fullyQualifiedName: Added inout handling, exclusive modifers shall not stack anymore, turned one of inner templates to CTFE function 2013-01-16 14:39:55 +02:00
Dicebot
0178c1a384 fullyQualifiedName: inout function support + removed possibility of exclusive qualifier combination in output 2013-01-16 13:41:16 +02:00
Dicebot
cc52042d0e fullyQualifiedName: removed duplicate unittest lines 2013-01-16 13:41:16 +02:00
Dicebot
28faffe389 fullyQualifiedName update: fixed test suite build errors 2013-01-16 13:41:16 +02:00
Dicebot
5a8e303af3 fullyQualifiedName: function type handling improved
1) Added formatting for:
    * Attributes
    * Parameter storage classes
    * Variadic arguments
    * Function type qualifiers for delegates
    * Function linkage
2) Unit tests were re-arranged and improved a bit
3) xformat -> format
2013-01-16 13:41:16 +02:00
Dicebot
5843503935 Implementation of fullyQualifiedTypename template that operates on raw types contrary to fullyQualifiedName which is tied to aliases to symbols 2013-01-16 13:41:16 +02:00
k-hara
dd42a75106 fix Issue 9317 - ParameterStorageClassTuple reports errors for inout function 2013-01-15 00:07:06 +09:00
Alex Rønne Petersen
248aaea04f Merge pull request #1026 from Dicebot/patch-1
Update std/traits.d
2013-01-13 16:24:35 -08:00
k-hara
f6f57530a6 fix Issue 9288 - Parameter(Identifier|DefaultValue)Tuple report pointless errors 2013-01-10 09:40:46 +09:00
Andrej Mitrovic
633d2d5a98 Fixes Issue 5736 - Missing 'else' in 'static if' 2013-01-08 22:22:14 +01:00
Nick Treleaven
5083260795 Fix typos 2013-01-07 17:01:11 +00:00
Dicebot
6527beb6e2 Update for documentation as a consequence for https://github.com/D-Programming-Language/phobos/pull/862 2013-01-02 12:56:07 +02:00
Andrei Alexandrescu
f12c860a23 Merge pull request #896 from denis-sh/std.conv.emplace-fixes
`std.conv.emplace` fixes & improvements
2012-12-12 07:41:03 -08:00
k-hara
afed048033 fixup for pull #1301 and #1309
By fixing bug 9069 and 9035, T.init always returns rvalue and ref cannot receive it.
2012-12-04 14:40:13 +09:00
k-hara
0f8e87b342 fix isPointer 2012-11-27 22:46:23 +09:00
k-hara
6d53de5893 fix isBuiltinType and BuiltinTypeOf 2012-11-27 22:46:21 +09:00
k-hara
fa61476205 fix isAssociativeArray 2012-11-27 22:46:20 +09:00
k-hara
eea23bda23 fix isArray 2012-11-27 22:46:19 +09:00
k-hara
158275cda9 fix isDynamicArray and DynamicArrayTypeOf 2012-11-27 22:46:18 +09:00