From 033559206c624e245530573ea70a8d70e522c7b5 Mon Sep 17 00:00:00 2001 From: chriseth Date: Thu, 27 May 2021 17:38:15 +0200 Subject: [PATCH] Check for style of namespace. --- scripts/check_style.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/check_style.sh b/scripts/check_style.sh index f3e00d8ed..78b0aa23c 100755 --- a/scripts/check_style.sh +++ b/scripts/check_style.sh @@ -47,6 +47,7 @@ FORMATERROR=$( preparedGrep "\<(if|for|while|switch)\(" # no space after "if", "for", "while" or "switch" preparedGrep "\\s*\([^=]*\>\s:\s.*\)" # no space before range based for-loop preparedGrep "\\s*\(.*\)\s*\{\s*$" # "{\n" on same line as "if" + preparedGrep "namespace .*\{" preparedGrep "[,\(<]\s*const " # const on left side of type preparedGrep "^\s*(static)?\s*const " # const on left side of type (beginning of line) preparedGrep "^ [^*]|[^*] | [^*]" # uses spaces for indentation or mixes spaces and tabs