Project cleanup
This commit is contained in:
parent
459be4704a
commit
d7e9bab5e8
32
build.bat
32
build.bat
|
@ -1,28 +1,28 @@
|
||||||
del /f containers\src\std\allocator.d
|
del /f containers\src\std\allocator.d
|
||||||
|
|
||||||
dmd^
|
dmd^
|
||||||
client.d^
|
src\client.d^
|
||||||
messages.d^
|
src\messages.d^
|
||||||
stupidlog.d^
|
src\stupidlog.d^
|
||||||
msgpack-d/src/msgpack.d^
|
msgpack-d/src/msgpack.d^
|
||||||
-Imsgpack-d/src^
|
-Imsgpack-d/src^
|
||||||
-release -inline -O -wi^
|
-release -inline -O -wi^
|
||||||
-ofdcd-client
|
-ofdcd-client
|
||||||
|
|
||||||
dmd^
|
dmd^
|
||||||
actypes.d^
|
src\actypes.d^
|
||||||
conversion/astconverter.d^
|
src\conversion/astconverter.d^
|
||||||
conversion/first.d^
|
src\conversion/first.d^
|
||||||
conversion/second.d^
|
src\conversion/second.d^
|
||||||
conversion/third.d^
|
src\conversion/third.d^
|
||||||
autocomplete.d^
|
src\autocomplete.d^
|
||||||
constants.d^
|
src\constants.d^
|
||||||
messages.d^
|
src\messages.d^
|
||||||
modulecache.d^
|
src\modulecache.d^
|
||||||
semantic.d^
|
src\semantic.d^
|
||||||
server.d^
|
src\server.d^
|
||||||
stupidlog.d^
|
src\stupidlog.d^
|
||||||
string_interning.d^
|
src\string_interning.d^
|
||||||
libdparse/src/std/d/ast.d^
|
libdparse/src/std/d/ast.d^
|
||||||
libdparse/src/std/d/entities.d^
|
libdparse/src/std/d/entities.d^
|
||||||
libdparse/src/std/d/lexer.d^
|
libdparse/src/std/d/lexer.d^
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit a91eb13e38a8560b9dda025b1c8ea837018e8252
|
Subproject commit a9cbecbba471a08aa61f8e7aa844b4d0aae73262
|
52
makefile
52
makefile
|
@ -9,9 +9,17 @@ DMD = dmd
|
||||||
GDC = gdc
|
GDC = gdc
|
||||||
#LDC = ldc
|
#LDC = ldc
|
||||||
|
|
||||||
CLIENT_SRC = client.d\
|
report:
|
||||||
messages.d\
|
dscanner --report src > dscanner-report.json
|
||||||
stupidlog.d\
|
sonar-runner
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -rf bin
|
||||||
|
rm -f dscanner-report.json
|
||||||
|
|
||||||
|
CLIENT_SRC = src/client.d\
|
||||||
|
src/messages.d\
|
||||||
|
src/stupidlog.d\
|
||||||
msgpack-d/src/msgpack.d
|
msgpack-d/src/msgpack.d
|
||||||
|
|
||||||
DMD_CLIENT_FLAGS = -Imsgpack-d/src\
|
DMD_CLIENT_FLAGS = -Imsgpack-d/src\
|
||||||
|
@ -20,26 +28,26 @@ DMD_CLIENT_FLAGS = -Imsgpack-d/src\
|
||||||
-inline\
|
-inline\
|
||||||
-O\
|
-O\
|
||||||
-wi\
|
-wi\
|
||||||
-ofdcd-client
|
-ofbin/dcd-client
|
||||||
|
|
||||||
GDC_CLIENT_FLAGS = -Imsgpack-d/src\
|
GDC_CLIENT_FLAGS = -Imsgpack-d/src\
|
||||||
-O3\
|
-O3\
|
||||||
-frelease\
|
-frelease\
|
||||||
-odcd-client
|
-obin/dcd-client
|
||||||
|
|
||||||
SERVER_SRC = actypes.d\
|
SERVER_SRC = src/actypes.d\
|
||||||
conversion/astconverter.d\
|
src/conversion/astconverter.d\
|
||||||
conversion/first.d\
|
src/conversion/first.d\
|
||||||
conversion/second.d\
|
src/conversion/second.d\
|
||||||
conversion/third.d\
|
src/conversion/third.d\
|
||||||
autocomplete.d\
|
src/autocomplete.d\
|
||||||
constants.d\
|
src/constants.d\
|
||||||
messages.d\
|
src/messages.d\
|
||||||
modulecache.d\
|
src/modulecache.d\
|
||||||
semantic.d\
|
src/semantic.d\
|
||||||
server.d\
|
src/server.d\
|
||||||
stupidlog.d\
|
src/stupidlog.d\
|
||||||
string_interning.d\
|
src/string_interning.d\
|
||||||
libdparse/src/std/d/ast.d\
|
libdparse/src/std/d/ast.d\
|
||||||
libdparse/src/std/d/entities.d\
|
libdparse/src/std/d/entities.d\
|
||||||
libdparse/src/std/d/lexer.d\
|
libdparse/src/std/d/lexer.d\
|
||||||
|
@ -65,27 +73,31 @@ DMD_SERVER_FLAGS = -Icontainers/src\
|
||||||
-O\
|
-O\
|
||||||
-release\
|
-release\
|
||||||
-inline\
|
-inline\
|
||||||
-ofdcd-server
|
-ofbin/dcd-server
|
||||||
|
|
||||||
GDC_SERVER_FLAGS = -Imsgpack-d/src\
|
GDC_SERVER_FLAGS = -Imsgpack-d/src\
|
||||||
-Ilibdparse/src\
|
-Ilibdparse/src\
|
||||||
-O3\
|
-O3\
|
||||||
-frelease\
|
-frelease\
|
||||||
-odcd-server
|
-obin/dcd-server
|
||||||
|
|
||||||
dmdclient:
|
dmdclient:
|
||||||
|
mkdir -p bin
|
||||||
rm -f containers/src/std/allocator.d
|
rm -f containers/src/std/allocator.d
|
||||||
${DMD} ${CLIENT_SRC} ${DMD_CLIENT_FLAGS}
|
${DMD} ${CLIENT_SRC} ${DMD_CLIENT_FLAGS}
|
||||||
|
|
||||||
dmdserver:
|
dmdserver:
|
||||||
|
mkdir -p bin
|
||||||
rm -f containers/src/std/allocator.d
|
rm -f containers/src/std/allocator.d
|
||||||
${DMD} ${SERVER_SRC} ${DMD_SERVER_FLAGS}
|
${DMD} ${SERVER_SRC} ${DMD_SERVER_FLAGS}
|
||||||
|
|
||||||
gdcclient:
|
gdcclient:
|
||||||
|
mkdir -p bin
|
||||||
rm -f containers/src/std/allocator.d
|
rm -f containers/src/std/allocator.d
|
||||||
${GDC} ${CLIENT_SRC} ${GDC_CLIENT_FLAGS}
|
${GDC} ${CLIENT_SRC} ${GDC_CLIENT_FLAGS}
|
||||||
|
|
||||||
gdcserver:
|
gdcserver:
|
||||||
|
mkdir -p bin
|
||||||
rm -f containers/src/std/allocator.d
|
rm -f containers/src/std/allocator.d
|
||||||
${GDC} ${SERVER_SRC} ${GDC_SERVER_FLAGS}
|
${GDC} ${SERVER_SRC} ${GDC_SERVER_FLAGS}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
sonar.projectKey=dcd
|
||||||
|
sonar.projectName=DCD
|
||||||
|
sonar.projectVersion=1.0
|
||||||
|
sonar.sourceEncoding=UTF-8
|
||||||
|
sonar.sources=.
|
|
@ -121,7 +121,7 @@ final class FirstPass : ASTVisitor
|
||||||
CompletionKind.functionName, symbolFile, dec.name.index,
|
CompletionKind.functionName, symbolFile, dec.name.index,
|
||||||
dec.returnType);
|
dec.returnType);
|
||||||
processParameters(symbol, dec.returnType, symbol.acSymbol.name,
|
processParameters(symbol, dec.returnType, symbol.acSymbol.name,
|
||||||
dec.parameters, dec.comment);
|
dec.parameters);
|
||||||
symbol.protection = protection;
|
symbol.protection = protection;
|
||||||
symbol.parent = currentSymbol;
|
symbol.parent = currentSymbol;
|
||||||
symbol.acSymbol.doc = internString(dec.comment);
|
symbol.acSymbol.doc = internString(dec.comment);
|
||||||
|
@ -512,7 +512,7 @@ private:
|
||||||
{
|
{
|
||||||
SemanticSymbol* symbol = allocateSemanticSymbol("*constructor*",
|
SemanticSymbol* symbol = allocateSemanticSymbol("*constructor*",
|
||||||
CompletionKind.functionName, symbolFile, location);
|
CompletionKind.functionName, symbolFile, location);
|
||||||
processParameters(symbol, null, "this", parameters, doc);
|
processParameters(symbol, null, "this", parameters);
|
||||||
symbol.protection = protection;
|
symbol.protection = protection;
|
||||||
symbol.parent = currentSymbol;
|
symbol.parent = currentSymbol;
|
||||||
symbol.acSymbol.doc = internString(doc);
|
symbol.acSymbol.doc = internString(doc);
|
||||||
|
@ -543,7 +543,7 @@ private:
|
||||||
}
|
}
|
||||||
|
|
||||||
void processParameters(SemanticSymbol* symbol, const Type returnType,
|
void processParameters(SemanticSymbol* symbol, const Type returnType,
|
||||||
string functionName, const Parameters parameters, string doc)
|
string functionName, const Parameters parameters)
|
||||||
{
|
{
|
||||||
if (parameters !is null)
|
if (parameters !is null)
|
||||||
{
|
{
|
Loading…
Reference in New Issue