mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 14:49:38 +08:00
* contrib/ari/gdb_ari.sh (OP eol rule): Also check
addtion, subtraction, multiplication and division binary operator.
This commit is contained in:
@ -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>
|
2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||||
|
|
||||||
Code cleanup.
|
Code cleanup.
|
||||||
|
@ -609,7 +609,11 @@ BEGIN { doc["OP eol"] = "\
|
|||||||
Do not use &&, or || at the end of a line"
|
Do not use &&, or || at the end of a line"
|
||||||
category["OP eol"] = ari_code
|
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")
|
fail("OP eol")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user