]> git.eshelyaron.com Git - emacs.git/commit
Fix c-in-knr-argdecl to avoid false recognition of K&R
authorAlan Mackenzie <acm@muc.de>
Fri, 13 Oct 2023 14:27:18 +0000 (14:27 +0000)
committerAlan Mackenzie <acm@muc.de>
Fri, 13 Oct 2023 14:27:18 +0000 (14:27 +0000)
commit97959349651a8fb170c1c754e73a4d86ed24d018
treebaf2c50be33298154f24c2a32ca222ac09df5181
parentbbccef3ceb63bc17ab9d2aee5326df5d70ce4ab3
Fix c-in-knr-argdecl to avoid false recognition of K&R

In the OP's test case, the type of a declaration was a macro
with parentheses, which confused c-in-knr-argdecl.

* lisp/progmodes/cc-engine.el (c-in-knr-argdecl): Amend this
function to return nil if a "parameter declaration" can't be
parsed as a declaration.
lisp/progmodes/cc-engine.el