liboqs/.travis/install-clang-format-linux.sh
Tancrède Lepoint c1568a137d Clang format instead of astyle (#84)
* replacing astyle by clang-format #56

* sh instead of bash

* sudo required now...

* prettyprint with clang-format

* debugging clang format

* order of include mattered in newhope

* trying again

* order in mcbits too

* includes in mcbits

* Trying again

* Change makefile for clangformat

* removing conditionals in makefile

* Order of include in mcbits:

* CLANGFORMAT for linux and macOS

* CLANGFORMAT for linux and macOS

* CLANGFORMAT for linux and macOS

* Warning of clang
2017-01-11 09:52:10 -05:00

12 lines
337 B
Bash

#!/bin/bash
#
# Install clang-format on Linux
#
if [ ! -x "$(which clang-format-3.9)" ]; then
sudo add-apt-repository 'deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-3.9 main'
wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add -
sudo apt-get update -qq
sudo apt-get install -qq -y clang-format-3.9
fi;