From 24ee8c3566c7ef5469df762c1daa21b330e2dd82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Mon, 17 Jun 2019 12:42:05 +0200 Subject: [PATCH] Add script to fix style issues and copyright headers This is only meant to check the validity of the whole codebase every now and then, or to apply clang-format config changes when relevant. --- misc/scripts/fix_style.sh | 60 ++++++++++++++++++++ platform/iphone/camera_ios.h | 6 +- platform/iphone/camera_ios.mm | 6 +- platform/javascript/http_client.h.inc | 2 +- platform/osx/camera_osx.h | 6 +- platform/osx/camera_osx.mm | 6 +- platform/windows/camera_win.cpp | 6 +- platform/windows/camera_win.h | 6 +- scene/resources/default_theme/font_hidpi.inc | 2 + scene/resources/default_theme/font_lodpi.inc | 2 + servers/camera/camera_feed.cpp | 6 +- servers/camera/camera_feed.h | 6 +- servers/camera_server.cpp | 6 +- servers/camera_server.h | 8 +-- 14 files changed, 96 insertions(+), 32 deletions(-) create mode 100755 misc/scripts/fix_style.sh diff --git a/misc/scripts/fix_style.sh b/misc/scripts/fix_style.sh new file mode 100755 index 00000000000..7a335c21ea7 --- /dev/null +++ b/misc/scripts/fix_style.sh @@ -0,0 +1,60 @@ +#!/bin/bash + +# Command line arguments +run_clang_format=false +run_fix_headers=false +usage="Invalid argument. Usage:\n$0