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

34937 commits

Author SHA1 Message Date
Jonah Graham
cb35c8daa2 [releng] Remove unused API filters
Change-Id: I960afcd99198918fe5f86983243b571c23a3c97f
2020-12-19 13:01:44 -05:00
Jonah Graham
01e43768c3 [releng] Update simrel site for 2021-03
Change-Id: I3fdeb557ae998d0382c6e9b69e2fa3d100ffb0cd
2020-12-19 13:01:44 -05:00
Jonah Graham
7d2e842884 [releng] Update comparator.repo to latest released CDT
Change-Id: Ib2fc576e4d6f79f8b5303032e7e27f73f5b7e45b
2020-12-19 13:01:44 -05:00
Jonah Graham
bf6f758bd3 [releng] Update p2.inf's reference
Change-Id: Id8a43b342ca643155e593987113a100af12b98f9
2020-12-19 12:11:25 -05:00
Jonah Graham
c248620053 [releng] Increment feature and related versions to 10.2.0
Change-Id: Icd135a588920fa25fd846dc285db5f83e5ac7037
2020-12-19 12:11:25 -05:00
Jonah Graham
a469af6bf3 [releng] Update to newer help-docs-eclipserun-repo
Change-Id: I5cc8b6d66ace35eea397a781739dc27def4df3f9
2020-12-19 12:11:25 -05:00
Jonah Graham
2cac529ee0 [releng] Updates of deps and repos for beginning of CDT 10.2 cycle
Change-Id: I65dd3c31e598b013935cf6b221eb098f77ce75f9
2020-12-19 11:28:31 -05:00
Jonathan Williams
7d64391baf Bug 569479 - Fix ClassCastException with NewLaunchTargetWizard
NewLaunchTargetWizard implements INewWizard so that File > New >
Other... > Launch Targets > Launch Target works without exception.

Change-Id: I6ffb0a8d601d54fe4d3f781fdbaa342167fff2f0
Signed-off-by: Jonathan Williams <jonwilliams@blackberry.com>
2020-12-04 14:37:15 -05:00
Abdullah Khalid
a7546a575f Bug 569397: Update SyncUtil's javadoc
Signed-off-by: Abdullah Khalid <abdullah.dev0@gmail.com>
Change-Id: Id200f0c2badfc878503bdd5dc3a8b0f98ab1718c
2020-12-03 10:33:02 -05:00
Torbjörn SVENSSON
05322656c6 Bug 539927: Do not mark "Removing unused section" lines as errors
The lines are printed by the GNU ld with the flag --print-gc-secions

Change-Id: Ie09229427a29e9959f8ffe4920a1645ad3dcb086
Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@st.com>
2020-12-02 10:53:11 +01:00
Jonah Graham
bb6f318a79 Bug 568513: Scroll to correct address on memory file import
The CDT 9.x code scrolled once, to the start address of the import
when the import finished. The refactoring done early in the CDT 10.x
cycle (Bug 562164) instead scrolled repeatedly, generally once
per line of the input file, until finally scrolling one last time
to the byte right after the last imported byte.

Change-Id: I79f2a17c7a5feb19a463002ce19dec9d22afc90f
2020-12-01 18:15:35 -05:00
Martin Weber
725ff665e7 Bug 569186: Fix: Project rebuild is causing Unresolved inclusion issues
Change-Id: I9c59c6a8b5963edac7d33a35b936a161ce9eb337
Signed-off-by: Martin Weber <fifteenknots505@gmail.com>
2020-12-01 14:10:32 -05:00
Jonah Graham
1d0bc6992f Revert "Bug 568397: Hide "Build settings" if using custom command"
This reverts commit 1d226f9273.

Reason for revert: Due to some concerns about use cases and the
desire to resolve those concerns with separate build and args
text boxes this is being reverted for 10.1 until this change
can be done at the same time as https://git.eclipse.org/r/c/cdt/org.eclipse.cdt/+/173118

