mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-25 08:55:11 +01:00
Upgrade to clang 5.0
The spurious changes to gen/ will hopefully be fixed by a clang-format 5.x revision.
This commit is contained in:
1 parent
f11e1f97c6
commit
abdf46045f
2 files changed
+3
-3
No files matched your search
@@ -23,8 +23,8 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
CcompilersDefault = "clang,gcc"
|
CcompilersDefault = "clang-5.0,gcc"
|
||||||
CcompilersUsage = `comma-separated list of C compilers, e.g. "clang,gcc"`
|
CcompilersUsage = `comma-separated list of C compilers, e.g. "clang-5.0,gcc"`
|
||||||
|
|
||||||
FocusDefault = ""
|
FocusDefault = ""
|
||||||
FocusUsage = `comma-separated list of tests or benchmarks (name prefixes) to focus on, e.g. "wuffs_gif_decode"`
|
FocusUsage = `comma-separated list of tests or benchmarks (name prefixes) to focus on, e.g. "wuffs_gif_decode"`
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ func Do(args []string) error {
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
stdout := &bytes.Buffer{}
|
stdout := &bytes.Buffer{}
|
||||||
cmd := exec.Command("clang-format", "-style=Chromium")
|
cmd := exec.Command("clang-format-5.0", "-style=Chromium")
|
||||||
cmd.Stdin = bytes.NewReader(unformatted)
|
cmd.Stdin = bytes.NewReader(unformatted)
|
||||||
cmd.Stdout = stdout
|
cmd.Stdout = stdout
|
||||||
cmd.Stderr = os.Stderr
|
cmd.Stderr = os.Stderr
|
||||||
|
|||||||
Reference in new issue
Block a user