]> git.eshelyaron.com Git - emacs.git/commit
Analyze C++ method with & or && ref-qualifier as defun, not brace list
authorAlan Mackenzie <acm@muc.de>
Fri, 12 Apr 2019 20:07:03 +0000 (20:07 +0000)
committerAlan Mackenzie <acm@muc.de>
Fri, 12 Apr 2019 20:07:03 +0000 (20:07 +0000)
commitcc80eeb4a43d2079963de3d181002a6a6b56560d
tree21503da66b372ca0ad5f950733bb9e27263ff33b
parent896e5802160c2797e689a7565599ebb1bd171295
Analyze C++ method with & or && ref-qualifier as defun, not brace list

Also firm up detection of beginning of brace list in
c-looking-at-or-maybe-in-bracelist.

* lisp/progmodes/cc-engine.el (c-looking-at-or-maybe-in-bracelist): On
detection of such a ref-qualifier, set braceassignp to nil.  When this
variable has a nil value, return nil as the value of the function.  On
encountering a } when scanning backwards, recognise this as the end of a
previous construct and stop the scan.
lisp/progmodes/cc-engine.el