1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00
Commit graph

34944 commits

Author SHA1 Message Date
Jonah Graham
f14853b3d4 [releng] Update target to platform 4.16 RC2
Change-Id: Ibb26d875adb1208bc7edba8e6d6ba03fe6b19e7f
2020-06-15 06:59:20 -04:00
Marco Stornelli
f4bed34dd0 Bug 564273 - Fix format lambda expressions without parenthesis
Change-Id: I918ca05d75ca4e8cba7501e232d4e6b05e434f06
2020-06-15 00:58:12 -04:00
Alexander Fedorov
72bf8216d8 Bug 564276 - Extract CDT Core templateengine to a separate bundle
Remove dependency to org.eclipse.cdt.core.CCorePlugin during template
schema URL resolution. The TemplateDescriptorSchema.xsd URI should be in
one bundle with TemplateEngine.

Change-Id: Ice2fbc4f33da6616184728d3a41cc803328526a6
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-06-14 20:17:03 +03:00
Alexander Fedorov
db577a85ca Bug 564276 - Extract CDT Core templateengine to a separate bundle
Remove dependency to org.eclipse.cdt.core.CCorePlugin during IStatus
creation.

Change-Id: Ic9cf5e55866ab6f0727ea91378b7366c6090b7f1
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-06-14 12:47:51 -04:00
Michael Woski
c7895abec0 Bug 564026: CPPSemantics.selectByArumentCount does not trim after
removing elements from the result array

the list of candidate functions is filtered for redundant elements. The
returned array must be shrunk to avoid NullpointerExceptions further
down the road.

Change-Id: I5f3c5a19433266dd20492241fd74edc43fbfc0ef
Signed-off-by: Michael Woski <woskimi@yahoo.de>
2020-06-14 09:28:18 -04:00
jantje
65473abf07 Bug 564123 refactor terminal Env to use same code as EnvironmentReader
Env had a very old way of reading environment variables from
before Java supported environemnt variables from System. This
commit makes the code the same as core CDT's EnvironmentReader.

Env holds a copy of the EnvironmentReader code to avoid dependency of
terminal to other CDT.

Change-Id: I8929bf427af99d3d62cca28ee8090aa423c9aded
Signed-off-by: jantje <eclipse@baeyens.it>
2020-06-13 22:07:23 -04:00
jantje
3516a46a92 Bug 564123: use EnvironmentReader in core build
CBuildConfiguration.findCommand read environments like
EnvironmentReader

Change-Id: Iedd474c647a0c22fecdd525bf50927159d138031
Signed-off-by: jantje <eclipse@baeyens.it>
2020-06-13 19:40:08 -04:00
jantje
9867126d6f Bug 564123 Uppercase only special environment variables on Windows
Only uppercase the env variable names that are special (only Path for now).
This is part of handling the change to keeping cdt variables case
sensitive.

Change-Id: Ibf22823328c8f8d57c98aa9b62763ea884164fae
Signed-off-by: jantje <eclipse@baeyens.it>
2020-06-13 18:58:14 -04:00
jantje
d99d06ceca Bug 564123: Remove deprecated method from EnvironmentReader
EnvironmentReader.getRawEnvVars has a better replacement,
EnvironmentReader.getEnvVars

Change-Id: I91b209f3f601b748dd5d635ff44a36765d519e49
Signed-off-by: jantje <eclipse@baeyens.it>
2020-06-13 18:01:08 -04:00
Jonah Graham
12cf801870 Bug 564272: Increment major version of org.eclipse.cdt.core to 7.0.0
Change-Id: I9124dd406c5981435a72ff4aaa7033f1c3d1979b
2020-06-13 16:21:05 -04:00
jantje
f5e029d19c Bug 564123 delete org.eclipse.cdt.utils.Platform
The class overrode org.eclipse.core.runtime.Platform to
workaround bugs in the platform that have since been fixed.
As 32-bit x86 and PPC support has been removed this
class is no longer needed as all the code is now
unreachable anyway.

Change-Id: I01bb00b9203aa02663ff25ce36c4c14f22dadee5
Signed-off-by: jantje <eclipse@baeyens.it>
2020-06-13 13:05:41 -04:00
Marco Stornelli
51398ca2ae Bug 564026 - Fix null pointer exception
The ICPPFunction array can contain null values. A check is needed.

Change-Id: Icde40880f7913d0de7ae2c0a293de8d5be899327
2020-06-13 10:56:29 -04:00
Torbjörn Svensson
ef2ee6df71 Bug 564257: Respect commandGenerator and applicabilityCalculator
The method Configuration.getUserObjects() and Configuration.getLibs()
should respect the commandGenerator and applicabilityCalculator defined
for the option in the toolchain definition.
The method Tool.getToolCommandFlags() should call the commandGenerator
only if the value type would generate a default command.

