Commit graph

2435 commits

Author SHA1 Message Date
Dennis Korpel
a78abc4328 Improve error locations when lexing number literals 2025-01-16 22:05:21 +01:00
Dennis Korpel
924ba452eb backend: Make FL a D enum 2025-01-16 22:04:25 +01:00
0-v-0
a847aa321b
Remove redundant else (#20717) 2025-01-16 17:48:00 +01:00
Dennis Korpel
8783066576 Use variadic arguments for AttributeViolation format string 2025-01-16 15:34:13 +01:00
Dennis
709e07df52
Store messages directly in AttributeViolation (#20714) 2025-01-16 15:24:12 +08:00
Dennis
888917669c
Remove debug() / version() integers (#20713) 2025-01-16 15:20:06 +08:00
Dennis
c0315897f6
Fix format string injection in safe errors (#20712) 2025-01-16 01:42:17 +01:00
Dennis
20090aba96
Make inferred attribute failure errors more compact and consistent (#20711) 2025-01-16 01:42:05 +01:00
Dennis
3daeb3a33d
Improve diff based AUTO_UPDATE (#20703)
Co-authored-by: Dennis Korpel <dennis@sarc.nl>
2025-01-15 23:25:32 +01:00
Dennis
1c2b6e3541
Add fieldwise to Previews (#20708) 2025-01-15 23:13:56 +01:00
Nicholas Wilson
ace0e63295
Update unknown ICE error message to point to GitHub (#20706) 2025-01-15 12:11:50 +08:00
Iain Buclaw
4485b0d58e
globals.h: Add missing C++ constructors for ImportPathInfo (#20702) 2025-01-15 06:23:16 +08:00
0-v-0
b2c4f89d53 Remove redundant else 2025-01-14 08:11:48 +01:00
0-v-0
caf0e12e0c
Use const when possible (#20687)
* Use const when possible

* Fix error
2025-01-12 17:53:04 +01:00
Walter Bright
10eb368c1b fix #20686 infer attributes for generated functions 2025-01-12 19:29:12 +08:00
Walter Bright
aa56a318eb infer attributes for generated functions 2025-01-12 19:29:12 +08:00
0-v-0
0ee5b318b3 Remove redundant else 2025-01-11 17:09:54 +08:00
Dennis Korpel
646dc29eec Remove 'samples' folder 2025-01-11 08:12:48 +08:00
Richard (Rikki) Andrew Cattermole
12d4f3e4d6 Prepare import paths mechanism for metadata 2025-01-11 07:48:13 +08:00
Iain Buclaw
605ca0f009 dmd: Fix interface for C++ backends 2025-01-11 00:45:11 +01:00
Walter Bright
eb8418a772
build default move constructors (#20634) 2025-01-10 11:19:29 -08:00
Dennis Korpel
8b215f8c16 Fix missing backtick in escape.d error message 2025-01-10 17:52:17 +01:00
0-v-0
ca01894136 Remove redundant else 2025-01-10 13:27:48 +08:00
Paul Backus
99b4a5dc76 Revert "Enable -preview=fieldwise by default"
This reverts commit 6a7bd45a8e.

PR #17495 was originally merged in an incomplete state. Since there are
non-trivial obstacles to completing it, revert the incomplete changes
instead.

See PR #20670 for more information.
2025-01-09 13:38:03 -05:00
Dennis
69664b922d
Merge pull request #20577 from thewilsonator/pointer-subtract
Make subtracting pointers of different types an error
2025-01-09 15:06:33 +01:00
0-v-0
53db1e244c Remove redundant else 2025-01-09 11:39:05 +08:00
Nicholas Wilson
9d72ed4249
Merge pull request #20666 from dkorpel/remove-bugzilla-links
Remove some more bugzilla links
2025-01-09 08:09:38 +08:00
Dennis Korpel
fa228668ed Remove some more bugzilla links 2025-01-09 00:36:58 +01:00
Dennis Korpel
37978248a9 Fix "Casting class references to void* should be @safe" 2025-01-08 23:24:36 +01:00
0-v-0
bef2337c4d
Use const when possible (#20657) 2025-01-08 16:34:32 +08:00
Nicholas Wilson
8d2fe40f4b Fix #20330 - Make subtracting pointers of different types an error 2025-01-08 15:44:38 +08:00
Denis Feklushkin
439e068588
Always accept .o and .obj files (#20609) 2025-01-08 14:05:32 +08:00
Dennis
9b94878c85
Make safe error messages consistent (#20654)
Co-authored-by: Dennis Korpel <dennis@sarc.nl>
2025-01-08 13:46:38 +08:00
Dennis
0f35acb452
Make DataBuilder.abytes accept a slice instead of size, ptr (#20655) 2025-01-08 13:46:03 +08:00
Dennis
4bdebac097
backend.cc: Remove dead code (#20656) 2025-01-08 13:45:24 +08:00
Dennis Korpel
e802318b73 Make dt_t.nbytes accept a slice instead of size+pointer 2025-01-08 01:56:46 +01:00
Dennis
0ee880f425
Make DT a D enum (#20651)
Co-authored-by: Dennis Korpel <dennis@sarc.nl>
2025-01-08 07:49:38 +08:00
Dennis
1bdea38933
Implement AUTO_UPDATE for multiple TEST_OUTPUT blocks (#20652) 2025-01-08 07:47:51 +08:00
0-v-0
cc96434a33 Use early return 2025-01-07 20:40:28 +08:00
Dennis
6523a70c69
Merge pull request #20646 from thewilsonator/prm-param
replace `prm` with `param` in `statement.d`
2025-01-07 11:15:36 +01:00
Nicholas Wilson
6e9b39be8f
[parse.d] fix documentation for parseAssignCondition 2025-01-07 16:21:23 +08:00
Dennis
b13142dc76
Use Scope instead of dmd.globals for checking preview switch state (#20642) 2025-01-07 14:40:24 +08:00
Dennis
ce1c49a6e4
Fix "Compiler fills INIT_ARRAY/FINI_ARRAY with useless zeroes" (#20639) 2025-01-07 14:39:58 +08:00
Dennis
95145b4ee7
Fix -verrors=context handling of tabs (#20640) 2025-01-07 14:39:25 +08:00
Nicholas Wilson
f444bb4174 replace prm with param in statement.d
It is overly short and inconsistent with the rest of the file.
2025-01-07 14:29:02 +08:00
Dennis Korpel
ec66babbc5 Print match level for ambiguous overloads 2025-01-05 13:28:09 +01:00
0-v-0
fc52dc008f Remove redundant attribute 2025-01-04 20:15:31 +08:00
Royal Simpson Pinto
45e4a09a3e
feat(errors): enable verrors=context globally (#20576)
Signed-off-by: royalpinto007 <royalpinto007@gmail.com>
2025-01-03 05:17:59 +08:00
Walter Bright
c57da0cf59
fix #20621 Comparing addresses of rvalue reference parameters not correct (#20622) 2024-12-31 17:00:03 +08:00
Nicholas Wilson
9c4694fc11
[run.d] add space between commands for failed unittest (#20628) 2024-12-31 10:48:37 +08:00