Change-Id: Iffa37087c00f434d4e684eea19ecacde36004b80
2020-12-01 12:07:38 -05:00
Torbjörn SVENSSON
0f3214ace9 Bug 569353: The mode output from ld is not an error
Change-Id: I1a29bd698c3b37d687bf76a416689df0a69aa50d
Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@st.com>
2020-12-01 08:34:03 -05:00
Jonah Graham
b5aae48f38 [releng] Update to RC1 dependency versions
Change-Id: I8eb772f7130ec183f99f26ba9bc606b95af8053f
2020-11-30 21:17:29 -05:00
Torbjörn Svensson
fb20df887a Bug 569300: Allow custom build option editors to save the value
Added a new interface with a method that is called when the value is to
be saved into a resource configuration.
If the function returns false, then the default implementation of
handling property changes will kick in. If the function returns true,
then it's assumed that the value has been handled.

Change-Id: I0523d15ba0a3ec9dbc24c3e4afc070b071d8fb7e
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-11-30 16:11:01 -05:00
Simeon Andreev
d4c6168964 Bug 486033 - Add close button to CDT Build Console toolbar
This change adds a close action
(org.eclipse.ui.console.actions.CloseConsoleAction) to the CDT build
console.

CDT accessing a closed console via BuildConsoleManager will result in
re-adding the respective console page to the console view, if the
console page was closed.

Change-Id: Ifc4d4c6ed329f1c1c7e70f7903ed660ba85306c5
Signed-off-by: Simeon Andreev <simeon.danailov.andreev@gmail.com>
2020-11-29 15:14:40 -05:00
Simeon Andreev
a655f7b4a5 Bug 568926 - Build Console has no action to disable activation on output
This change adds an action to the CDT build console, to disable
activation on build output. The action uses the existing preference
"build console on top when building" from C/C++ -> Build -> Console.

The action icon is copied from platform debug UI, see:

org.eclipse.debug.internal.ui.IInternalDebugUIConstants.IMG_ELCL_STANDARD_OUT
org.eclipse.debug.ui/icons/full/elcl16/writeout_co.png (and @2x)

The change also ensures the existing preference works, as it currently
has no effect on not showing the build console on CDT build.

Change-Id: I0d94583b85e1a13f18d43de8c10355ccdab7f259
Signed-off-by: Simeon Andreev <simeon.danailov.andreev@gmail.com>
2020-11-29 15:04:00 -05:00
Simeon Andreev
7881736c68 Bug 569123 - Race condition on AbstractMIControl.fRxCommands
This change adds synchronization to iterating over the map
AbstractMIControl.fRxCommands during
AbstractMIControl.cancelRxCommands(). This prevents potential
ConcurrentModificationExceptions when elements are added or removed to
the map in parallel during e.g. AbstractMIControl.TxThread.run() loop.

The change also removes superfluous synchronization for method
AbstractMIControl.cancelRxCommands().

Change-Id: Id7c01b3057e522cce324a002dce54f0fabe02623
Signed-off-by: Simeon Andreev <simeon.danailov.andreev@gmail.com>
2020-11-29 14:41:34 -05:00
Torbjörn Svensson
293998da18 Bug 568228: Add a way for DSF Data Model to initiate refresh all
There is no way to predict what the user might do during for example the
launch sequence, so as a last resort, tell the UI to drop all caches and
refresh the data as the last step of the launch sequence.

Change-Id: I97731c8286657a0fc1111ba41deb47863181a453
Also-by: Jonah Graham <jonah@kichwacoders.com>
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-11-29 14:39:11 -05:00
Martin Weber
3ffe2156ff Bug 569247: remove topic attribute
Change-Id: If69c9892c4df35879bc7ea047416b4a542b226ce
Signed-off-by: Martin Weber <fifteenknots505@gmail.com>
2020-11-27 20:05:18 +01:00
Simeon Andreev
bddeeeac3b Bug 568923 - add activity for TM terminal main toolbar button
This change adds an extra activity for the TM terminal main toolbar
contribution. This allows applications to disable the contribution
without disabling the rest of TM terminal functionality.

With this change, disabling of the TM terminal main toolbar button can
be done 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:

-pluginCustomization /some/path/plugin_customization.ini