Change-Id: I4d6224627888e602682076ac929adbf808cff8d7
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-06-12 20:02:31 +02:00
Sergei Kovalchuk
4bd9fed83b Bug 562004 - Remove dependency to com.ibm.icu from CDT Managed Build
Core

Dependency removed for Managed Build Core

Change-Id: I15e29453a1452a5060c470f3b3658cb5763615b0
Signed-off-by: Sergei Kovalchuk <serjiokov@gmail.com>
2020-06-08 06:12:46 -04:00
Martin Weber
040b1351e8 Bug 559674: Internationalization of UI texts
Change-Id: Ie88e2c6b37f68e8f6e7bb1f941d72f1db8fc748d
Signed-off-by: Martin Weber <fifteenknots505@gmail.com>
2020-06-06 13:43:51 -04:00
Jonah Graham
22236ae356 Bug 559674: Declare o.e.c.cmake.is.core.ui friend of core
This removes many of the warnings in IndexerSupportPreferencePage

Change-Id: I1b310d5d86831744eca36c7177cf167d9a8d5a37
2020-06-05 06:52:59 -04:00
Martin Weber
169c74728f Bug 559674: adjust plugin references to point to new plugin name
..plus fix some typos in developer docs.

Change-Id: Ic71281d5e8a7d28c7e8a9ec313240e710b07f661
Signed-off-by: Martin Weber <fifteenknots505@gmail.com>
2020-06-05 04:22:43 -04:00
Martin Weber
48961a341b Bug 559674: fix failing tests
Change-Id: I6bf9a81dd1cbf673b2472597fc431e6bb1c75ef8
Signed-off-by: Martin Weber <fifteenknots505@gmail.com>
2020-06-05 04:21:19 -04:00
Jonah Graham
3b1141482d Bug 559674: Enable CMake plug-ins in build
Change-Id: I7950f5679956ad4e763fb4e0d6057e506cf6e948
2020-06-05 04:21:19 -04:00
Jonah Graham
5349d8823d Bug 522289: Handle case of no terminal connectors available
The existing code had the assumption that >= 1 connector was installed
in the IDE. It is difficult to configure the IDE with no connectors as
the base terminal feature includes connectors, but it is technically
possible. So in that case display a simple error message and avoid
a hidden error (and stack trace to log).

Change-Id: Id17a1e5bff9aec251aa6f7fe6ff4e96cd2a01564
2020-06-04 17:44:20 -04:00
Martin Weber
b37b7187ae Bug 559674: move API classes for consumers of this to top-level package
Change-Id: I4e6ad1a599a1117f3dfe54cc831df77e5f003d18
Signed-off-by: Martin Weber <fifteenknots505@gmail.com>
2020-06-04 12:03:55 -04:00
Martin Weber
d804c5ae75 Bug 559674: make class final
Change-Id: Iefdc5cb2359546ad06e9770baf79b379b14e31d8
Signed-off-by: Martin Weber <fifteenknots505@gmail.com>
2020-06-04 11:09:24 -04:00
Martin Weber
cfe6a49692 Bug 559674: Improve doc and javadoc
eliminate use of 'Language ID'
eliminate use of 'Language Setting'
eliminate use of 'Language Setting Provider' and 'lsp'

Change-Id: I7358ec99fde008d2b1a8c99fa294acac3469b20e
Signed-off-by: Martin Weber <fifteenknots505@gmail.com>
2020-06-04 10:23:01 -04:00
Martin Weber
aa377d40c2 Bug 559674: eliminate 'lsp' (language settings provider)
Change-Id: I8bcead6d09feefc6093cdd97349c26d563cd9f1f
Signed-off-by: Martin Weber <fifteenknots505@gmail.com>
2020-06-04 10:22:33 -04:00
Martin Weber
3b8551a14a Bug 559674: move 'contribute more implementations API' to package participant
Change-Id: I3f79f0ba3245a9aa3b638cb01c5fc537bb32a47b
Signed-off-by: Martin Weber <fifteenknots505@gmail.com>
2020-06-04 10:22:33 -04:00
Martin Weber
488cc91689 Bug 559674: Fix: New console allocated even if one is given
Change-Id: I922264bbff26e31d2a1a2aa000c3e8f272c1b5e9
Signed-off-by: Martin Weber <fifteenknots505@gmail.com>
2020-06-04 10:22:33 -04:00
Sergei Kovalchuk
afdd68157b Bug 561993 - Remove dependency to com.ibm.icu from CDT UI
Use java.text.MessageFormat instead of com.ibm.icu.text.MessageFormat

