]> git.ipfire.org Git - thirdparty/libtool.git/commit
syntax-check: fix violations and implement sc_useless_braces_in_variable_derefs.
authorGary V. Vaughan <gary@gnu.org>
Sun, 20 Nov 2011 14:08:24 +0000 (21:08 +0700)
committerGary V. Vaughan <gary@gnu.org>
Fri, 25 Nov 2011 07:53:42 +0000 (14:53 +0700)
commit8fad6be03e8eca44e5e771cfbb907d3840a8e01e
tree82ccc492a8aef1fef65fdaecca176331e43aa5a0
parent4757bf0637658fd2e298042d9f7a0d51c5f49495
syntax-check: fix violations and implement sc_useless_braces_in_variable_derefs.

Until now, libtool sources have used braced variable names
seemingly at random! Almost always the braces are just noise, so
remove all the unnecessary ones.
* cfg.mk (sc_useless_braces_in_variable_derefs): New syntax
check rule to ensure we only reintroduce braced variable
dereferences if they are followed by a valid variable name
character.
build-aux/general.m4sh, build-aux/git-hooks/commit-msg,
build-aux/ltmain.m4sh, build-aux/options-parser, configure.ac,
libltdl/configure.ac, m4/libtool.m4, m4/ltdl.m4,
m4/ltoptions.m4, tests/defs.m4sh, tests/demo-nopic.test,
tests/depdemo/configure.ac, tests/flags.at, tests/link.test,
tests/objectlist.test, tests/quote.test, tests/static.at: Remove
spurious braces.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
18 files changed:
build-aux/general.m4sh
build-aux/git-hooks/commit-msg
build-aux/ltmain.m4sh
build-aux/options-parser
cfg.mk
configure.ac
libltdl/configure.ac
m4/libtool.m4
m4/ltdl.m4
m4/ltoptions.m4
tests/defs.m4sh
tests/demo-nopic.test
tests/depdemo/configure.ac
tests/flags.at
tests/link.test
tests/objectlist.test
tests/quote.test
tests/static.at