summaryrefslogtreecommitdiff
path: root/tools/infrastructure
diff options
context:
space:
mode:
authorjacobkeeler <jacob.keeler@livioradio.com>2019-04-29 17:23:29 -0400
committerjacobkeeler <jacob.keeler@livioradio.com>2019-04-29 17:23:29 -0400
commitdc906fbd1b3609c049d96d82f443fb678dd84d6f (patch)
treef52751104a9e7ab9c010143f878bcf01a4b23863 /tools/infrastructure
parent9165e83afbb7c852d90108dbff2e458ca10f1fae (diff)
downloadsdl_core-dc906fbd1b3609c049d96d82f443fb678dd84d6f.tar.gz
Update style script
Diffstat (limited to 'tools/infrastructure')
-rwxr-xr-xtools/infrastructure/check_style.sh2
-rwxr-xr-xtools/infrastructure/git-hooks/pre-commit6
2 files changed, 4 insertions, 4 deletions
diff --git a/tools/infrastructure/check_style.sh b/tools/infrastructure/check_style.sh
index 08ae1b9860..006dd340d9 100755
--- a/tools/infrastructure/check_style.sh
+++ b/tools/infrastructure/check_style.sh
@@ -27,7 +27,7 @@
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-FORMATER=clang-format-3.6
+FORMATER=clang-format-6.0
INSTALL_CMD="sudo apt-get install -f $FORMATER"
if [ "$1" = "--help" ]
diff --git a/tools/infrastructure/git-hooks/pre-commit b/tools/infrastructure/git-hooks/pre-commit
index 9c46f195f3..710f0656c3 100755
--- a/tools/infrastructure/git-hooks/pre-commit
+++ b/tools/infrastructure/git-hooks/pre-commit
@@ -72,10 +72,10 @@ if [ "$?" -ne "0" ]; then
exit 1
fi
-# Auto update c++ files with clang-format-3.6
-CLANG_FORMAT=clang-format-3.6
+# Auto update c++ files with clang-format-6.0
+CLANG_FORMAT=clang-format-6.0
# Verify clang-format
-CLANG_FORMAT_REQUIRED_VERSION=3.6
+CLANG_FORMAT_REQUIRED_VERSION=6.0
CLANG_FORMAT_CURRENT_VERSION=$($CLANG_FORMAT -version)
if [[ $CLANG_FORMAT_CURRENT_VERSION != *$CLANG_FORMAT_REQUIRED_VERSION* ]]
then