mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-24 00:52:18 +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
8 files changed
+15
-15
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
|
||||||
|
|||||||
+1
-1
@@ -177,7 +177,7 @@ static inline void wuffs_base__image_config__initialize(
|
|||||||
|
|
||||||
#endif // WUFFS_BASE_HEADER_H
|
#endif // WUFFS_BASE_HEADER_H
|
||||||
|
|
||||||
// ---------------- Use Declarations
|
// ---------------- Use Declarations
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|||||||
+1
-1
@@ -177,7 +177,7 @@ static inline void wuffs_base__image_config__initialize(
|
|||||||
|
|
||||||
#endif // WUFFS_BASE_HEADER_H
|
#endif // WUFFS_BASE_HEADER_H
|
||||||
|
|
||||||
// ---------------- Use Declarations
|
// ---------------- Use Declarations
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|||||||
+4
-4
@@ -177,16 +177,16 @@ static inline void wuffs_base__image_config__initialize(
|
|||||||
|
|
||||||
#endif // WUFFS_BASE_HEADER_H
|
#endif // WUFFS_BASE_HEADER_H
|
||||||
|
|
||||||
// ---------------- Use Declarations
|
// ---------------- Use Declarations
|
||||||
|
|
||||||
// ---------------- BEGIN USE "std/deflate"
|
// ---------------- BEGIN USE "std/deflate"
|
||||||
|
|
||||||
#ifndef WUFFS_DEFLATE_H
|
#ifndef WUFFS_DEFLATE_H
|
||||||
#define WUFFS_DEFLATE_H
|
#define WUFFS_DEFLATE_H
|
||||||
|
|
||||||
// Code generated by wuffs-c. DO NOT EDIT.
|
// Code generated by wuffs-c. DO NOT EDIT.
|
||||||
|
|
||||||
// ---------------- Use Declarations
|
// ---------------- Use Declarations
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|||||||
+1
-1
@@ -177,7 +177,7 @@ static inline void wuffs_base__image_config__initialize(
|
|||||||
|
|
||||||
#endif // WUFFS_BASE_HEADER_H
|
#endif // WUFFS_BASE_HEADER_H
|
||||||
|
|
||||||
// ---------------- Use Declarations
|
// ---------------- Use Declarations
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|||||||
+1
-1
@@ -177,7 +177,7 @@ static inline void wuffs_base__image_config__initialize(
|
|||||||
|
|
||||||
#endif // WUFFS_BASE_HEADER_H
|
#endif // WUFFS_BASE_HEADER_H
|
||||||
|
|
||||||
// ---------------- Use Declarations
|
// ---------------- Use Declarations
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|||||||
+4
-4
@@ -177,16 +177,16 @@ static inline void wuffs_base__image_config__initialize(
|
|||||||
|
|
||||||
#endif // WUFFS_BASE_HEADER_H
|
#endif // WUFFS_BASE_HEADER_H
|
||||||
|
|
||||||
// ---------------- Use Declarations
|
// ---------------- Use Declarations
|
||||||
|
|
||||||
// ---------------- BEGIN USE "std/deflate"
|
// ---------------- BEGIN USE "std/deflate"
|
||||||
|
|
||||||
#ifndef WUFFS_DEFLATE_H
|
#ifndef WUFFS_DEFLATE_H
|
||||||
#define WUFFS_DEFLATE_H
|
#define WUFFS_DEFLATE_H
|
||||||
|
|
||||||
// Code generated by wuffs-c. DO NOT EDIT.
|
// Code generated by wuffs-c. DO NOT EDIT.
|
||||||
|
|
||||||
// ---------------- Use Declarations
|
// ---------------- Use Declarations
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|||||||
Reference in new issue
Block a user