Handle C++11's "auto" and "decltype" constructions.
commit4031fb7bac75dabf6c801721ef044a1d71fe6596
authorAlan Mackenzie <acm@muc.de>
Sun, 24 Aug 2014 20:50:11 +0000 (24 20:50 +0000)
committerAlan Mackenzie <acm@muc.de>
Sun, 24 Aug 2014 20:50:11 +0000 (24 20:50 +0000)
tree3ca6c1f8d68f9fc223f962449be71c820d5dff8b
parent66bb9533fc77963c495de7f33ec6dc8e4d342a55
Handle C++11's "auto" and "decltype" constructions.
cc-engine.el (c-forward-type): Enhance to recognise and return 'decltype.
(c-forward-decl-or-cast-1): New let variables backup-kwd-sym,
prev-kwd-sym, new-style-auto.  Enhance to handle the new "auto" keyword.

cc-fonts.el (c-font-lock-declarations): Handle the "decltype" keyword.
(c-font-lock-c++-new): Handle "decltype" constructions.

cc-langs.el (c-auto-ops, c-auto-ops-re): New c-lang-defconsts/defvars.
(c-haskell-op, c-haskell-op-re): New c-lang-defconsts/defvars.
(c-typeof-kwds, c-typeof-key): New c-lang-defconsts/defvars.
(c-typeless-decl-kwds): Append "auto" onto the C++ value.
(c-not-decl-init-keywords): Also exclude c-typeof-kwds from value.
lisp/ChangeLog
lisp/progmodes/cc-engine.el
lisp/progmodes/cc-fonts.el
lisp/progmodes/cc-langs.el