mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-21 01:12:32 +08:00
Remove check requiring void argument to functions with no parameters.
C++ treats an empty parameter list as no parameters unlike C. gdb/ChangeLog: * contrib/ari/gdb_ari.sh (no parameter function): Remove check.
This commit is contained in:
parent
50cc587fe4
commit
8227ffad95
@ -1,3 +1,7 @@
|
||||
2016-11-25 John Baldwin <jhb@FreeBSD.org>
|
||||
|
||||
* contrib/ari/gdb_ari.sh (no parameter function): Remove check.
|
||||
|
||||
2016-11-25 Simon Marchi <simon.marchi@ericsson.com>
|
||||
|
||||
* Makefile.in: Fix typo.
|
||||
|
@ -567,16 +567,6 @@ Function name in first column should be restricted to function implementation"
|
||||
}
|
||||
|
||||
|
||||
# Functions without any parameter should have (void)
|
||||
# after their name not simply ().
|
||||
BEGIN { doc["no parameter function"] = "\
|
||||
Function having no parameter should be declared with funcname (void)."
|
||||
category["no parameter function"] = ari_code
|
||||
}
|
||||
/^[a-zA-Z][a-z0-9A-Z_]*[[:space:]]*\(\)/ {
|
||||
fail("no parameter function")
|
||||
}
|
||||
|
||||
BEGIN { doc["hash"] = "\
|
||||
Do not use ` #...'\'', instead use `#...'\''(some compilers only correctly \
|
||||
parse a C preprocessor directive when `#'\'' is the first character on \
|
||||
|
Loading…
Reference in New Issue
Block a user