Documentation ¶
Overview ¶
Command qbefmt formats QBE programs.
Without an explicit path, it processes the standard input. Given a file, it operates on that file; given a directory, it operates on all .qbe files in that directory, recursively. (Files starting with a period are ignored.) By default, qbefmt prints the reformatted sources to standard output.
Installation ¶
To install/update qbefmt invoke:
$ go get [-u] modernc.org/qbe/qbefmt
Online documentation ¶
See https://godoc.org/modernc.org/qbe/qbefmt.
Usage ¶
To format QBE source code invoke
$ qbefmt [flags] [path ...]
Flags ¶
The flags are:
-w Do not print reformatted sources to standard output. If a file's formatting is different from qbefmt's, overwrite it with qbefmt's version. If an error occurred during overwriting, an attempt is made to restore the original file.
Click to show internal directories.
Click to hide internal directories.