Skip to content

Commit 43b2e48

Browse files
committed
refactor: remove libdparse in tokens.d
Signed-off-by: Prajwal S N <prajwalnadig21@gmail.com>
1 parent 1e765fb commit 43b2e48

File tree

6 files changed

+208
-180
lines changed

6 files changed

+208
-180
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@
77
[submodule "d-test-utils"]
88
path = d-test-utils
99
url = https://github.com/dlang-community/d-test-utils.git
10+
[submodule "dmd"]
11+
path = dmd
12+
url = https://github.com/dlang/dmd.git

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ when using the **--inplace** option.
1616

1717
### Building from source using Make
1818
* Clone the repository
19-
* Run ```git submodule update --init --recursive``` in the dfmt directory
20-
* To compile with DMD, run ```make``` in the dfmt directory. To compile with
21-
LDC, run ```make ldc``` instead. The generated binary will be placed in ```dfmt/bin/```.
19+
* Run `git submodule update --init --recursive` in the dfmt directory
20+
* To compile with DMD, run `make` in the dfmt directory. To compile with
21+
LDC, run `make ldc` instead. The generated binary will be placed in `dfmt/bin/`.
2222

2323
### Building from source using dub
2424
* Clone the repository
@@ -68,8 +68,8 @@ dfmt --inplace --space_after_cast=false --max_line_length=80 \
6868
```
6969

7070
## Disabling formatting
71-
Formatting can be temporarily disabled by placing the comments ```// dfmt off```
72-
and ```// dfmt on``` around code that you do not want formatted.
71+
Formatting can be temporarily disabled by placing the comments `// dfmt off`
72+
and `// dfmt on` around code that you do not want formatted.
7373

7474
```d
7575
void main(string[] args)

dmd

Submodule dmd added at b859107

dub.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
"targetType": "autodetect",
55
"license": "BSL-1.0",
66
"dependencies": {
7-
"libdparse": ">=0.19.2 <1.0.0"
7+
"libdparse": ">=0.19.2 <1.0.0",
8+
"dmd": {
9+
"repository": "git+https://github.com/dlang/dmd.git"
10+
}
811
},
912
"targetPath" : "bin/",
1013
"targetName" : "dfmt",

makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
SRC := $(shell find src -name "*.d") \
22
$(shell find libdparse/src -name "*.d") \
33
$(shell find stdx-allocator/source -name "*.d")
4-
INCLUDE_PATHS := -Ilibdparse/src -Istdx-allocator/source -Isrc -Jbin
5-
DMD_COMMON_FLAGS := -dip25 -w $(INCLUDE_PATHS)
4+
INCLUDE_PATHS := -Ilibdparse/src -Istdx-allocator/source -Isrc -Idmd/compiler/src -Jbin
5+
DMD_COMMON_FLAGS := -w $(INCLUDE_PATHS)
66
DMD_DEBUG_FLAGS := -debug -g $(DMD_COMMON_FLAGS)
77
DMD_FLAGS := -O -inline $(DMD_COMMON_FLAGS)
88
DMD_TEST_FLAGS := -unittest -g $(DMD_COMMON_FLAGS)

0 commit comments

Comments
 (0)