Change-Id: Ie7ed91d776b707def1bbfc12c24f5e863638e083
Signed-off-by: Sergei Kovalchuk <serjiokov@gmail.com>
2020-06-04 07:31:47 -04:00
Martin Weber
2abe8b5f31 Bug 559674: Use OptionMetadata based implementation for preference access
Change-Id: I4c253ceffbf3d20c32a06534809da5b0038ecab1
Signed-off-by: Martin Weber <fifteenknots505@gmail.com>
2020-06-03 12:20:24 -04:00
Martin Weber
d13343cda9 Bug 559674: Migrating from a ILanguageSettingsProvider implementation to IIndexerInfoConsumer (6/6)
Move preference page to new UI plugin.

This is piece six of change https://git.eclipse.org/r/c/159828 being split into pieces.
Splitting is done for code reviewing reasons.

Change-Id: I9db0f3053ef9524a5b79a0fc9b8198ff241acb1a
Signed-off-by: Martin Weber <fifteenknots505@gmail.com>
2020-06-03 10:39:35 -04:00
Martin Weber
e9d6747a74 Bug 559674: Migrating from a ILanguageSettingsProvider implementation to IIndexerInfoConsumer (5/6)
Adjust detection participant implementations & tests to new API.

This is piece five of change https://git.eclipse.org/r/c/159828 being split into pieces.
Splitting is done for code reviewing reasons.

Change-Id: Iab6917c45f9e749f2a8ff1f1c0b4c4991131cbd2
Signed-off-by: Martin Weber <fifteenknots505@gmail.com>
2020-06-03 09:04:14 -04:00
Martin Weber
636691a404 Bug 559674: Migrating from a ILanguageSettingsProvider implementation to IIndexerInfoConsumer (4/6)
Adjust core tests to new implementation.

This is piece four of change https://git.eclipse.org/r/c/159828 being split into pieces.
Splitting is done for code reviewing reasons.

Change-Id: I925fd5e56cbf6bf3e6d14322c738c0ff412b8b1d
Signed-off-by: Martin Weber <fifteenknots505@gmail.com>
2020-06-03 08:30:03 -04:00
Martin Weber
f80235d0e0 Bug 559674: Migrating from a ILanguageSettingsProvider implementation to IIndexerInfoConsumer (3/6)
This is piece three of change https://git.eclipse.org/r/c/159828 being split into pieces.
Splitting is done for code reviewing reasons.


Change-Id: Ibd033f8d69dfd19bf23e34fe4d731a3eac78afc6
Signed-off-by: Martin Weber <fifteenknots505@gmail.com>
2020-06-03 07:56:16 -04:00
Martin Weber
9bf029721a Bug 559674: Migrating from a ILanguageSettingsProvider implementation to IIndexerInfoConsumer (2)
This is piece two of change https://git.eclipse.org/r/c/159828 being split into pieces.
Splitting is done for code reviewing reasons.

Change-Id: I9db46388046c57f2aaad88730636950d3271ae20
Signed-off-by: Martin Weber <fifteenknots505@gmail.com>
2020-06-03 07:20:32 -04:00
Jonah Graham
c0ffeb6474 Bug 563864: By default fail build on test failures when building CDT with maven
Change-Id: I9bd3db3850cc45abb0ea53f8885a331c7f327887
2020-06-02 15:26:57 -04:00
Tony Homer
0563a98c6e Bug 558284 - re-enable docker plug-in
Reverts commit d70af18897.

The API change was reverted
See https://git.eclipse.org/r/#/c/163943/

Change-Id: If8049308e8f2aec3a1930433af9c6348d641b0ab
Signed-off-by: Tony Homer <tony.homer@intel.com>
2020-06-01 13:01:54 -07:00
Marco Stornelli
3997ba62f5 Bug 563591 - Fix exception in EvalBinding
Change-Id: If5138fec2ec00f1a88b25d3a32995a703c9aa790
2020-06-01 04:37:27 -04:00
Marco Stornelli
0f1940afc5 Bug 487990 - Fix format of variadic functions
Change-Id: I802d032f733247178db46c8fe43fdb9350555509
2020-06-01 04:37:13 -04:00
Jonah Graham
cfc3278454 Deprecate and remove use of method now in JVM (Object.equals)
Change-Id: Iec34f0f8388d7d76ce63f88cfc7d16534e5a7d84
2020-05-31 20:21:06 -04:00
Jonah Graham
125afa92dc Bug 563455: Always return same instance of CElementImageDescriptor to platform
Because of a bug in the platform implementation of equals/hashCode under
some circumstances, we can workaround the problem by returning
the same instance of CElementImageDescriptor when the objects are equal().

