From 22620e185cddcea12bc345da1ee85b7f8cf4f705 Mon Sep 17 00:00:00 2001 From: Thomas Medioni Date: Fri, 5 May 2017 13:33:14 +0200 Subject: [PATCH] style: allow the use of initializer-lists in if * tests/sanity/style.test: Allow initializer-lists in ifs. --- tests/sanity/style.test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/sanity/style.test b/tests/sanity/style.test index 94d4ff593..bcf29fea8 100755 --- a/tests/sanity/style.test +++ b/tests/sanity/style.test @@ -155,7 +155,7 @@ for dir in "$TOP/spot" "$TOP/bin" "$TOP/tests"; do $GREP '[ ]if(' $tmp && diag 'Missing space after "if"' - $GREP '[ ]if (.*).*{' $tmp && + $GREP '[ ]if ([^()]*).*{' $tmp && diag 'Opening { should be on its own line.' $GREP '[ ]if (.*).*;' $tmp &&