]> git.eshelyaron.com Git - emacs.git/commit
CC Mode: Handle noise clauses, template arglists in any order
authorAlan Mackenzie <acm@muc.de>
Thu, 23 Nov 2023 16:31:52 +0000 (16:31 +0000)
committerAlan Mackenzie <acm@muc.de>
Thu, 23 Nov 2023 16:31:52 +0000 (16:31 +0000)
commit9bda21ad0dddc5d84b6fca269626adeaa608b7a1
tree4da40cf3c2475486bfa6b0f8947deaaf9e44a012
parent102a848d991c1b7edcbf2f75f2a41ba0565c5f6b
CC Mode: Handle noise clauses, template arglists in any order

This fixes the first part of bug#66911.

* lisp/progmodes/cc-engine.el (c-looking-at-decl-block): Skip
back over template arglists and noise clauses in any order, no
longer assuming the noise clauses are before the template
arglist in the buffer.  When scanning forward, take noise
clauses into account.  Refactor a collection of nested `if'
forms as a cond form.
lisp/progmodes/cc-engine.el