Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions .github/workflows/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,6 @@ jobs:
include:
- { do_report: 1, build: { type: dub, version: 'current' }, host: 'ubuntu-22.04', compiler: { version: dmd-latest, dmd: dmd } }

- compiler:
dmd: dmd
host: macos-13
build:
type: 'dub'
version: 'current'

runs-on: ${{ matrix.host }}

steps:
Expand Down
2 changes: 1 addition & 1 deletion DCD
Submodule DCD updated 70 files
+5 −0 .editorconfig
+38 −16 .github/workflows/ci.yml
+1 −1 .github/workflows/pr_info_intro.yml
+4 −6 .github/workflows/pr_info_post.yml
+3 −3 .github/workflows/pr_info_untrusted.yml
+7 −6 .github/workflows/release.yml
+2 −0 .gitignore
+13 −0 README.md
+295 −87 common/src/dcd/common/constants2.d
+32 −27 common/src/dcd/common/messages.d
+3 −0 common/src/dcd/common/socket.d
+1 −1 constants-gen/pragma.dd
+314 −85 constants-gen/traits.dd
+32 −5 dsymbol/src/dsymbol/builtin/names.d
+54 −18 dsymbol/src/dsymbol/conversion/first.d
+1 −0 dsymbol/src/dsymbol/conversion/package.d
+59 −25 dsymbol/src/dsymbol/conversion/second.d
+0 −2 dsymbol/src/dsymbol/conversion/third.d
+17 −11 dsymbol/src/dsymbol/symbol.d
+1 −1 dsymbol/src/dsymbol/tests.d
+0 −1 dsymbol/src/dsymbol/type_lookup.d
+1 −1 dub.json
+2 −2 dub.selections.json
+1 −1 libdparse
+8 −4 makefile
+1 −1 msgpack-d
+34 −5 src/dcd/client/client.d
+6 −1 src/dcd/server/autocomplete/complete.d
+1 −1 src/dcd/server/autocomplete/doc.d
+111 −0 src/dcd/server/autocomplete/inlayhints.d
+5 −5 src/dcd/server/autocomplete/localuse.d
+1 −0 src/dcd/server/autocomplete/package.d
+2 −1 src/dcd/server/autocomplete/util.d
+5 −0 src/dcd/server/main.d
+3 −0 src/dcd/server/server.d
+29 −21 tests/extra/tc_ufcs_all_kinds/generate_tests.d
+19 −2 tests/extra/tc_ufcs_all_kinds/run.sh
+21 −2 tests/run_tests.sh
+1 −0 tests/tc032/.gitignore
+0 −1 tests/tc032/expected1.txt
+2 −1 tests/tc032/run.sh
+2 −2 tests/tc033/run.sh
+1 −0 tests/tc034/.gitignore
+0 −3 tests/tc034/expected1.txt
+2 −1 tests/tc034/run.sh
+1 −1 tests/tc035/run.sh
+4 −4 tests/tc036/run.sh
+2 −2 tests/tc062/run.sh
+6 −6 tests/tc_access_modifiers/run.sh
+8 −0 tests/tc_casts/expected1.txt
+0 −0 tests/tc_casts/expected2.txt
+34 −0 tests/tc_casts/file.d
+11 −0 tests/tc_casts/run.sh
+3 −0 tests/tc_ctors/expected.txt
+19 −0 tests/tc_ctors/file.d
+8 −0 tests/tc_ctors/run.sh
+1 −1 tests/tc_import_symbol_list/run.sh
+2 −0 tests/tc_inlay_hints/expected.txt
+17 −0 tests/tc_inlay_hints/file.d
+5 −0 tests/tc_inlay_hints/run.sh
+1 −1 tests/tc_locate_ufcs_function/run.sh
+1 −1 tests/tc_recursive_public_import/run.sh
+5 −0 tests/tc_traits/expected.txt
+20 −0 tests/tc_typeof/expected1.txt
+2 −0 tests/tc_typeof/expected2.txt
+8 −0 tests/tc_typeof/expected3.txt
+14 −0 tests/tc_typeof/run.sh
+32 −0 tests/tc_typeof/test1.d
+15 −0 tests/tc_typeof/test2.d
+10 −0 tests/tc_typeof/test3.d
4 changes: 2 additions & 2 deletions dub.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"built_with_dub"
],
"dependencies": {
"libdparse": ">=0.23.1 <0.26.0",
"dcd:dsymbol": ">=0.16.0-beta.2 <0.17.0",
"libdparse": ">=0.24.0 <0.26.0",
"dcd:dsymbol": ">=0.16.2 <0.17.0",
"inifiled": "~>1.3.1",
"emsi_containers": "~>0.9.0",
"libddoc": "~>0.8.0"
Expand Down
4 changes: 2 additions & 2 deletions dub.selections.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"fileVersion": 1,
"versions": {
"dcd": "0.16.0-beta.2",
"dcd": "0.16.2",
"dsymbol": "0.13.0",
"emsi_containers": "0.9.0",
"inifiled": "1.3.3",
"libddoc": "0.8.0",
"libdparse": "0.25.0",
"libdparse": "0.25.1",
"stdx-allocator": "2.77.5"
}
}
2 changes: 1 addition & 1 deletion libdparse
Submodule libdparse updated 1 files
+2 −1 src/dparse/parser.d
12 changes: 5 additions & 7 deletions src/dscanner/analysis/mismatched_args.d
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
module dscanner.analysis.mismatched_args;

