aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorPierre Muller <muller@sourceware.org>2013-03-20 16:13:10 +0000
committerPierre Muller <muller@sourceware.org>2013-03-20 16:13:10 +0000
commite3f1ad4fd2e99bd226f19f88c513f13f3434de44 (patch)
treecf24b22bd7b274b40763674afa7344705ee7eb27 /gdb
parent460014f572f44fe3e8deb146cb92fd312c4c3339 (diff)
downloadfsf-binutils-gdb-e3f1ad4fd2e99bd226f19f88c513f13f3434de44.zip
fsf-binutils-gdb-e3f1ad4fd2e99bd226f19f88c513f13f3434de44.tar.gz
fsf-binutils-gdb-e3f1ad4fd2e99bd226f19f88c513f13f3434de44.tar.bz2
* contrib/ari/gdb_ari.sh (OP eol rule): Also check
addtion, subtraction, multiplication and division binary operator.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/contrib/ari/gdb_ari.sh6
2 files changed, 10 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 709a55b..01cefe7 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2013-03-20 Pierre Muller <muller@sourceware.org>
+
+ * contrib/ari/gdb_ari.sh (OP eol rule): Also check
+ addtion, subtraction, multiplication and division binary operator.
+
2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
Code cleanup.
diff --git a/gdb/contrib/ari/gdb_ari.sh b/gdb/contrib/ari/gdb_ari.sh
index d5e2a97..b0fdbf4 100644
--- a/gdb/contrib/ari/gdb_ari.sh
+++ b/gdb/contrib/ari/gdb_ari.sh
@@ -609,7 +609,11 @@ BEGIN { doc["OP eol"] = "\
Do not use &&, or || at the end of a line"
category["OP eol"] = ari_code
}
-/(\|\||\&\&|==|!=)[[:space:]]*$/ {
+# * operator needs a special treatment as it can be a
+# valid end of line for a pointer type definition
+# Only catch case where an assignment or an opening brace is present
+/(\|\||\&\&|==|!=|[[:space:]][+\-\/])[[:space:]]*$/ \
+|| /(\(|=)[[:space:]].*[[:space:]]\*[[:space:]]*$/ {
fail("OP eol")
}