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:
Nigel Tao committed 2018-03-21 13:08:16 +11:00
1 parent f11e1f97c6
commit abdf46045f
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -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"`
+1 -1
View File
@@ -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