diff options
| author | Alan Mackenzie | 2019-10-03 12:50:08 +0000 |
|---|---|---|
| committer | Alan Mackenzie | 2019-10-03 12:50:08 +0000 |
| commit | e7e55e5e4dad95c5e605553d4ad3daa1422d0ea3 (patch) | |
| tree | f05c879291bb42b59d592302360200392667e22c /test/src/coding-tests.el | |
| parent | 5b09393f2cde83f10c84926ba579782fb52e05b8 (diff) | |
| download | emacs-e7e55e5e4dad95c5e605553d4ad3daa1422d0ea3.tar.gz emacs-e7e55e5e4dad95c5e605553d4ad3daa1422d0ea3.zip | |
C++ Mode: Fontify correctly declarators with identifier preceded by &
The problem was bar in the following being spuriously recognised as a
function, and foo as a type, as though the & were a *: Foo foo (&bar);.
* lisp/progmodes/cc-engine.el (c-forward-decl-or-cast-1): New variable
got-function-name-prefix, which is set when an operator like * (but not &)
precedes the putative identifer in parentheses. Test this variable when
deciding whether or not to "move the type backwards" to the previous
identifier.
* lisp/progmodes/cc-langs.el (c-type-decl-operator-prefix-key): New lang const
and var.
Diffstat (limited to 'test/src/coding-tests.el')
0 files changed, 0 insertions, 0 deletions