Change-Id: I6ff15cffa4b48080dcc6c9a023622edf4ae2d497
2020-05-31 17:30:21 -04:00
Jonah Graham
d70af18897 Bug 558284 - Temporarily disable docker plug-in using changed API
See https://bugs.eclipse.org/bugs/show_bug.cgi?id=558284#c38

Once the underlying issue in Bug 558284 is resolved this needs to be
reverted.

Change-Id: I1b052e701c2655eeac634bfb759c778421fd242b
2020-05-30 18:19:15 -04:00
Jonah Graham
cd0f01a5be [releng] Save baseline-compare-and-replace.log all the time
We have had sometimeouts running the baseline-compare-and-replace,
so save the log all the time.

Change-Id: I0e0d98c2f27dbce0f46f15757959e70a13fb53c3
2020-05-27 16:50:54 -04:00
Jonah Graham
3ef8f2c844 Bug 563280: Set bundle version numbers according to policy[1]
Note - these bundles aren't actually published, so they are not
actually part of compare and replace checks. But if we are going
to increment version numbers, they should be incremented following
the policy as if they were published.

[1] https://wiki.eclipse.org/Version_Numbering

Change-Id: I01c815b0ae075d704b4bae9aef666cc13d98161c
2020-05-25 16:46:21 -04:00
Jeff Johnston
c7581e5bf2 Bug 542701 - NPE at LaunchConfiguration.getLaunchManager
- add new logic to ContainerTypeProvider to use a JobGroup with
  maximum 1 thread so jobs from this class are never run
  at the same time
- change ContainerTypeProvider.getStatus() to wait until there are no
  scheduled, active, or cancelled jobs in the JobGroup
- change ContainerLaunchConfigurationDelegate.finalLaunchCheck() to
  create a fake launch target and call LaunchTargetManager.getStatus()
  which will eventually call the new ContainerTypeProvider.getStatus()
- fix NLS warnings in ContainerLaunchConfigurationDelegate

Change-Id: Icad11c5814dd8ee7fac99a41d74329ce65907a38
2020-05-25 10:33:20 -04:00
John Dallaway
8cf2aefc37 Bug 562164: Use absolute memory address on export
Change-Id: I8b97ad10cd55a751ac8a5b7e4a01009b623f565d
2020-05-24 10:22:00 +01:00
Philip Langer
081069afcd Bug 563280 Split language server flags into separate commands
Change-Id: If7c8e823f7da289a4567b8cb6030f504a830364f
Signed-off-by: Philip Langer <planger@eclipsesource.com>
2020-05-22 21:33:35 +02:00
Jonah Graham
56d741a50c Bug 558536: Revert "Bug 549013 - Eclipse menu won't display on Ubuntu 16.04 LTS when SSH/Serial command shells are opened"
Using the mouse and not the focus listeners leads to lots
of weird, unintended consequences. For example:

- If mouse does not exit the control (because, e.g. it was not
in the control) then captureKeyEvents(false) is never issued
- If mouse does leave control, then control stops capturing
events. This means that although the cursor and focus is still
on the control, keyboard shortcuts no longer go to the control,
so Ctrl-C becomes copy again. This means, depending on where you
move the mouse changes the behaviour of the control.

This reverts commit 19351cbc2b.

Change-Id: I4f57c659e21d823df049b095159a34e5c110ef29
2020-05-16 16:40:29 -04:00
Jonah Graham
da0d1d7df6 Bug 543122: Add additional baud rates for serial
Includes new API to allow, on platforms that support it, setting
and getting arbitrary rates.

Change-Id: I0b1134325f913bb09d1bf0cd902f89e968d80570
2020-05-15 14:32:47 -04:00
Martin Weber
fc7e62940f Bug 559674: Migrating from a ILanguageSettingsProvider implementation to IIndexerInfoConsumer (1)
Change-Id: I0903f75c7cb4fbd4f3119ae22500b66b2f15794d
Signed-off-by: Martin Weber <fifteenknots505@gmail.com>
2020-05-14 14:33:02 -04:00
Alexander Fedorov
d374b71c94 Bug 562164 - Add JUnit tests for IMemoryExporter implementations
Added "number of units to retrieve" parameter to ReadMemory#from
Fixed result compare for text-based formats
Returning back 64KiB DATA_PER_TRANSFER optimization
Reworked FileExport from "O extends AutoCloseable"
Renamed ReadMemory to IReadMemory

Change-Id: Id7eb51015884d5dbffa5e91e9601f5e6ddb52d90
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-05-13 16:41:43 -04:00
Jonah Graham
e1f6300001 Fix all NLS warning in o.e.cdt.debug.gdbjtag.ui
Change-Id: Ia6c6c86f977be8c816f6ed60978dbd92341b8283
2020-05-13 11:00:48 -04:00