Skip to content
Snippets Groups Projects
Unverified Commit 2ae6c877 authored by Weronika Lewandowska's avatar Weronika Lewandowska Committed by GitHub
Browse files

Merge pull request #5416 from kilobyte/clang-format-9

bump a reference to clang-format to version 9
parents 4059ab35 4fee2218
No related branches found
No related tags found
No related merge requests found
......@@ -75,7 +75,7 @@ Before contributing please remember to run:
```
This will check all C/C++ files in the tree for style issues. To check C++
files you have to have clang-format version 6.0, otherwise they will be
files you have to have clang-format version 9.0, otherwise they will be
skipped. If you want to run this target automatically at build time, you can
pass CSTYLEON=1 to make. If you want cstyle to be run, but not fail the build,
pass CSTYLEON=2 to make.
......
#!/usr/bin/env bash
# SPDX-License-Identifier: BSD-3-Clause
# Copyright 2016-2020, Intel Corporation
# Copyright 2016-2022, Intel Corporation
#
# utils/style_check.sh -- common style checking script
#
......@@ -12,6 +12,9 @@ CLANG_ARGS=()
FLAKE8_ARGS=()
CHECK_TYPE=$1
# When updating, please search for all references to "clang-format" and update
# them as well; at this time these are CONTRIBUTING.md src/common.inc and
# docker images.
[ -z "$clang_format_bin" ] && which clang-format-9 >/dev/null &&
clang_format_bin=clang-format-9
[ -z "$clang_format_bin" ] && which clang-format >/dev/null &&
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment