mirror of
https://github.com/open-quantum-safe/liboqs.git
synced 2025-10-16 00:03:40 -04:00
* 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
12 lines
337 B
Bash
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;
|