Commit graph

35 commits

Author SHA1 Message Date
Dennis Korpel
869ed9c6b9 Fix bugzilla 24891 - Two scope attributes emitted as part of .di generation 2024-12-05 15:03:54 +01:00
Artha
0c09587bd7
Strip one space in /// comments 2024-11-25 08:17:24 +01:00
Artha
303d95f680
Fix bugzilla issue 24871 - DDoc strips indent in triple slash comments
Removes code in the lexer responsible for removing leading spaces in
triple slash doc comments.

This affects the test file for issue 14413; two more spaces appear, but
they are not significant in the HTML output.
2024-11-22 13:00:05 +01:00
Nicholas Wilson
57c5b071af
Rebase stable6 (#16967)
* Document template instance duplication status as part of its field documentation. (#16643)

* Fix Bugzilla 24599 - Wrongly elided TypeInfo emission (#15868)

Reverting #14844, which caused such missing TypeInfos, *and* making
sure the special TypeInfo members are fully analyzed and ready for
codegen (otherwise hitting an assertion for the real-world project).

* Reorganize backend build files to match target and make more similar per line (#16672)

* Remove redundant suggestions on linker errors (#16711)

* Fix bugzilla 24337 - Segfault when printing an int[] cast from a string (#16729)

* Add BitFieldStyle.Gcc_Clang_ARM

Required for 32-bit ARM, and non-Apple 64-bit ARM targets.

The only difference to `Gcc_Clang` is that anonymous and 0-length
bit-fields do contribute to the aggregate alignment.

Caught by existing proper C interop tests in
runnable_cxx/testbitfields.d on such targets. The hardcoded bad tests
in runnable/{bitfieldsposix64.c,dbitfieldsposix64.d} however now fail
after the fix, on such targets again.

* [refactor to `TargetC.contributesToAggregateAlignment(BitFieldDeclaration)` hook]

* Fix Bugzilla Issue 24687 - [REG2.110] Cannot cast string-imports to select overload anymore

* Also make deprecationSupplemental adhere to error limit (#16779)

Co-authored-by: Dennis Korpel <dennis@sarc.nl>

* Fix bugzilla 24699 - [REG2.108] No short-circuit evaluation of mixing template bool argument

* Fix bugzilla 24731 - IFTI cannot handle integer expressions (#16822)

* Fix Bugzilla Issue 24760 - ICE on variadic after default argument

* Fix bugzilla 24790 - -vcg-ast ICE on lowered assign exp (#16914)

Co-authored-by: Dennis Korpel <dennis@sarc.nl>

* Fix bugzilla 24764 - ICE when -vcg-ast prints imported invariant (#16917)

Co-authored-by: Dennis Korpel <dennis@sarc.nl>

* Fix bugzilla 24431 - dmd -vcg-ast crashes printing failed template in… (#16916)

---------

Co-authored-by: Richard (Rikki) Andrew Cattermole <richard@cattermole.co.nz>
Co-authored-by: Martin Kinkelin <kinke@users.noreply.github.com>
Co-authored-by: Dennis <dkorpel@users.noreply.github.com>
Co-authored-by: Martin Kinkelin <mkinkelin@symmetryinvestments.com>
Co-authored-by: Martin Kinkelin <noone@nowhere.com>
Co-authored-by: RazvanN7 <razvan.nitu1305@gmail.com>
Co-authored-by: Dennis Korpel <dennis@sarc.nl>
Co-authored-by: Dennis Korpel <dkorpel@gmail.com>
2024-10-07 12:00:14 +03:00
Nick Treleaven
8974bb128d
Fix Bugzilla 24707 - error message has bad parameter attribute order (#16791)
* Fix Bugzilla 24707 - error message has bad attribute order

* Fix tests

* Fix & split error test into 2 lines
2024-08-19 14:29:23 +03:00
Nick Treleaven
3c13c3c548
[.di generation] Show TypeCtor method attributes after parameters (#16732)
* [.di generation] Show TypeCtor method attributes after parameters

Follow up to https://github.com/dlang/dmd/pull/16708.

* Add changelog
2024-07-20 16:01:45 +02:00
Nick Treleaven
6b5e8f6a0e
[ddoc] Show TypeCtor method attributes after parameters (#16708)
This is more readable.
2024-07-16 14:33:12 +03:00
Dennis
c0fcaa0e96
Fix bugzilla 24583 - di generator emits return scope and scope return in wrong order (#16595) 2024-06-18 17:12:59 +03:00
Richard (Rikki) Andrew Cattermole
bc7dd498dd
Attempt to prevent a race condition with dmd test runner when same file but different extension is used (#16330) 2024-03-26 10:54:00 +02:00
Dennis
23a6ab392d
Fix objdump not outputting intel syntax (#16190) 2024-02-18 06:55:05 +08:00
Iain Buclaw
a6f1083699 test: Reorganize the unicode tests so those with BOMs are identifiable by name
- Many tests needlessly had a UTF-8 BOM, these have been removed.
- compilable/ddoc12.d has been renamed to compilable/ddoc_bom_UTF8.d.
- runnable/*UTF*.d tests have been renamed to runnable/bom_UTF*.d.
- The 'helloUTF8.d' test didn't have a UTF-8 BOM, this has been added.
2024-02-03 11:14:15 +01:00
Johannes
5cb1c7df67
Fix issue 24179 - Fix line breaks in DDoc (#16050)
* Add <pre> tags to ddoc code blocks

* Fix Bugzilla Issue 24179 - Fix line breaks in DDoc

* Add style for pre tag which makes it invisible on css parsing html renderers

* Fix test results for last change
2024-01-22 14:48:47 +02:00
Iain Buclaw
4062e1ed90 Merge remote-tracking branch 'upstream/stable' into merge_stable 2023-11-01 21:49:32 +00:00
Walter Bright
1baa82cb58
do not add __gshared to functions generated from C (#15725) 2023-10-23 01:16:26 -07:00
Iain Buclaw
c40c8003ef
fix Issue 24171 - [REG 2.100] Segfault compiling an empty ddoc file (#15644) 2023-10-02 10:06:53 +08:00
Nicholas Wilson
a6285c26c0
Do not generate context for assert(0) (#15625) 2023-09-27 21:40:20 -07:00
Nick Treleaven
bb638373d6
Fix Issue 15436 - Compiler still refers to AliasSeq-s as "tuple"-s (#15363)
* Fix Issue 15436 - Compiler still refers to AliasSeq-s as "tuple"-s

Replace "tuple type" with "type sequence".
Replace "tuple" with "sequence".
Pretty print `AliasSeq!(args)`, not `tuple(args)`.
Leave json as "tuple" for now.
Also mention std.typecons.Tuple when trying to return a sequence.

Note: This does not rename any internal compiler symbols.

* Update runnable tests

* Update stringof tests

* Update remaining tests

* retrigger tests
2023-06-30 11:02:00 +03:00
Razvan Nitu
4531b0c6ca
Fix Issue 20090 - Header generation wrongfully outputs constructor bodies (#15115) 2023-04-19 13:26:11 +03:00
Dennis Korpel
fe9a5b380c Strip trailing whitespace in Outbuffer.writenl 2023-02-26 00:11:17 +01:00
Walter Bright
b3129254c8
fix Issue 23658 - .di generation of variables should turn them into declarations (#14851) 2023-01-31 13:45:30 +02:00
Iain Buclaw
815eb678c7 fix Issue 23626 - [REG2.096] Template deduction with auto const ref Args... and delegate 2023-01-15 17:57:42 +01:00
Iain Buclaw
05a0e66922 Merge remote-tracking branch 'upstream/stable' into merge_stable 2023-01-01 05:30:09 +00:00
Razvan Nitu
a5d68293ce
fix Issue 23499 - inliner crashes/asserts when building for 32-bit (#14730)
Co-authored-by: Walter Bright <walter@walterbright.com>
2022-12-21 15:30:04 +02:00
Iain Buclaw
b0cf6b7231
fix Issue 23548 - [REG 2.098] C sources files have precedent over D modules in imports (#14700) 2022-12-15 17:48:59 +02:00
Walter Bright
f36d41bfd5 Revert "fix Issue 23548 - [REG 2.098] C sources files have precedent over D modules in imports"
This reverts commit bc3280bef9.
2022-12-15 14:56:52 +01:00
Iain Buclaw
bc3280bef9 fix Issue 23548 - [REG 2.098] C sources files have precedent over D modules in imports 2022-12-12 16:05:15 +01:00
Iain Buclaw
94feeaff63 test: Fix cdcmp output to match binutils 2.39 2022-11-26 23:28:01 +01:00
lucica28
320b9ab673
fix alias location issue (#14602)
* fix alias location issue

* fix test
2022-11-01 11:04:27 +02:00
Walter Bright
91bfd7202f
fix Issue 23418 - double argument is passed on stack, but assumed to be in XMM0 register (#14568) 2022-10-16 12:55:39 -07:00
Razvan Nitu
5fd7882271
Fix Issue 14694 - Functions nested within functions need their body inside the generated .di file (#14529) 2022-10-10 08:15:49 +03:00
Razvan Nitu
2d4d936505
Fix Issue 14690 - pragma(inline, true) functions must have their bodies emitted in the .di file (#14530) 2022-10-07 05:46:06 +03:00
Walter Bright
e4bce5aa19
fix Issue 22680 - @safe hole with destructors (#14402) 2022-09-05 10:31:04 +03:00
Dennis Korpel
372f0c007c Fix issue 19178 - Static initialization of 2d static arrays in structs 2022-07-25 13:27:22 +00:00
Iain Buclaw
09d04945bd Fix build script paths to work with new merged repository structure
Co-Authored-By: Geod24 <pro.mathias.lang@gmail.com>
Co-Authored-By: Martin Kinkelin <noone@nowhere.com>
Co-Authored-By: Vladimir Panteleev <git@cy.md>
2022-07-09 23:49:27 +02:00
Iain Buclaw
6374bb87b7 Move dmd files into compiler/ 2022-07-09 18:53:07 +02:00