import dparse.ast;
import dparse.lexer : tok, Token;
import dscanner.analysis.base;
import dscanner.utils : safeAccess;
import dsymbol.builtin.names;
import dsymbol.scope_;
import dsymbol.symbol;
import dparse.ast;
import dparse.lexer : tok, Token;
import dsymbol.builtin.names;

/// Checks for mismatched argument and parameter names
final class MismatchedArgumentCheck : BaseAnalyzer
Expand All @@ -22,8 +22,6 @@ final class MismatchedArgumentCheck : BaseAnalyzer
override void visit(const FunctionCallExpression fce)
{
import std.typecons : scoped;
import std.algorithm.iteration : each, map;
import std.array : array;

if (fce.arguments is null)
return;
Expand Down Expand Up @@ -53,7 +51,7 @@ final class MismatchedArgumentCheck : BaseAnalyzer
{
// The cast is a hack because .array() confuses the compiler's overload
// resolution code.
const(istring)[] params = sym is null ? [] : sym.argNames[].map!(a => cast() a).array();
const(istring)[] params = sym is null ? [] : sym.argNames;
const ArgMismatch[] mismatches = compareArgsToParams(params, args);
if (mismatches.length == 0)
matched = true;
Expand Down Expand Up @@ -251,8 +249,8 @@ unittest

unittest
{
import dscanner.analysis.config : Check, disabledConfig, StaticAnalysisConfig;
import dscanner.analysis.helpers : assertAnalyzerWarnings;
import dscanner.analysis.config : StaticAnalysisConfig, Check, disabledConfig;
import std.stdio : stderr;

StaticAnalysisConfig sac = disabledConfig();
Expand Down
8 changes: 4 additions & 4 deletions src/dscanner/analysis/unused.d
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ module dscanner.analysis.unused;
import dparse.ast;
import dparse.lexer;
import dscanner.analysis.base;
import std.container;
import std.regex : Regex, regex, matchAll;
import dsymbol.scope_ : Scope;
import std.algorithm : all;
import std.container;
import std.regex : matchAll, regex, Regex;

/**
* Checks for unused variables.
Expand Down Expand Up @@ -86,10 +86,10 @@ abstract class UnusedIdentifierCheck : BaseAnalyzer

override void visit(const SwitchStatement switchStatement)
{
if (switchStatement.expression !is null)
if (switchStatement.condition !is null && switchStatement.condition.expression !is null)
{
interestDepth++;
switchStatement.expression.accept(this);
switchStatement.condition.expression.accept(this);
interestDepth--;
}
switchStatement.accept(this);
Expand Down
Loading