Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

CDT/User/NewIn101

< CDT


Release


This is the New & Noteworthy page for CDT 10.1 which is part of Eclipse 2020-12 Simultaneous Release

Dark Mode all black dialogs window in Eclipse 2020-12

The 2020-12 release of the Eclipse C/C++ and Eclipse Embedded C/C++ package contains an error that causes black text on black background in most dialogs. This can be resolved by either updating the Trace Compass Plug-ins in the install or removing the Trace Compass plug-ins if not used. To update the plug-ins do this:

  1. From Window menu -> choose Preferences
  2. navigate to Install/Update -> Available Software Sites
  3. Press Add...
  4. Name Tracecompass updates and Location https://download.eclipse.org/tracecompass/stable/repository/
  5. Press Add
  6. Press Apply and Close
  7. From Help menu -> Check for Updates and finish the wizard.
  8. After restarting the Dark Mode will be fixed.

See also Bug 569790


Update index and views with active configuration by default The default preference controlling which configuration the index uses along with the affected views has been changed to use the active configuration instead of a fixed configuration. The new default should be less confusing for users as an initial setting but might not be suitable for all projects.

See the CDT User FAQ for instructions on how to change this preference.

CDT extenders can also customize products using plugin_customization.ini, with

org.eclipse.cdt.core/cprojectdescription.configRelations=1   (1 for "fixed", 2 for "active")

See also Bug 329995 and cdt-dev.




Parser


__has_include

Parser support has been added for C++17 __has_include as well as the language extension __has_include_next. See Bug 566918.



Build


Visual Studio 2017 and 2019

Support for detecting the Microsoft Visual C++ toolchain part of Visual Studio 2017 and 2019 has been added. Support for earlier versions has been removed. This support is still considered experimental since many basic features are missing for this CDT toolchain. See Bug 567169.

New build console actions

The CDT build console has two new actions in its toolbar:

  • Action to close the build console page.
  • Action to enable/disable bringing the console to top on build output. The action toggles the already existing preference under Preferences -> C/C++ -> Build -> Console -> "Bring console to top when building (if present)".

See:

Console actions bug486033 bug568926.png

See also Bug 486033 and Bug 568926.


Debug


External refresh of DSF data model

Some GDB commands have side effects that are not trivial for DSF to handle properly. One command that is known to have unpredictable side effects is load that is used in JTAG debugging. With the changes in Bug 568228, the last step of the JTAG launch sequence will now tell the UI to drop any cached data and refresh everything from the lower layers to ensure the proper state is shown in the UI.

For DSF extenders; if the UI is out of sync with the current target state, the AbstractMIControl#flushAllCachesAndRefresh(RequestMontitor) might help out to trigger a refresh for the UI models.


Terminal


Activity for Terminal main toolbar contributions

A new activity, org.eclipse.tm.terminal.view.ui.activity.maintoolbar, can now be used to disable main toolbar contributions of the Terminal plug-ins. Currently there is only one such contribution, a toolbar button to launch a terminal. See Bug 568923.

Disabling the activity (and so hiding the TM terminal main toolbar button) can now be done e.g. with a product customization file containing the line:

org.eclipse.ui.workbench/UIActivities.org.eclipse.tm.terminal.view.ui.activity.maintoolbar=false

The product customization file is specified to Eclipse arguments with:

-pluginCustomization /some/path/plugin_customization.ini


API modifications


org.eclipse.cdt.managedbuilder.ui

org.eclipse.cdt.managedbuilder.ui.properties.ICustomBuildOptionEditor2 is a new interface for creating custom build option editors. The new interface extends org.eclipse.cdt.managedbuilder.ui.properties.ICustomBuildOptionEditor with the possibility to let the editor be in control of how the value is to be saved. In a future CDT release, these 2 interfaces will be merged to one. See Bug 569300


Bugs Fixed in this Release


See Bugzilla report Bugs Fixed in CDT 10.1


Back to the top