From b85c5746853bad506a83c5bdb90fe41c88c499bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zsolt=20Borb=C3=A9ly?= Date: Mon, 22 Jan 2018 15:05:31 +0100 Subject: [PATCH 1/3] WIP test commit 1 --- .../rules/jerry_no_space_before_closing_parentheses.tcl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/vera++/scripts/rules/jerry_no_space_before_closing_parentheses.tcl b/tools/vera++/scripts/rules/jerry_no_space_before_closing_parentheses.tcl index 8ddc38fe5f..a6a7f09ab6 100644 --- a/tools/vera++/scripts/rules/jerry_no_space_before_closing_parentheses.tcl +++ b/tools/vera++/scripts/rules/jerry_no_space_before_closing_parentheses.tcl @@ -27,6 +27,11 @@ proc check_part_of_the_file {file line_num col_start col_end} { } } + + + + + foreach fileName [getSourceFileNames] { set checkLine 1 set checkColStart 0 From 281e46948123e6cac40fd25511bf24512d533adf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zsolt=20Borb=C3=A9ly?= Date: Mon, 22 Jan 2018 15:06:09 +0100 Subject: [PATCH 2/3] WIP 2 test commit 2 --- .../jerry_no_space_before_closing_parentheses.tcl | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tools/vera++/scripts/rules/jerry_no_space_before_closing_parentheses.tcl b/tools/vera++/scripts/rules/jerry_no_space_before_closing_parentheses.tcl index a6a7f09ab6..31a47732da 100644 --- a/tools/vera++/scripts/rules/jerry_no_space_before_closing_parentheses.tcl +++ b/tools/vera++/scripts/rules/jerry_no_space_before_closing_parentheses.tcl @@ -41,6 +41,11 @@ foreach fileName [getSourceFileNames] { set colNumber [lindex $token 2] set tokenType [lindex $token 3] + + + + + if {$checkLine != $lineNumber} { if {!$seenOmitToken} { check_part_of_the_file $fileName $checkLine $checkColStart end @@ -51,6 +56,11 @@ foreach fileName [getSourceFileNames] { set checkColStart $colNumber } + + + + + if {$tokenType in {ccomment cppcomment stringlit}} { check_part_of_the_file $fileName $checkLine $checkColStart $colNumber set seenOmitToken true From 6d78cd37396a8ae0f068627db9b9247b57f71c13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zsolt=20Borb=C3=A9ly?= Date: Mon, 22 Jan 2018 15:06:41 +0100 Subject: [PATCH 3/3] WIP 3 test commit 3 --- .../rules/jerry_no_space_before_closing_parentheses.tcl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/vera++/scripts/rules/jerry_no_space_before_closing_parentheses.tcl b/tools/vera++/scripts/rules/jerry_no_space_before_closing_parentheses.tcl index 31a47732da..cb361569e7 100644 --- a/tools/vera++/scripts/rules/jerry_no_space_before_closing_parentheses.tcl +++ b/tools/vera++/scripts/rules/jerry_no_space_before_closing_parentheses.tcl @@ -36,6 +36,13 @@ foreach fileName [getSourceFileNames] { set checkLine 1 set checkColStart 0 set seenOmitToken false + + + + + + + foreach token [getTokens $fileName 1 0 -1 -1 {}] { set lineNumber [lindex $token 1] set colNumber [lindex $token 2]