Jump to: navigation, search

Difference between revisions of "CDT/User/NewIn94"

< CDT
(Editor: Add entry about Open Declaration on decltype)
(Formatter)
(2 intermediate revisions by 2 users not shown)
Line 38: Line 38:
 
|}
 
|}
 
----
 
----
 +
= Formatter =
 +
{| style="width: 100%;"
 +
|- style="vertical-align:top;"
 +
! style="width: 30%; text-align:left;" | Command line code formatter
 +
| It is now possible to format source code without starting the Eclipse UI using the new headless formatter application. The command line formatter works as a standard Eclipse application.
  
 +
 +
The following command will format the source files in the folder '''src''' with the options specified in the '''org.eclipse.cdt.core.prefs''' file:
 +
 +
eclipse -nosplash -application org.eclipse.cdt.core.CodeFormatter -consoleLog \
 +
        -verbose -config .settings/org.eclipse.cdt.core.prefs src/
 +
 +
See [https://help.eclipse.org/oxygen/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2Ftasks%2Ftasks-232.htm&cp=1_3_10_1 Using the Formatter Application] and [http://eclip.se/520340 bug 520340] for details.
 +
|}
 
----
 
----
 +
 
= Parser =
 
= Parser =
 
----
 
----

Revision as of 15:28, 10 November 2017


Release


This is the New & Noteworthy page for CDT 9.4 which will be part of Eclipse Oxygen.2


Editor

Open Declaration on decltype

Open Declaration on a decltype token now opens the declaration of the deduced expression type (bug 520913).


Code Analysis

A new quick fix was added for suppressing a problem by adding a suppression comment (bug 495842).

CDTQuickFixSuppress1.png CDTQuickFixSuppress2.png


Formatter

Command line code formatter It is now possible to format source code without starting the Eclipse UI using the new headless formatter application. The command line formatter works as a standard Eclipse application.


The following command will format the source files in the folder src with the options specified in the org.eclipse.cdt.core.prefs file:

eclipse -nosplash -application org.eclipse.cdt.core.CodeFormatter -consoleLog \
        -verbose -config .settings/org.eclipse.cdt.core.prefs src/

See Using the Formatter Application and bug 520340 for details.


Parser


Build


Headless Build Headless build has three new command line arguments:
  • -marker-type which specifies which marker types to consider when failing a build. Can be all (default) cdt (shortcut for C/C++ Problems) or any marker ID. Can be specified multiple times to check for multiple markers. Can be used to, for example, prevent C/C++ Scanner errors from causing build failures.
  • -printErrorMarkers prints all error markers (debugging option) at the end of a build. Can be used to diagnose why build has failed (specific error markers).
  • -help display help.

See (bug 520163).


Debug


API modifications


org.eclipse.cdt.debug.gdbjtag.ui
  1. The method GDBJtagStartupTab#createRunOptionGroup(Composite) has been deprecated because the the content of the run options group and the run commands group has been merged within the Startup page of the UI (see bug 525692). Extenders should use override GDBJtagStartupTab#createRunGroup(Composite) instead.

Bugs Fixed in this Release


See Bugzilla report Bugs Fixed in CDT 9.4