Commit Graph

1220 Commits

Author SHA1 Message Date
Jeremy Baxter 57794ca875 Fix build on BSD
Added extra version statements for OpenBSD, NetBSD and DragonflyBSD,
as these are not included in the BSD version identifier.

Also removed the line `SHELL:=/usr/bin/env bash' from the top of the
makefile because most BSDs don't include bash in the base system, and
the build doesn't need it anyway.

On OpenBSD, using -inline with dmd causes the compiler to crash
because of insufficient memory (with 8 GB), so I added a couple of
ifneq's to use -inline only if the build is not running on OpenBSD.
2023-12-23 13:02:39 +01:00
brianush1 15ea4b37b8
avoid unnecessary O(n^2) work in localuse (#768)
Co-authored-by: WebFreak001 <gh@webfreak.org>
2023-12-11 06:51:41 +01:00
WebFreak001 584b245c8b support `.Type` syntax for module type lookup 2023-12-04 13:01:28 +01:00
WebFreak001 dcffd378e1 support casts in initializers
rework of #710, reuses the existing type construction

Co-authored-by: ryuukk <ryuukk.dev@gmail.com>
2023-12-04 12:07:29 +01:00
WebFreak001 fe6ce04720 implement typeof in types 2023-12-04 11:02:05 +01:00
WebFreak001 25139a8833 fix inlayHints ordering 2023-12-04 11:01:19 +01:00
WebFreak001 2bb03265cc support inlay hints inside functions
remake of #759

Co-authored-by: ryuukk <ryuukk.dev@gmail.com>
2023-12-04 11:01:19 +01:00
Jan Jurzitza b79982d509
Add a new request to get inlay hints (#764)
Co-authored-by: ryuukk <ryuukk.dev@gmail.com>
2023-12-04 09:38:58 +00:00
ryuukk 6d635923f7
Save memory by removing argNames from DSymbol (#763) 2023-11-22 20:45:23 +00:00
ryuukk 09f4e7e932 Add proper symbol qualifier to function symbols 2023-11-14 21:28:04 +01:00
ryuukk 5244f81367
Add support for extended output when requesting symbol's documentation (#757) 2023-11-14 13:59:08 +00:00
imrying f15ca10acf fix(env): change the environment to be /usr/bin/env bash 2023-11-07 10:04:33 +01:00
drpriver dc11cf704d
Fix out of bounds access in complete.d when there is no paren. (#754) 2023-10-01 01:54:09 +02:00
WebFreak001 8a693954d3 add test for ctors not tainting fields 2023-08-19 20:20:26 +02:00
brianush1 60ccfd520e fix parameters in constructors being treated as fields 2023-08-19 20:20:26 +02:00
ryuukk 2e84d9d76a Ensure type is not null for symbols not yet fully resolved 2023-08-13 14:22:25 +02:00
ryuukk 0dd4c78985 Use latest version of msgpack-d to get rid of deprecate warning 2023-07-31 16:12:45 +02:00
ryuukk 70061aee2e Fix deprecation warning 2023-07-31 16:12:45 +02:00
WebFreak001 1c60c5480f fix dsymbol tests 2023-05-20 00:18:03 +02:00
WebFreak001 07576383bf update exended format in test 2023-05-20 00:18:03 +02:00
ryuukk 953d32f2fa run a lightweight version of second phase to make sure no symbols are left out 2023-05-20 00:18:03 +02:00
ryuukk 33fd0db07d added test for #717 2023-05-20 00:18:03 +02:00
WebFreak001 dc1305364c make --logLevel work again, add some test options 2023-05-19 23:53:49 +02:00
WebFreak001 5975b9c535 fix wrong initializer visitors 2023-05-19 23:32:25 +02:00
WebFreak001 eead318246 upgrade libdparse to 0.23.0 2023-05-19 23:32:25 +02:00
WebFreak001 911ce077a5 add auto-generated UFCS correctness checks 2023-05-17 16:15:21 +02:00
WebFreak001 efd8743c9e fix arithemtic promotions for UFCS / parameters 2023-05-17 16:15:21 +02:00
WebFreak001 cdf4b56eb3 store parameter storage classes in DSymbols 2023-05-17 16:15:21 +02:00
WebFreak001 cc6848ff45 ignore more temporary profiling files 2023-05-15 17:11:27 +02:00
WebFreak001 fa98057dcc fix code formatting, fix minor logic errors
Also changes struct and class calltips from `Something(T)` to
`Something!(T)`
2023-05-15 16:56:09 +02:00
WebFreak001 b2c60f24cd make new utilities not public 2023-05-15 16:56:09 +02:00
davu 66e410ae93 Adding finishing touch and test 2023-05-15 16:56:09 +02:00
davu 9484c44b49 Changes according to suggestions 2023-05-15 16:56:09 +02:00
Vushu 4d3bc1142d Update dsymbol/src/dsymbol/builtin/symbols.d
Co-authored-by: Jan Jurzitza <gh@webfreak.org>
2023-05-15 16:56:09 +02:00
Vushu 6edf6a9aee Update src/dcd/server/autocomplete/complete.d
Co-authored-by: Jan Jurzitza <gh@webfreak.org>
2023-05-15 16:56:09 +02:00
davu 371a36e9d5 adding bang completion for template func, struct, class 2023-05-15 16:56:09 +02:00
WebFreak001 0e85f165a9 fix section header being included in some traits 2023-05-02 03:26:00 +02:00
WebFreak001 64e318e707 auto-update ddoc-based constants 2023-05-02 03:26:00 +02:00
davu 218d047760 PR changes 2023-04-01 20:11:21 +02:00
davu 9e4c70ce15 added ufcs completion for string and string literal 2023-04-01 20:11:21 +02:00
Vushu fbd79b258f
refactoring match algorithm to not use recursion for UFCS (#736) 2023-03-23 00:50:46 +01:00
Jan Jurzitza 19e019a57b
add PR comments that show build statistics, speed & RAM usage (#735) 2023-03-22 03:17:01 +01:00
WebFreak001 c324b60da3 fix UFCS with partial completion, fix #731 2023-03-20 03:49:14 +01:00
WebFreak001 109d56b248 extended array & pointer tests 2023-03-19 23:39:50 +01:00
WebFreak001 996141cc1b minor style cleanup 2023-03-19 23:39:50 +01:00
davu 8326bdb428 Included array matching 2023-03-19 23:39:50 +01:00
davu 95e484a202 Adding ufcs to math with type of pointer 2023-03-19 23:39:50 +01:00
WebFreak001 e65e86a744 Document special breadcrumb/symbol names
Also auto-generate the istring value from an UDA, to make it easier to
add/remove things without worrying about breakage.
2023-03-16 22:09:16 +01:00
WebFreak001 22f65d51fe Resolve ptr, array & aa in types, add typeOf field
typeOf field is new tab-delimited field in dcd-client output, so you no
longer need to manually guess types / parse code. Calltips still yield
the actual written type, but in case of "auto", the typeOf column may
contain more useful info.
2023-03-16 16:45:25 +01:00
WebFreak001 690d6254db Properly implement pointer types
- special DCD pointer symbols are actually inserted now
- they are implicitly dereferenced (max 1 deref) for member access
- index accessing them yields proper types (one pointer removed)
- they return standard type properties on pointer pointers
2023-03-16 16:45:25 +01:00