Change-Id: Id1c34616f4f2a0ac77edbfe201c1db095f9ce7b8
Signed-off-by: Simeon Andreev <simeon.danailov.andreev@gmail.com>
2020-11-24 12:27:35 +01:00
Jonah Graham
7fd8956dca [releng] Update to Platform 4.18 M3
Change-Id: I4f56a63394ba619ff2d1c319b5ee334fde685683
2020-11-23 12:31:57 -05:00
Alexander Fedorov
98e50a2d8b Align CDT.setup with target platform
Add org.yaml.snakeyaml for CMake
Use Orbit from
https://download.eclipse.org/tools/orbit/I-builds/I20201119185738/repository

Change-Id: If2fceeb124ddfb90e1dfe5c9212ceca2adace474
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-11-21 22:49:00 +03:00
Jonah Graham
36285742d1 Bug 568375: Publish com.sun.xml.bind to CDT's p2 repo
In the past CDT just picked this up from somewhere else.

Change-Id: I00672abd57e1710fe0e91fb0a1387740208d0c68
2020-11-20 14:30:28 -05:00
Alexander Kurtakov
bc9ecdad17 Build with Tycho 2.1.0
Change-Id: I7f682ad313ce275f45e0b4adb4c1280d952cf3ac
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Also-by: Jonah Graham <jonah@kichwacoders.com>
2020-11-20 10:53:30 -05:00
Torbjörn Svensson
7818b0f921 Bug 568228: Ensure no duplicated classes are registered
Change-Id: I0bcb4764887d73e7b57770e2ff397a06a4247624
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-11-19 20:13:15 -05:00
Torbjörn Svensson
163ae5f819 Bug 568228: Use lambda and for-each loop
Change-Id: I296247de2dd0b05c0df38621f73dc05798f6c7cc
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-11-19 20:13:15 -05:00
Torbjörn Svensson
6b8efb9651 Bug 568228: Corrected spelling of fListener
Change-Id: If7e5e53d96625c2b8faa661384794f58748e67ac
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-11-19 20:13:15 -05:00
Torbjörn Svensson
4187a6e828 Use clickable links in the MD viewer and highlight paths
Change-Id: I501484c4c34dfcdbdbb993284d3f51e7fc88329a
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-11-19 15:38:21 -05:00
Jonah Graham
409a830c39 Bug 568375: Consistent versions for use of JAXB libraries
Change-Id: I86a6def37aed6c30a7591fd8dde4c174f6af98bb
2020-11-19 14:31:30 -05:00
Marc-Andre Laperle
f5531cee19 Bug 565553 - Improve performance of build command parsers with large number of files
When possible, precompute the group number in the replacement expression
when parsing option strings, instead of calling replaceAll which is
slower. If the replacement expression is not a simple numbered group,
fall-back to replaceAll.

I have benchmarked this save between 200ms to 2sec depending on the
project size.

Change-Id: Id48fdcf476e2d1739522c9267e214f4c88bf316a
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2020-11-18 22:06:10 -05:00
Alexander Kurtakov
3abe3d28e6 No need to dispose colors anymore.
Change-Id: I39e760a0dba9d220268ee738c8a085d14f0e188b
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2020-11-18 13:41:15 -05:00
Torbjörn Svensson
e632011f2c Bug 568728: Drop execute permission on files
Add enforecment script that verifies that only specified file types are
allowed to be mared as executable.

Change-Id: I4b40e3a46b03bfc78a9dcd52e8bf29cb079b7f3b
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-11-18 17:38:22 +01:00
Alexander Kurtakov
57fd1b2847 Do not use deprecated CDataUtil.objectsEqual
Objects.equals should be used instead.

Change-Id: I6713d0d4d0fb8b13b3b336af61cdd73048839969
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2020-11-17 16:50:33 +02:00
Alexander Kurtakov
dc5b05442e Bug 568888 - Open *.mak files as makefiles
Recognize *.mak extension.

