mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-23 13:03:13 +00:00
Merge pull request #185 from Flipper-Zero/clang-format-update
update version clang-format
This commit is contained in:
commit
bd670c3a6b
3 changed files with 12 additions and 4 deletions
|
@ -6,7 +6,7 @@ AlignEscapedNewlines: Left
|
|||
AlignOperands: true
|
||||
AlignTrailingComments: false
|
||||
AllowAllParametersOfDeclarationOnNextLine: false
|
||||
AllowShortBlocksOnASingleLine: false
|
||||
AllowShortBlocksOnASingleLine: Never
|
||||
AllowShortCaseLabelsOnASingleLine: false
|
||||
AllowShortFunctionsOnASingleLine: None
|
||||
AllowShortIfStatementsOnASingleLine: true
|
||||
|
|
|
@ -4,6 +4,8 @@ ENV PATH /root/.cargo/bin:$PATH
|
|||
|
||||
RUN apt update && \
|
||||
apt install -y --no-install-recommends \
|
||||
software-properties-common \
|
||||
gpg-agent \
|
||||
make \
|
||||
gcc-arm-none-eabi \
|
||||
binutils-arm-none-eabi \
|
||||
|
@ -19,11 +21,17 @@ RUN apt update && \
|
|||
python \
|
||||
python-pip \
|
||||
libstdc++-arm-none-eabi-newlib \
|
||||
libclang-10-dev \
|
||||
clang-format-10 \
|
||||
git \
|
||||
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||
|
||||
RUN wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key| apt-key add - && add-apt-repository "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic main"
|
||||
|
||||
RUN apt update && \
|
||||
apt install -y --no-install-recommends \
|
||||
libclang-12-dev \
|
||||
clang-format-12 \
|
||||
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||
|
||||
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --profile=minimal --target thumbv7em-none-eabi thumbv7em-none-eabihf && \
|
||||
rustup component add rustfmt --toolchain stable-x86_64-unknown-linux-gnu
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
# set -e
|
||||
|
||||
CLANG_FORMAT_BIN="/usr/bin/clang-format-10"
|
||||
CLANG_FORMAT_BIN="/usr/bin/clang-format-12"
|
||||
PATH="$HOME/.cargo/bin:${PATH}"
|
||||
|
||||
PROJECT_DIR=$(pwd)
|
||||
|
|
Loading…
Reference in a new issue