Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "CDT/User/NewIn92"
< CDT
(→Debug) |
(Talk about C++14 constexpr support) |
||
Line 12: | Line 12: | ||
== Parser == | == Parser == | ||
+ | |||
+ | === Support for C++14 constexpr evaluation === | ||
+ | |||
+ | C++14 [https://isocpp.org/files/papers/N3652.html expanded the scope] of what's allowed inside a <tt>constexpr</tt> function, to allow variable declarations and most control statements such as loops. CDT [https://bugs.eclipse.org/bugs/show_bug.cgi?id=490475 now supports] evaluation of <tt>constexpr</tt> functions that make use of these features. | ||
+ | |||
+ | [[File:CXX14Constexpr.png]] | ||
+ | |||
+ | In this example, CDT simulates the execution of a <tt>constexpr</tt> function that contains a <tt>for</tt> loop to determine that the type of <tt>x</tt> is <tt>integer<10></tt>. | ||
== Formatter == | == Formatter == |
Revision as of 00:29, 18 September 2016
Contents
Release
This is the New & Noteworthy page for CDT 9.2 which is part of the Eclipse Neon.2 update release of December 2016
General
Editor
Makefile Editor
Code Analysis
Parser
Support for C++14 constexpr evaluation
C++14 expanded the scope of what's allowed inside a constexpr function, to allow variable declarations and most control statements such as loops. CDT now supports evaluation of constexpr functions that make use of these features.
In this example, CDT simulates the execution of a constexpr function that contains a for loop to determine that the type of x is integer<10>.
Formatter
Build
Debug
Full GDB console
Bugs Fixed in this Release
See Bugzilla report Bugs Fixed in CDT 9.2