Change-Id: Id765af612d0d8b7f355a9696f06d9e1184db5703
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2020-11-17 15:43:02 +02:00
Jonah Graham
4213379279 Bug 567488: Add missing @since tags and bump version
Change-Id: Ib1918a41f939907777fe7729a40fc55e51e33c7c
2020-11-16 14:06:22 -05:00
Jonah Graham
7a106097e0 Bug 568856: Upgrade BREE to Java 11
Change-Id: I7422fabff409ec4bab5379350dc9bf67b84a07c0
2020-11-16 10:27:05 -05:00
Martin Weber
9a70f31c4e Bug 567488: re-add what was lost in rebase
Change-Id: Ib9342193a91bda76d6809464fb2350fb56ed8175
Signed-off-by: Martin Weber <fifteenknots505@gmail.com>
2020-11-15 20:05:42 +01:00
Martin Weber
4d40c5b68f generalize indexer-support API
Use IFile to specify the file to parse instead of a file-name implicitly
calculated from CBuildConfiguration.

Change-Id: If9d66a0b7533e9e403bc22fa21bf8e6e8fa80436
Signed-off-by: Martin Weber <fifteenknots505@gmail.com>
2020-11-14 15:17:35 -05:00
Martin Weber
de80240232 Bug 567488: Use snakeyaml to persist command-line options to pass to cmake
Change-Id: Ia6b60865f663aecae74d6d571bc9d213bf7cd36b
Signed-off-by: Martin Weber <fifteenknots505@gmail.com>
2020-11-14 15:17:35 -05:00
Martin Weber
ebf2d24c95 Bug 567488: Use command-line options to pass to cmake ICMakeProperties object
Change-Id: I4d6383ce240e6f2b8d7079f281ef7c2e56ea93a6
Signed-off-by: Martin Weber <fifteenknots505@gmail.com>
2020-11-14 15:17:35 -05:00
Martin Weber
3a10f42019 Bug 567488: Define command-line options to pass to cmake for build-script generation
Change-Id: Ie62549cf2c0ddbdb0c9934d3cdb928874b8362aa
Signed-off-by: Martin Weber <fifteenknots505@gmail.com>
2020-11-14 15:17:35 -05:00
Michael Uhl
6a9a8d409d Bug 567217 - template functions with lvalue and rvalue parameters of
template tests added.

Change-Id: I1fbbb45c6d895505a66ad917b1342365118e28d0
2020-11-13 21:22:39 -05:00
Abdullah Khalid
742fbd74d8 Bug 568796: Fix support of configurable timeouts in ETimeout.get
Signed-off-by: Abdullah Khalid <abdullah.dev0@gmail.com>
Change-Id: Id031fd752cbb4689fe2d667939282a3b202328c1
2020-11-13 22:33:21 +05:00
Jonah Graham
a5423f5cd6 [releng] Sort output in compare and replace report
Also-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
Change-Id: I0345c363a1f9c23c608e3b3765ca91dffa82077a
2020-11-11 20:57:29 -05:00
Torbjörn Svensson
8b391a7f3a Bug 568079: Reducing transitions from JAVA to native code (part 2)
Advapi32Util.registryGetValues() is more efficient to fetch all the
values since the regiter only needs to be opened once.

XXX: Due to a cycle in the dependencies we need to split this
in two parts, this previous commit handles the core.native API change
and this commit handles the use of the new API

Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
Change-Id: I960954e332e05dfebcd0263f983bbbc6c64d46af
2020-11-11 14:56:04 -05:00
Torbjörn Svensson
d0c3b2aaff Bug 568079: Reducing transitions from JAVA to native code (part 1)
Advapi32Util.registryGetValues() is more efficient to fetch all the
values since the regiter only needs to be opened once.

XXX: Due to a cycle in the dependencies we need to split this
in two parts, this commit handles the core.native API change
and the next commit handles the use of the new API

Change-Id: Ifd9f1ccc44c652ef3b517278bd342a486155c5fb
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-11-11 12:29:53 -05:00
Torbjörn Svensson
7d7d21cc67 Bug 568079: Reuse existing way of fetching data from registry
Use the WindowsRegistry implementation rather than having yet another
implementation for reading the Windows registry in native code.

Change-Id: If12068319ea3b99934112208a0a21538c792909c
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-11-11 12:29:53 -05:00
Nathan Ridge
821c7e2277 Bug 567217 - Avoid incorrect cache hits during the instantiation of alias template instances
Change-Id: I2f21b0a097f9d279b6e32d28acd68091e3b9ad76
2020-11-10 00:06:29 -05:00