Commit graph

518 commits

Author SHA1 Message Date
Dennis
961862c455
Deprecate typesafe variadic class arguments (#20673) 2025-02-16 21:35:11 +01:00
Dennis
9f33f031f0
Rephrase "no identifier for declarator" parse error (#20872) 2025-02-16 08:09:43 +08:00
Dennis
4b57724c91
Improve parser errors for statements at global scope (#20871) 2025-02-15 23:50:34 +01:00
Dennis
d29e3eca45
Remove reference to _d_arrayassign in errors (#20808) 2025-01-31 00:08:38 +01:00
Dennis
0ecefd78ef
Improve error messages for missing opCmp / opEquals (#20806) 2025-01-30 23:31:36 +01:00
Dennis
bfbac11136
Don't expose internal names in errors (#20803) 2025-01-30 21:49:50 +08:00
Dennis
06d0cfe2ba
Improve error messages for opUnary (#20801) 2025-01-30 19:44:05 +08:00
Dennis
06e0096aca
Improve opOpAssign error messages (#20800) 2025-01-30 15:04:17 +08:00
Dennis
28bc5c6e74
Fix #20763 - Inconsistent handling of type + value in typeof expressions (#20798)
* Fix #20763 - Inconsistent handling of type + value in typeof expressions

* Add supplemental error

---------

Co-authored-by: Dennis Korpel <dennis@sarc.nl>
2025-01-29 11:26:01 +01:00
Dennis
a55dff5f28
Improve opIndex/opSlice error messages (#20791) 2025-01-28 18:44:46 +08:00
Dennis
ea9ead9cae
Improve opBinary error messages (#20789) 2025-01-28 06:23:30 +08:00
Dennis
cb31f45e15
Remove references to D1 opDot (#20772) 2025-01-24 12:00:29 +01:00
Dennis
be6a7bb529
Fix #20730 - print SymOff with unsigned offset (#20769) 2025-01-24 06:13:11 +08:00
Dennis Korpel
279f3054bf Short-circuit checkArithmeticBin when lhs is an error 2025-01-23 20:59:30 +08:00
Dennis Korpel
8358e6d33f Move AddExp type check from typeCombine to expressionSemantic 2025-01-23 20:59:30 +08:00
Dennis
096c9c1528
Make delete an identifier instead of keyword (#20745) 2025-01-21 23:33:50 +01:00
Dennis
f05ccbd0e7
Remove class allocator parsing (#20747) 2025-01-21 19:32:51 +08:00
Dennis
fc2b2271a6
Remove D1 operators from the D2 language (#20744) 2025-01-21 06:08:05 +08:00
Dennis
2a627016f6
Disallow initializing fields with themself (#20696) 2025-01-21 05:49:24 +08:00
Andrey Penechko
ec7c24bb72
Add test cases for static arrays initialization with hex string (#20738) 2025-01-19 21:13:58 +08:00
Dennis Korpel
a78abc4328 Improve error locations when lexing number literals 2025-01-16 22:05:21 +01:00
Dennis
888917669c
Remove debug() / version() integers (#20713) 2025-01-16 15:20:06 +08:00
Dennis
20090aba96
Make inferred attribute failure errors more compact and consistent (#20711) 2025-01-16 01:42:05 +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
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
Nicholas Wilson
8d2fe40f4b Fix #20330 - Make subtracting pointers of different types an error 2025-01-08 15:44:38 +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
95145b4ee7
Fix -verrors=context handling of tabs (#20640) 2025-01-07 14:39:25 +08:00
Dennis Korpel
ec66babbc5 Print match level for ambiguous overloads 2025-01-05 13:28:09 +01:00
Quirin F. Schroll
3f90de47c1
Fixes #20587 - Add align(default) (#20589) 2024-12-30 13:02:14 +08:00
Walter Bright
a99a3894be
add __rvalue(expression) builtin (#17050) 2024-12-15 12:13:28 -08:00
Nicholas Wilson
13775eb2d1
Fix #18235 - Add offending member to "no size because of forward reference" error (#20557)
Co-authored-by: Nick Treleaven <ntrel002@gmail.com>
2024-12-15 18:23:36 +08:00
Nick Treleaven
a7f6b04a0c
Don't allow short constructor with non-void expression except this() and super() (#17489) 2024-12-08 17:21:42 +08:00
Dennis Korpel
74c40e9be0 Merge branch 'stable' into master 2024-11-29 12:46:40 +01:00
Walter Bright
347c883586
Implement Safer D (#17044) 2024-11-27 22:59:29 -08:00
Dennis
a3abf1187e
Fix 23722 - Lambdas are mangled incorrectly when using multiple compi… (#15343)
* Fix 23722 - Lambdas are mangled incorrectly when using multiple compilation units, resulting in incorrect code

* Update test cases
2024-11-27 12:03:16 +01:00
Dennis Korpel
519d388498 Fix bugzilla 24845 - Compiler error when trying to assign to an AA value of an enum instance 2024-11-25 22:54:52 +01:00
royalpinto007
36c58b7368 fix Bugzilla 24745 - improve associative array syntax error message
Signed-off-by: royalpinto007 <royalpinto007@gmail.com>
2024-11-17 08:08:15 +08:00
royalpinto007
f5f7baeb19 fix Bugzilla 24353 - add mutability check for foreach with opApply
Signed-off-by: royalpinto007 <royalpinto007@gmail.com>
2024-11-17 07:44:19 +08:00
Martin Kinkelin
72b2fbe64a Merge remote-tracking branch 'origin/stable' into merge_stable
Conflicts:
	compiler/src/build.d
	compiler/src/dmd/dcast.d
	compiler/src/dmd/dtemplate.d
	compiler/src/dmd/expressionsem.d
2024-11-16 16:09:17 +01:00
royalpinto007
33cd3b3981 fix(errors): align errorKindToString with SARIF level values
Signed-off-by: royalpinto007 <royalpinto007@gmail.com>
2024-11-12 08:12:40 +01:00
royalpinto007
dc5f8db05c feat(errors): consolidate multiple sarif reports into a single report
Signed-off-by: royalpinto007 <royalpinto007@gmail.com>

fix(errors): buffer size

Signed-off-by: royalpinto007 <royalpinto007@gmail.com>

fix(errors): diagnostics array

Signed-off-by: royalpinto007 <royalpinto007@gmail.com>

fix(errors): repeated sarif blocks in errors.d and sarif.d

Signed-off-by: royalpinto007 <royalpinto007@gmail.com>

fix(errors): pre-commit checks

Signed-off-by: royalpinto007 <royalpinto007@gmail.com>

fix(errors): circleci build

Signed-off-by: royalpinto007 <royalpinto007@gmail.com>

fix(errors): Ddoc comments and docs

Signed-off-by: royalpinto007 <royalpinto007@gmail.com>

fix(errors): plugSink function by adding early return for empty diagnostics

Signed-off-by: royalpinto007 <royalpinto007@gmail.com>

fix(errors): remove unnecessary change

Signed-off-by: royalpinto007 <royalpinto007@gmail.com>

fix(errors): global array initialisation

Signed-off-by: royalpinto007 <royalpinto007@gmail.com>

fix(errors): separate formatting message

Signed-off-by: royalpinto007 <royalpinto007@gmail.com>

fix(errors): dDoc comments

Signed-off-by: royalpinto007 <royalpinto007@gmail.com>
2024-11-11 14:38:46 +08:00
Walter Bright
b70e66033c
add __traits getBitfieldOffset and getBitfieldWidth (#17043) 2024-11-10 20:22:59 +01:00
Nick Treleaven
e20ee14c6c Add workaround for weird __error/_error_ output on different machines 2024-11-08 13:36:37 +00:00
Nick Treleaven
5d01f144e2 Fix Bugzilla 24848 - bad parser diagnostic for a partial MulExp 2024-11-08 13:08:02 +00:00
royalpinto007
7c8e8ec2e5 feat(errors): generate sarif report on successful execution
Signed-off-by: royalpinto007 <royalpinto007@gmail.com>

fix(errors): tests dDoc, implicit conversion

Signed-off-by: royalpinto007 <royalpinto007@gmail.com>

fix(errors): implicit conversion

Signed-off-by: royalpinto007 <royalpinto007@gmail.com>

fix(errors): brace, default parameters, invert if-else

Signed-off-by: royalpinto007 <royalpinto007@gmail.com>

fix(errors): pre commit checks

Signed-off-by: royalpinto007 <royalpinto007@gmail.com>

fix(errors): arguments

Signed-off-by: royalpinto007 <royalpinto007@gmail.com>

fix(errors): va_list

Signed-off-by: royalpinto007 <royalpinto007@gmail.com>

fix(errors): imports

Signed-off-by: royalpinto007 <royalpinto007@gmail.com>

fix(errors): imports

Signed-off-by: royalpinto007 <royalpinto007@gmail.com>

fix(errors): va_list

Signed-off-by: royalpinto007 <royalpinto007@gmail.com>

fix(errors): va_list

Signed-off-by: royalpinto007 <royalpinto007@gmail.com>

fix(errors): va_list passing

Signed-off-by: royalpinto007 <royalpinto007@gmail.com>

fix(tests): arg placement

Signed-off-by: royalpinto007 <royalpinto007@gmail.com>

fix(regex): Add custom regex-like parsing for version extraction

Signed-off-by: royalpinto007 <royalpinto007@gmail.com>

fix(regex): Add custom regex-like parsing

Signed-off-by: royalpinto007 <royalpinto007@gmail.com>

fix(regex): version with regex, remove custom regex parser

Signed-off-by: royalpinto007 <royalpinto007@gmail.com>
2024-11-06 23:36:30 +01:00
royalpinto007
2b89c2909d enhance(errors): set dynamic ruleId based on ErrorKind
Signed-off-by: royalpinto007 <royalpinto007@gmail.com>
2024-11-02 06:27:18 +08:00
Royal Simpson Pinto
6c09f58feb
feat(errors): integrate warnings and enhance SARIF formatting (#17032)
Signed-off-by: royalpinto007 <royalpinto007@gmail.com>
2024-10-27 12:39:38 +08:00
royalpinto007
140ccdd586 fix(errors): skip normal error output when SARIF is enabled
Signed-off-by: royalpinto007 <royalpinto007@gmail.com>
2024-10-25 23:22:12 +02:00