diff options
author | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2016-12-04 01:13:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-04 01:13:40 +0100 |
commit | 647157f99f773ec8bd731912d942ef41e224e053 (patch) | |
tree | 1c56100805a6a91262ab4c211bc386db3e6b762c | |
parent | Merge pull request #2255 from JayFoxRox/lsl4 (diff) | |
parent | clang-format: Fix coding style (diff) | |
download | yuzu-647157f99f773ec8bd731912d942ef41e224e053.tar yuzu-647157f99f773ec8bd731912d942ef41e224e053.tar.gz yuzu-647157f99f773ec8bd731912d942ef41e224e053.tar.bz2 yuzu-647157f99f773ec8bd731912d942ef41e224e053.tar.lz yuzu-647157f99f773ec8bd731912d942ef41e224e053.tar.xz yuzu-647157f99f773ec8bd731912d942ef41e224e053.tar.zst yuzu-647157f99f773ec8bd731912d942ef41e224e053.zip |
-rwxr-xr-x | .travis-build.sh | 2 | ||||
-rwxr-xr-x | .travis-deps.sh | 7 | ||||
-rw-r--r-- | .travis.yml | 4 | ||||
-rw-r--r-- | src/video_core/pica.h | 2 |
4 files changed, 10 insertions, 5 deletions
diff --git a/.travis-build.sh b/.travis-build.sh index 3310bacc5..df6e236b6 100755 --- a/.travis-build.sh +++ b/.travis-build.sh @@ -12,7 +12,7 @@ fi # Only run clang-format on Linux because we don't have 4.0 on OS X images if [ "$TRAVIS_OS_NAME" = "linux" ]; then # Default clang-format points to default 3.5 version one - CLANG_FORMAT=clang-format-4.0 + CLANG_FORMAT=clang-format-3.9 $CLANG_FORMAT --version if [ "$TRAVIS_EVENT_TYPE" = "pull_request" ]; then diff --git a/.travis-deps.sh b/.travis-deps.sh index 9fd21cc57..1404fe19f 100755 --- a/.travis-deps.sh +++ b/.travis-deps.sh @@ -27,6 +27,13 @@ if [ "$TRAVIS_OS_NAME" = "linux" -o -z "$TRAVIS_OS_NAME" ]; then echo "Using cached SDL2" fi + export DEBIAN_FRONTEND=noninteractive + # Amazing placebo security + curl http://apt.llvm.org/llvm-snapshot.gpg.key | sudo -E apt-key add - + sudo -E add-apt-repository "deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-3.9 main" + sudo -E apt-get -yq update + sudo -E apt-get -yq install clang-format-3.9 + elif [ "$TRAVIS_OS_NAME" = "osx" ]; then brew update brew install qt5 sdl2 dylibbundler diff --git a/.travis.yml b/.travis.yml index a9e7aadd2..cc34e039c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,7 +3,7 @@ language: cpp matrix: include: - os: linux - sudo: true + sudo: required dist: trusty - os: osx sudo: false @@ -17,7 +17,6 @@ addons: apt: sources: - ubuntu-toolchain-r-test - - llvm-toolchain-precise packages: - gcc-6 - g++-6 @@ -25,7 +24,6 @@ addons: - libqt5opengl5-dev - xorg-dev - lib32stdc++6 # For CMake - - clang-format-4.0 cache: directories: diff --git a/src/video_core/pica.h b/src/video_core/pica.h index 99bd59a69..b2db609ec 100644 --- a/src/video_core/pica.h +++ b/src/video_core/pica.h @@ -40,7 +40,7 @@ namespace Pica { // field offset. Otherwise, the compiler will fail to compile this code. #define PICA_REG_INDEX_WORKAROUND(field_name, backup_workaround_index) \ ((typename std::enable_if<backup_workaround_index == PICA_REG_INDEX(field_name), \ - size_t>::type) PICA_REG_INDEX(field_name)) + size_t>::type)PICA_REG_INDEX(field_name)) #endif // _MSC_VER struct Regs { |