Skip to content

Commit

Permalink
Remove outdated tools (#40)
Browse files Browse the repository at this point in the history
Tools are outdated, remove them.
  • Loading branch information
klauspost authored Apr 8, 2021
1 parent 5ea68ee commit a4d129b
Show file tree
Hide file tree
Showing 62 changed files with 21 additions and 3,694 deletions.
42 changes: 21 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,29 +19,9 @@ Status: STABLE. The format will only change if bugs are found. Please report any
To install the standalone formatter,
`go get -u github.com/klauspost/asmfmt/cmd/asmfmt`

There are also replacements for `gofmt`, `goimports` and `goreturns`, which will process `.s` files alongside your go files when formatting a package.

You can choose which to install:
```
go get -u github.com/klauspost/asmfmt/cmd/gofmt/...
go get -u github.com/klauspost/asmfmt/cmd/goimports/...
go get -u github.com/klauspost/asmfmt/cmd/goreturns/...
```

Note that these require **Go 1.5** due to changes in import paths.

To test if the modified version is used, use `goimports -help`, and the output should look like this:

```
usage: goimports [flags] [path ...]
[flags]
(this version includes asmfmt)
```

Using `gofmt -w mypackage` will Gofmt your Go files and format all assembler files as well.

# updates

* Apr 8, 2021: Add modules info and remove other than main tools.
* Jan 6, 2021: Fix C comments before line comments like `VPCMPEQB Y8/*(DI)*/, Y0, Y1 // comment...`
* Aug 8, 2016: Don't indent comments before non-indented instruction.
* Jun 10, 2016: Fixed crash with end-of-line comments that contained an end-of-block `/*` part.
Expand All @@ -52,6 +32,26 @@ Using `gofmt -w mypackage` will Gofmt your Go files and format all assembler fil
* Dec 17, 2015: Comments are better aligned to the following section.
* Dec 17, 2015: Clean semi-colons in multiple instruction per line.

# goland

To set up a custom File Watcher in Goland,

* Go to Settings -> Tools -> File Watchers
* Press **+** and choose `<custom>` template.
* Name it `asmfmt`
* File Type, Select `x86 Plan 9 Assembly file` (it will apply to all platforms)
* Scope: `Project Files`
* Arguments: `$FilePath$`.
* Output Paths to Refresh: `$FilePath$`
* Working Directory: `$ProjectFileDir$`

Advanced options, Enable:

* [x] Trigger the watcher regardless of syntax errors (IMPORTANT)
* [x] Create output file from stdout

Disable the rest.

# emacs

To automatically format assembler, in `.emacs` add:
Expand Down
100 changes: 0 additions & 100 deletions cmd/gofmt/doc.go

This file was deleted.

163 changes: 0 additions & 163 deletions cmd/gofmt/format/format.go

This file was deleted.

Loading

0 comments on commit a4d129b

Please sign in to comment.