aboutsummaryrefslogtreecommitdiff
path: root/gdb/contrib
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2016-10-13 17:59:26 +0100
committerPedro Alves <palves@redhat.com>2016-10-13 18:14:19 +0100
commit1f2e9c5e3b0ef55cb0ab180dd0c82c7954a73e1a (patch)
tree99252ded6ff5424a8f45ed3a0e53b3711ffbb7db /gdb/contrib
parent5ad9dba7519caa3e6193c87699ae37e24d0fe05c (diff)
downloadgdb-1f2e9c5e3b0ef55cb0ab180dd0c82c7954a73e1a.zip
gdb-1f2e9c5e3b0ef55cb0ab180dd0c82c7954a73e1a.tar.gz
gdb-1f2e9c5e3b0ef55cb0ab180dd0c82c7954a73e1a.tar.bz2
ARI: Remove true/false checks
These don't make sense with C++. gdb/ChangeLog: 2016-10-13 Pedro Alves <palves@redhat.com> * contrib/ari/gdb_ari.sh (boolean): Suggest bool instead. (false, true): Remove checks.
Diffstat (limited to 'gdb/contrib')
-rwxr-xr-x[-rw-r--r--]gdb/contrib/ari/gdb_ari.sh22
1 files changed, 1 insertions, 21 deletions
diff --git a/gdb/contrib/ari/gdb_ari.sh b/gdb/contrib/ari/gdb_ari.sh
index 43f0206..7e639e3 100644..100755
--- a/gdb/contrib/ari/gdb_ari.sh
+++ b/gdb/contrib/ari/gdb_ari.sh
@@ -1136,7 +1136,7 @@ Do not use strnicmp(), instead use strncasecmp()"
# Boolean expressions and conditionals
BEGIN { doc["boolean"] = "\
-Do not use `boolean'\'', use `int'\'' instead"
+Do not use `boolean'\'', use `bool'\'' instead"
category["boolean"] = ari_regression
}
/(^|[^_[:alnum:]])boolean([^_[:alnum:]]|$)/ {
@@ -1145,26 +1145,6 @@ Do not use `boolean'\'', use `int'\'' instead"
}
}
-BEGIN { doc["false"] = "\
-Definitely do not use `false'\'' in boolean expressions"
- category["false"] = ari_regression
-}
-/(^|[^_[:alnum:]])false([^_[:alnum:]]|$)/ {
- if (is_yacc_or_lex == 0) {
- fail("false")
- }
-}
-
-BEGIN { doc["true"] = "\
-Do not try to use `true'\'' in boolean expressions"
- category["true"] = ari_regression
-}
-/(^|[^_[:alnum:]])true([^_[:alnum:]]|$)/ {
- if (is_yacc_or_lex == 0) {
- fail("true")
- }
-}
-
# Typedefs that are either redundant or can be reduced to `struct
# type *''.
# Must be placed before if assignment otherwise ARI exceptions