summaryrefslogtreecommitdiff
path: root/gdb/contrib
diff options
context:
space:
mode:
authorPierre Muller <muller@ics.u-strasbg.fr>2013-03-20 16:13:10 +0000
committerPierre Muller <muller@ics.u-strasbg.fr>2013-03-20 16:13:10 +0000
commit7664bfe257d4bee3a1f696facd497ded6a805315 (patch)
tree235459c98a9cb6e872f72ff6b60aaf6f4534300e /gdb/contrib
parentd4a378a374397853706869ef228fe0f8191b084a (diff)
downloadgdb-7664bfe257d4bee3a1f696facd497ded6a805315.tar.gz
* contrib/ari/gdb_ari.sh (OP eol rule): Also check
addtion, subtraction, multiplication and division binary operator.
Diffstat (limited to 'gdb/contrib')
-rw-r--r--gdb/contrib/ari/gdb_ari.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/contrib/ari/gdb_ari.sh b/gdb/contrib/ari/gdb_ari.sh
index d5e2a97222b..b0fdbf48392 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")
}