Andreas Rumpf
89be5be03e
fixes #13698 [backport:1.2] ( #14175 )
2020-04-30 22:45:02 +02:00
Jacek Sieka
7d6cbf290a
Error -> Defect for defects ( #13908 )
...
* Error -> Defect for defects
The distinction between Error and Defect is subjective,
context-dependent and somewhat arbitrary, so when looking at an
exception, it's hard to guess what it is - this happens often when
looking at a `raises` list _without_ opening the corresponding
definition and digging through layers of inheritance.
With the help of a little consistency in naming, it's at least possible
to start disentangling the two error types and the standard lib can set
a good example here.
2020-04-28 19:56:01 +02:00
Timothee Cour
66db9de714
CT sizeof(+friends) for {.importc, completeStruct.} types, enable ABI static checks ( #13926 )
...
* -d:checkabi obsolete (ABI check now enforced); add `addTypeHeader` helper
* cleanups
* import sizeof at CT for {.completeType.}
* address comments; revert default enabling of -d:checkAbi for now
* mimportc_size_check.nim => msizeof5.nim; merge mabi_check.nim into msizeof5.nim; refactor
* all pragmas in errmsgs should be written: '.importc' (un-ambiguous and less verbose than {.importc.})
2020-04-23 11:24:09 +02:00
Oscar Nihlgård
255698deee
Fix semfold handling of {.str/int/bool-define.} ( #13964 )
2020-04-13 14:22:33 +02:00
Miran
8088633250
faster CIs ( #13803 )
...
* ttables: smaller table, 5x speedup
* thavlak: less iterations, less loops; 30% speedup
* tasyncclosestall: shorter timeout; 35% speedup
* gcleak4: less iterations, 2x speedup
* ttimes: remove deprecated stuff
* tdangerisrelease: remove cpp backend, 3x speedup
* tfrexp1: smaller range, 2x speedup
* trtree: fix warnings, less iterations, 6x speedup
* tasyncawait_cyclebreaker: smaller swarm size; 2x speedup
* trealloc: smaller number of iterations; 10x speedup
* towned_binary_tree: less iterations, 4x speedup
* tclosure: remove unused code, less iterations; 2x speedup
* twaitany: less durations; 1.4x speedup
* tasync_misc: less iterations, 2x speedup
* t8535: smaller sleep, 1.5x speedup
* tmanyjoin: smaller sleep, 2x speedup
* t12221: shorter sleeps, removed two slower tests; 1.6x speedup
* tfuturestream: smaller sleep; 1.5x speedup
* growobjcrash: less iterations; 2x speedup
* ttryrecv: smaller sleep; 1.5x speedup
* treusetvar: less threads; 2x speedup
* delete tthreadanalysis2, basically a duplicate of tthreadanalysis
* t7758: less iterations, 1.5x speedup
* tasyncawait: smaller swarm, less messages; 1.5x speedup
* tjsandnativeasync: smaller sleep, 1.5x speedup
* tpendingcheck: smaller sleep, 1.5x speedup
* remove rodfiles test category
* move tseq from its own category to 'collections' category
* remove unneeded tests and helpers from 'assert' category
* stdlib: merge tbitops2 into tbitops
* remove 'trepr2' from 'stdlib' cat
* merge 'tstreams' into one file
* remove 'tinefficient_const_table' from 'ccbugs' cat
* merge 'tcollections_to_string' into 'tcollections'
* tblocking_channel: smaller sleep, small speedup
* tconvexhull: less iterartions; 1.2x speedup
* merge 'tdeepcopy2' into 'tdeepcopy'
* merge 'tdisjoint_slice2' into 'tdisjoint_slice1'
* tmissing_deepcopy: smaller sequence
* tsendtwice: smaller arrays; 5x speedup
* remove 'tindexerrorformatbounds'
* disable multimethod tests
* remove 'gc:none' and 'refc' without 'd:useRealtimeGC' from gc tests
* koch.nim: bootstrap just with '-d:release', no need for 'csource'
* add github workflow for documentation
* testament: no need for 8 sub-second decimals
2020-03-30 13:18:12 +02:00
Andreas Rumpf
253e1b9e96
fixes #13698 ( #13706 )
2020-03-20 14:35:45 +01:00
Andreas Rumpf
5f6997794e
fixes #13671 [backport] ( #13678 )
2020-03-18 10:37:36 +01:00
Andreas Rumpf
5ba5b5202a
fixes #13661 ( #13664 ) [backport]
2020-03-16 18:40:17 +01:00
Miran
cdedb86348
testament: introduce 'matrix' for testing multiple options ( #13343 )
2020-02-07 16:45:49 +01:00
Miran
c6d5f0df8d
[backport] -d:danger should imply -d:release ( #13336 )
2020-02-05 13:41:16 +01:00
cooldome
416b4c3612
more on arc codegen ( #13178 )
...
* arc codegen for union type
* add more tests
* fix offsetof
* fix tsizeof test
* fix style
2020-01-19 14:14:26 +01:00
Jasper Jenkins
d245d4cf09
fix tsizeof3 for aarch64 ( #13169 )
2020-01-16 14:21:12 +01:00
Andreas Rumpf
abea80376a
fixes #13122 ( #13126 )
...
* fixes #13122
* moved tests to where they belong
2020-01-13 14:11:51 +01:00
Arne Döring
03fa9a9041
fix regression in align ( #12680 )
...
* fix regression in align
* add test typesym without type
2019-11-19 09:58:47 +01:00
Andreas Rumpf
58f3e07b1a
fixes and changes the recently introduced 'alignas' to be 'align' ( #12666 )
...
* fixes and changes the recently introduced 'alignas' to be 'align'
* more improvements
2019-11-15 20:24:14 +01:00
Arne Döring
0496a666e2
implemented alignas pragma ( #12643 )
...
* implemented alignas pragma
* fix bootstrap
* generate c++ compatible syntax for alignas
* Make it work.
* Multiple alignof expressions. Implement top level alignof.
2019-11-13 08:22:41 +00:00
Arne Döring
a2d6691af2
fix #12597 ( #12604 )
2019-11-07 17:16:34 +01:00
narimiran
c6a451c584
remove unused imports from tests
2019-11-06 14:35:45 +01:00
Andreas Rumpf
3ba3307d61
remove deprecated procs ( #12535 )
2019-11-05 11:05:46 +01:00
Arne Döring
99078d80d7
introduce csize_t instead of fixing csize ( #12497 )
2019-10-31 19:18:12 +01:00
Nindaleth
34dbc5699e
fix several typos in documentation and comments ( #12553 )
2019-10-30 09:08:45 +01:00
Oscar Nihlgård
9ccfcf5dd2
Fix compiler crash caused by top level return ( #12501 )
2019-10-24 11:04:04 +02:00
Ridho Pratama
678775601a
Fixed sizeOf to sizeof ( #12347 )
2019-10-03 19:38:37 +02:00
narimiran
d79fb77974
close #6731 by writing a test case
2019-09-13 07:46:46 +02:00
Araq
755c4428fe
added more tests and updated the changelog
2019-09-02 11:03:08 +02:00
Clyybber
f9600b7207
Remove ENDB ( #12095 )
2019-08-31 07:44:53 +02:00
Andreas Rumpf
21fc8b4d4d
refactor sizealignoffset ( #12077 )
...
* small refactoring
* refactor computeObjectOffsetFoldFunction with AccumObject
* refactor packed object offstes fold function
* refactor compute union object offsets fold function
* merge normal/packed object offset fold function
* compiletime offsetof in c++ inheritance objects
* enable c++ inheritance offsetof tests
* correct alignment for big sets/enums on weird 32bit platforms
* uncomputedSize -> unknownSize
* workaround for travis
* fixes win32 alignment problems
2019-08-28 19:36:29 +02:00
Andreas Rumpf
fbb2763204
fixes #11958 ( #12013 )
2019-08-23 18:58:55 +02:00
Araq
b1b0960c36
fixes #11972
2019-08-20 15:47:04 +02:00
Arne Döring
afbcd1b330
int128 on firstOrd, lastOrd and lengthOrd ( #11701 )
...
* fixes #11847
2019-08-07 15:53:16 +02:00
Arne Döring
1a77040278
fix #11812 ( #11829 )
...
* fixes #11812
* fixes #10899
* fixes #11367
2019-07-27 07:21:47 +02:00
narimiran
13190435a6
close #9891 by adding a test
2019-07-25 09:25:18 +02:00
cooldome
d563efb719
fixes #11792 ( #11793 )
2019-07-21 16:53:22 +02:00
Arne Döring
11dad688fe
Offsetof fixes ( #11690 )
...
* first fixes
* more tests and fixes
* code normalization
2019-07-09 09:07:45 +02:00
Andreas Rumpf
bab1f67971
fixes #11660 ( #11677 )
2019-07-07 15:25:25 +02:00
Arne Döring
20d0ef8afb
[backport] fix #11320 ( #11538 )
...
* [backport] fix #11320
* fix test for 32 bit test
2019-07-03 08:00:40 +02:00
Jasper Jenkins
6b23b2d7df
parseopt fix ( #11363 ) [backport]
2019-06-01 10:44:08 +02:00
Arne Döring
5b27b263fd
Remove immediate pragma ( #11308 )
...
* remove immediate from tests
* remove immediate from the compiler
2019-05-29 22:21:51 +02:00
Arne Döring
88b5dd3362
right shift is now by default sign preserving ( #11322 )
...
* right shift is now by default sign preserving
* fix hashString and semfold
* enable arithmetic shift right globally for CI
* fix typo
* remove xxx
* use oldShiftRight as flag
* apply feedback
* add changelog entry
2019-05-29 16:48:00 +02:00
Araq
795044ed2b
make tests green again
2019-05-27 21:29:02 +02:00
Oscar Nihlgård
3a06022071
Enable range checking for unsigned integers ( #11313 )
...
* Enable range checking for unsigned integers
* Make the tests green
2019-05-25 20:48:13 +02:00
Oscar Nihlgård
bc0f2f0dd2
Add test case for #3766 ( #11252 )
2019-05-15 08:22:45 +02:00
Oscar Nihlgård
de5c0d3aa9
Make range checks in semConv ( #7164 )
...
* Remove NaN/Inf/NegInf magic
* Make range checks in semConv
* fix the failing line
* fix `firstOrd` and `lastOrd`
* fix `localError`
* remove debug comment
* Cleanup, fix failing test
* make tests green
2019-05-10 11:10:11 +02:00
Oscar Nihlgård
4c6fc173b7
low/high for float ranges ( #11177 )
2019-05-06 21:19:40 +02:00
Arne Döring
188870648a
sizeof alignof offsetof macros api ( #10855 )
2019-03-19 08:23:00 +01:00
Arne Döring
2c01f0ad8d
tsizeof test is now correct ( #10788 )
2019-03-06 08:12:16 +01:00
Andreas Rumpf
2dc8a32324
make megatest green again
2019-03-05 08:17:30 +01:00
Arne Döring
1d9b88f25d
sizealign of union type ( #10780 )
...
* sizealign of union type
* add error message for packed union
2019-03-04 09:19:38 +01:00
narimiran
ec66fd07cb
quickfix: make tsizeof3 also work on 32-bit
2019-02-28 19:20:22 +01:00
Miran
e7878c0d08
add tests for recently closed issues ( #10722 )
2019-02-23 10:41:35 +01:00