Use newer clang+llvm+clang-format.
This commit is contained in:
parent
2ad5ee8ff6
commit
ec15da8b14
|
@ -3,17 +3,3 @@ BasedOnStyle: Google
|
||||||
DerivePointerAlignment: false
|
DerivePointerAlignment: false
|
||||||
PointerAlignment: Left
|
PointerAlignment: Left
|
||||||
SortIncludes: true
|
SortIncludes: true
|
||||||
|
|
||||||
# The following should match defaults on Windows,
|
|
||||||
# but were found to be different on Travis.
|
|
||||||
|
|
||||||
AlignConsecutiveMacros: false
|
|
||||||
AllowAllArgumentsOnNextLine: true
|
|
||||||
AllowAllConstructorInitializersOnNextLine: true
|
|
||||||
AllowShortLambdasOnASingleLine: All
|
|
||||||
AllowShortIfStatementsOnASingleLine: WithoutElse
|
|
||||||
BraceWrapping:
|
|
||||||
AfterCaseLabel: false
|
|
||||||
SplitEmptyNamespace: true
|
|
||||||
IncludeBlocks: Regroup
|
|
||||||
SpaceAfterLogicalNot: false
|
|
||||||
|
|
15
.travis.yml
15
.travis.yml
|
@ -10,10 +10,11 @@ addons:
|
||||||
apt:
|
apt:
|
||||||
sources:
|
sources:
|
||||||
- ubuntu-toolchain-r-test
|
- ubuntu-toolchain-r-test
|
||||||
- llvm-toolchain-bionic-7
|
- llvm-toolchain-9
|
||||||
packages:
|
packages:
|
||||||
- clang-7
|
- clang-9
|
||||||
- llvm-7-dev
|
- clang-format-9
|
||||||
|
- llvm-9-dev
|
||||||
- g++-8
|
- g++-8
|
||||||
- python3
|
- python3
|
||||||
- libc++-dev
|
- libc++-dev
|
||||||
|
@ -28,10 +29,10 @@ addons:
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- env: C_COMPILER=clang-7 CXX_COMPILER=clang++-7 LINT=true
|
- env: C_COMPILER=clang-9 CXX_COMPILER=clang++-9 LINT=true
|
||||||
sudo: false
|
sudo: false
|
||||||
- env: C_COMPILER=clang-7 CXX_COMPILER=clang++-7 BUILD=true CONFIG=Debug
|
- env: C_COMPILER=clang-9 CXX_COMPILER=clang++-9 BUILD=true CONFIG=Debug
|
||||||
- env: C_COMPILER=clang-7 CXX_COMPILER=clang++-7 BUILD=true CONFIG=Release
|
- env: C_COMPILER=clang-9 CXX_COMPILER=clang++-9 BUILD=true CONFIG=Release
|
||||||
|
|
||||||
git:
|
git:
|
||||||
# We handle submodules ourselves in xenia-build setup.
|
# We handle submodules ourselves in xenia-build setup.
|
||||||
|
@ -44,6 +45,8 @@ before_script:
|
||||||
# Dump useful info.
|
# Dump useful info.
|
||||||
- $CXX --version
|
- $CXX --version
|
||||||
- python3 --version
|
- python3 --version
|
||||||
|
- clang-format-9 --version
|
||||||
|
- clang-format-9 -style=file -dump-config
|
||||||
# Add Vulkan dependencies.
|
# Add Vulkan dependencies.
|
||||||
- travis_retry wget http://mirrors.kernel.org/ubuntu/pool/universe/v/vulkan/libvulkan1_$LIBVULKAN_VERSION+dfsg1-1_amd64.deb
|
- travis_retry wget http://mirrors.kernel.org/ubuntu/pool/universe/v/vulkan/libvulkan1_$LIBVULKAN_VERSION+dfsg1-1_amd64.deb
|
||||||
- travis_retry wget http://mirrors.kernel.org/ubuntu/pool/universe/v/vulkan/libvulkan-dev_$LIBVULKAN_VERSION+dfsg1-1_amd64.deb
|
- travis_retry wget http://mirrors.kernel.org/ubuntu/pool/universe/v/vulkan/libvulkan-dev_$LIBVULKAN_VERSION+dfsg1-1_amd64.deb
|
||||||
|
|
|
@ -310,7 +310,7 @@ def get_clang_format_binary():
|
||||||
attempts = [
|
attempts = [
|
||||||
'C:\\Program Files\\LLVM\\bin\\clang-format.exe',
|
'C:\\Program Files\\LLVM\\bin\\clang-format.exe',
|
||||||
'C:\\Program Files (x86)\\LLVM\\bin\\clang-format.exe',
|
'C:\\Program Files (x86)\\LLVM\\bin\\clang-format.exe',
|
||||||
'clang-format-3.8',
|
'clang-format-9',
|
||||||
'clang-format',
|
'clang-format',
|
||||||
]
|
]
|
||||||
for binary in attempts:
|
for binary in attempts:
|
||||||
|
@ -318,7 +318,7 @@ def get_clang_format_binary():
|
||||||
return binary
|
return binary
|
||||||
print('ERROR: clang-format is not on PATH')
|
print('ERROR: clang-format is not on PATH')
|
||||||
print('LLVM is available from https://llvm.org/releases/download.html')
|
print('LLVM is available from https://llvm.org/releases/download.html')
|
||||||
print('At least version 3.8 is required.')
|
print('At least version 9 is required.')
|
||||||
print('See docs/style_guide.md for instructions on how to get it.')
|
print('See docs/style_guide.md for instructions on how to get it.')
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue