Commit graph

9922 commits

Author SHA1 Message Date
Sebastian Wilzbach
ca098c57d2 manual allman brace fixup 2016-05-31 13:07:53 +02: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
Dmitry Olshansky
f276dbc06b Merge pull request #4380 from wilzbach/fix_import_whitespace
Fix whitespace for selective imports
2016-05-31 14:53:54 +04:00
David Nadlinger
fdabc1d93b Merge pull request #4376 from wilzbach/patch-3
add quickindex table to std/meta.d
2016-05-29 23:30:09 +01:00
Sebastian Wilzbach
f2e4aad20d Issue deprecation warning for deprecated IndexOf 2016-05-29 23:56:06 +02:00
Sebastian Wilzbach
ba2205e210 Add quickindex table to std/meta.d 2016-05-29 23:56:03 +02:00
Sebastian Wilzbach
2dfbc51f17 Standardize whitespace after imports
Unified with:

sed -E "s/import\s*([^ ]+)\s*:\s*(.*(,|;))/import \1 : \2/" -i **/*.d
2016-05-29 22:09:56 +02:00
Dmitry Olshansky
ff854b71b0 Merge pull request #4364 from aG0aep6G/kill-xref
Replace XREF with REF
2016-05-28 15:52:47 +04:00
Steven Schveighoffer
bc63d2b949 Merge pull request #4372 from andralex/allocator-change-expand
Change semantics of expand: the null array cannot be expanded 'in place'
2016-05-27 17:45:44 -04:00
Andrei Alexandrescu
8ecabe23f2 Change semantics of expand: the null array cannot be expanded 'in place' 2016-05-27 16:36:01 -04:00
Andrei Alexandrescu
140c51447f Remove spurious deprecation lookup warning 2016-05-27 16:05:35 -04:00
anonymous
641d6ff8d7 clean up remaining XREFs (manual)
Found by: grep -r '$(XREF'

std.experimental.allocator has a custom XREF2. Leaving that as is for now.
2016-05-27 21:40:46 +02:00
anonymous
ef9722928c XREF_PACK_NAMED -> REF_ALTTEXT (sed)
Done by:

arg='\s*([^(),]*)'
from='\$\(XREF_PACK_NAMED\s'$arg','$arg','$arg','$arg'\)'
to='$(REF_ALTTEXT \4, \3, std,\1,\2)'
(find . -type f -name "*.d" -print0; \
    find . -type f -name "*.dd" -print0) | \
xargs -0 sed -i -r "s/$from/$to/g"
2016-05-27 21:32:46 +02:00
anonymous
d648f9320e XREF_PACK -> REF (sed)
Done by:

from='\$\(XREF_PACK\s+([^(),]*),\s*([^(),]*),\s*([^(),]*)\)'
to='$(REF \3, std,\1,\2)'
(find . -type f -name "*.d" -print0; \
    find . -type f -name "*.dd" -print0) | \
xargs -0 sed -i -r "s/$from/$to/g"
2016-05-27 21:32:46 +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
Mathias Lang
7f53fdfec0 Do not rely on the result of a comma expression
Also add `pragma(inline, true)` to ensure this function stays inlined.
2016-05-27 15:54:26 +02:00
Dmitry Olshansky
2c0b7d24e3 Merge pull request #4354 from wilzbach/newlines_algorithm
remove whitespace in ddoc output of std/algorithm
2016-05-27 14:37:26 +04:00
Dmitry Olshansky
519ff9fa46 Merge pull request #4365 from joakim-noah/uni_imports
std.uni: use selective imports and document module-scope imported symbols
2016-05-27 13:53:00 +04:00
Dmitry Olshansky
b173b32969 Merge pull request #4361 from joakim-noah/imports
std.math and std.stdio: use more selective imports
2016-05-27 13:26:46 +04:00
Vladimir Panteleev
cae4923372 Merge pull request #4369 from wilzbach/deprecate_wiki
remove the deprecated wiki macros
2016-05-27 08:19:55 +03:00
Sebastian Wilzbach
357e02a4a9 remove unused TEXTWITHCOMMAS macro 2016-05-27 05:52:27 +02:00
Sebastian Wilzbach
18b8abf60a remove the deprecated wiki macros 2016-05-27 05:52:23 +02:00
Robert Schadek
0d33ee0706 Merge pull request #4298 from CyberShadow/fork-nogc
std.process: Enforce nothrow/@nogc in forks
2016-05-26 19:02:13 +02:00
Joakim
19e5af264f std.uni: use selective imports and document symbols imported at module scope, checked with ddmd 2016-05-26 04:20:49 +05:30
Joakim
11d3bf6b57 For std.math and std.stdio, use more selective imports and document the current symbols imported at the module level, done by checking with ddmd. 2016-05-26 01:11:11 +05:30
Dmitry Olshansky
088f7bfe73 Merge pull request #4356 from wilzbach/fix_format_uni
fix table formatting in uni.d
2016-05-25 17:59:41 +04:00
Thibaut CHARLES
210d0f70ab Wrong exception message std.json 2016-05-25 12:10:36 +02:00
Sebastian Wilzbach
614294cd70 remove whitespace in ddoc output of std/algorithm 2016-05-25 03:57:01 +02:00
Sebastian Wilzbach
f2edef56ea fix table formatting in uni.d 2016-05-25 03:53:03 +02:00
Robert Schadek
2f124dee5d Merge pull request #4330 from wilzbach/example_array
add module example to std.container.array
2016-05-24 16:59:49 +02:00
Andrei Alexandrescu
b94026470d Merge pull request #4307 from JackStouffer/allocator
Move Ternary from std.experimental.allocator.common to std.typecons
2016-05-24 10:29:23 -04:00
Jack Stouffer
b7165c04bc Move Ternary from std.experimental.allocator.common to std.typecons 2016-05-24 10:27:10 -04:00
Andrei Alexandrescu
8f24656082 Merge pull request #4349 from nordlow/findSplit-opAssign
Fix Issue 15918
2016-05-24 09:04:48 -04:00
Per Nordlöw
54f05971e4 Fix Issue 15918 2016-05-24 09:37:36 +02:00
Vladimir Panteleev
38a6370788 Merge pull request #4303 from wilzbach/mref_phobos
use mref macro instead of link2
2016-05-24 03:12:08 +03:00
Hackerpilot
e702b0ec99 Fix the behavior of a unit test 2016-05-23 14:04:45 -07:00
Robert Schadek
836a905833 Merge pull request #4312 from wilzbach/public_document_algorithms
std.algorithms: document public methods
2016-05-23 19:15:23 +02:00
Sebastian Wilzbach
66099f1640 add module example to std.container.array 2016-05-23 18:22:34 +02:00
David Nadlinger
4991b82304 Merge pull request #4337 from tsbockman/issue_16026
Fix issue 16026: std.math.frexp!float() wrong for very small subnormals
2016-05-22 22:07:35 +01:00
Brian Schott
7b08e86d83 Merge pull request #4311 from JackStouffer/allocator3
Remove commented out code and redundant comments from std.experimental.allocator
2016-05-20 14:15:18 -07:00
Dmitry Olshansky
e02b287ff0 Merge pull request #4339 from JackStouffer/bigint2
Remove auto decoding in bigint's ctor
2016-05-20 23:40:00 +04:00
Jack Stouffer
9f9c5a9759 Defeat auto decoding in bigint's ctor 2016-05-19 10:04:22 -04:00
Brian Schott
88966f953c Merge pull request #4333 from BBasile/issue-15991
fix issue 15991 - std.datetime.StopWatch is not @nogc
2016-05-18 14:46:38 -07:00
Rishub Nagpal
abfd50c473 Updated examples for FileLogger: Logger name parameter has been removed 2016-05-18 15:55:38 -04:00
Vladimir Panteleev
1fad3c54aa Merge pull request #4335 from jacob-carlborg/issue_16036
Fix #16036: isEmail returns invalid for any email with EmailStatusCod…
2016-05-18 20:26:00 +03:00
Jacob Carlborg
9fd3646ae6 Fix issue 16036 - isEmail returns invalid for any email with EmailStatusCode.none 2016-05-18 16:21:58 +02:00
Daniel Murphy
2b5f0e0d4d Merge pull request #4332 from joakim-noah/android
Fix Android regressions
2016-05-18 22:18:43 +10:00
tsbockman
a6a1957be3 Fix issue 16026: std.math.frexp!float() wrong for very small subnormal values 2016-05-18 03:37:46 -07:00
Brian Schott
1565a3243e Merge pull request #4324 from wilzbach/extend_whitespace_list
enforce: whitespace after catch
2016-05-16 19:04:43 -07:00
Joakim
d965b1aa64 Fix Android regressions: make sure all tests don't use the local directory and no unzip 2016-05-16 21:57:17 +05:30