1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-09 18:56:02 +02:00
Commit graph

36447 commits

Author SHA1 Message Date
Ed Merks
97227b1886 Filter nested projects from org.eclipse.cdt.root
https://github.com/eclipse-cdt/cdt/issues/37
2022-08-12 09:39:25 +02:00
Jonah Graham
511a920e01
Add org.apache.commons.io to CDT's p2 site (#25)
See https://github.com/eclipse-cdt/cdt/issues/21
2022-08-11 17:08:54 -04:00
Ed Merks
5481522e1f
Bug 580505 - Fix and improve CDT.setup (#34)
Don't install org.eclipse.pde.api.tools.ee.feature.feature.group because
it's no longer in the latest update site, and that causes problems like
this one as noticed by a user:

https://www.eclipse.org/forums/index.php?t=msg&th=1111320&goto=1854139&#msg_1854139

Move all the tasks up to the project level.

Include a * requirement on the CDT targlet so that all projects are
imported by the targlet task with no need for a separate import task.
Probably many of the explicitly listed requirements are no longer needed
because all requirements of all projects in the clone are resolved now
automatically.  Also ensure that all platforms are resolved so that all
of CDT fragments are imported.

Move the Git clone task before the modular targlet task so that the
clone is available during the first resolution.

Add an EclipseIni task so that the CDT.setup is redirected into the
local clone's version such that you can modify that setup and test it
locally via Help -> Perform Setup tasks (and so that Navigate -> Open
Setup -> CDT opens the editable workspace version).

https://bugs.eclipse.org/bugs/show_bug.cgi?id=580505
2022-08-11 12:07:53 -04:00
Jonah Graham
984de1306e Update shields URLs for new Jenkins' job structure 2022-08-11 11:39:00 -04:00
Jonah Graham
08d1275db2 Add simple instructions on connecting GitHub and EF accounts 2022-08-11 11:21:47 -04:00
Jonah Graham
a4f714ea6c Move inline images out of root directory
The root directory is already very cluttered, so move the simple
images to new images subdir
2022-08-11 11:21:47 -04:00
Jonah Graham
6ed8d28722
Add code formatting checks to Jenkinsfile (#27)
The code formatting runs in parallel to the main build
2022-08-11 10:53:58 -04:00
Jonah Graham
4faad305de
Add reflection access when running some old tests (#28)
This is the exception that would have been raised.

java.lang.reflect.UndeclaredThrowableException
	at org.eclipse.cdt.core.cdescriptor.tests.CDescriptorOldTests.testProjectDataCreate(CDescriptorOldTests.java:370)
Caused by: java.lang.IllegalAccessException: class org.eclipse.cdt.internal.core.CConfigBasedDescriptor$1 cannot access class com.sun.org.apache.xerces.internal.dom.ParentNode (in module java.xml) because module java.xml does not export com.sun.org.apache.xerces.internal.dom to unnamed module @772861aa
	at org.eclipse.cdt.core.cdescriptor.tests.CDescriptorOldTests.testProjectDataCreate(CDescriptorOldTests.java:370)

It may be that --add-opens=java.xml/com.sun.org.apache.xerces.internal.dom=ALL-UNNAMED
can/should be added to the product, similar to linuxtools in
https://github.com/eclipse-linuxtools/org.eclipse.linuxtools/pull/20/files
but as this affects only some special use cases that are probably
not really in existence anymore we are just fixing the tests.

Alternative would be to simply delete these old tests (CDescriptorOldTests)
and surrounding code.
2022-08-10 15:31:54 -04:00
Jonah Graham
637eb04dfb
Migrate builds to GitHub as source (#26) 2022-08-08 09:07:31 -04:00
Jonah Graham
0158c6aa6e Remove outdated contributing file
This file should have been removed when terminal was integrated into CDT.
2022-08-04 12:23:12 -04:00
Jonah Graham
ee114d8c0f Github migration
Change-Id: I6b1e551d56f8d92197f02a330260f68f24939e94
2022-08-04 12:23:12 -04:00
Jonah Graham
592ee07935 Split apart the README file and update Contributing file from the wiki
This includes migrating the following pages from the wiki to
the source:

- https://wiki.eclipse.org/CDT/contributing
- https://wiki.eclipse.org/Getting_started_with_CDT_development
- https://wiki.eclipse.org/CDT/policy
- https://wiki.eclipse.org/CDT/git

Note that much of the content on those pages was redundant or
obsolete, therefore the files are not copied over as is
from the wiki.

In addition the content from https://www.eclipse.org/cdt/ has
migrated over as appropriate too. Much of https://www.eclipse.org/cdt/
was also redundant or obsolete too.

Change-Id: I2b38a4fbb3351c8eb8bbf8c910eb3a3118eda142
2022-08-04 12:23:12 -04:00
Jonah Graham
351be05b48 FAQs migrated from wiki
This is the User FAQ (which had a bunch of dev FAQ entries already)
merged with the Developer FAQ and a few other related pages.

The the wiki entries for full history:

- https://wiki.eclipse.org/CDT/User/FAQ
- https://wiki.eclipse.org/CDT/Developer/FAQ
- https://wiki.eclipse.org/CDT/Developer/Code_Snippets
- https://wiki.eclipse.org/CDT/Developer/FAQ/popupMenu
- https://wiki.eclipse.org/HowTo_use_the_CDT_to_navigate_Linux_kernel_source

Change-Id: Ia26c31a8a6045eeda64bcc486377b7e6abe04d13
2022-08-04 12:23:12 -04:00
Jonah Graham
1c8c96c239 Move the disable intro ini out of root of repo
The root files in GitHub are a bit more prominent, so keep
that area clean and move this special ini to a subdir.

Change-Id: I12d95727e9dad29ebe4f50d47faa9e98753a52bc
2022-08-04 12:23:12 -04:00
John Dallaway
7c6bd5bdcb Bug 580441: Accommodate deleted folder of source files
Eliminate ResourceException by avoiding processing a deleted source
folder resource as a modified resource.

Change-Id: Icfa10040d4d3c6c06b2a4c040e7b632e94dff324
2022-07-26 08:22:58 +01:00
Torbjörn Svensson
96839a029d Bug 580259: Not all remote session have a connected process
Contributed by STMicroelectronics

Change-Id: Idec88f4bf0cbc8326bf19b9f081af9f9f9d437e2
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
2022-07-21 04:47:09 -04:00
Jonah Graham
2481f398e0 [releng] Rebuilt natives for updated Java
java 17 is now the default, and that means that a new hash
is created by reproducible_build_wrapper.py due to the changed
path for includes to the Java 17 include directory.

Nothing else about the binaries has actually changed.

Change-Id: I36398b84cc5fe20cd1d0f58f52dfee4737e913f8
2022-07-19 15:51:41 -04:00
John Dallaway
cb8a85596c [releng] WWD releases now require Java17, downgrade WWD version
Change-Id: I6476d206252fbbb7de38a1a302d3544ab41bb40a
2022-07-12 15:13:02 +01:00
Mat Booth
5e4a66b0af Bug 580178 - Unable to stop build process from launchbar
Switch from the standard Java ProcessBuilder to the CDT CommandLauncher
for new style core build projects.

The CommandLauncher uses a more sophiscated mechanism for watching the
spawned process allowing us to interrupt the process when the user hits
the stop button on the launchbar by properly listening to a monitor.

The change adds new API to CBuildCongifuration that takes a progress
monitor, and changes all the affected build configuration types to use
this new API.

Change-Id: I0c4225616ad8331c2cea28bcb502028455a8ea71
2022-06-30 12:34:16 -04:00
Davin McCall
4a956060cd Bug 580201 - narrowing for constexpr evaluation of builtins
Implement narrowing of argument value (in constexpr context) for various
builtins.

Change-Id: I428cc789358638bf3796ea706f459032c8be10a1
2022-06-28 19:43:05 -04:00
Jonah Graham
b1011b0a82 Bug 580248: Allow widget baseline to be less than font baseline
The removed assertion was overly harsh and some combinations of fonts
and text meant that the assertion was being hit. This code
was based on LineNumberRulerColumn (platform.text) which has long
since removed the assertion - see
3e70d44d64
for the removed assertion.

Note that this change simply removes the assertion and does not
address all the possibilities of mixed fonts. I suspect that there
may be some (hopefully) small drawing errors if such mixed fonts
are used. This code (unlike platform text) will continue to
assume all lines are the same height.

Change-Id: I3801b05c96e2784aabe53b3a503dbdb86e6e10c0
2022-06-27 15:36:16 -04:00
Jonah Graham
98d375756a Cosmetics.
Change-Id: I0e9468bcb0f16d40e1136039fa221ec52d255f11
2022-06-27 15:36:16 -04:00
Jonah Graham
b803ce0a3d [releng] Docker snapshots now require Java17, downgrade Docker version
Change-Id: I14df686bc1a601187b77184fb402a48cd32d040f
2022-06-26 21:17:41 -04:00
Jonah Graham
864b003806 [releng] PDE does not properly resolve dependency without extra import
Some changes happened in platform that cause PDE to not resolve
properly. Tycho does, so our builds have been ok, but in the dev IDE
there has been a problem.

https: //github.com/eclipse-equinox/equinox.bundles/issues/58#issuecomment-1156571374
Change-Id: I1fdde377f799ad1d83018c8a70e1acbf810c80bc
2022-06-15 10:56:22 -04:00
Jonah Graham
fd6c953023 [releng] Release url for eclipserun
Change-Id: Iac4704d54fd8bce6e1fe30118d31083836a7fd82
2022-06-15 10:14:51 -04:00
Jonah Graham
793af86603 [releng] Released dependencies of 2022-06
Change-Id: Ia6a0c10c60075d9c7e5ef878db51bd767e5656de
2022-06-15 09:38:59 -04:00
Jonah Graham
059f5ee63f Bug 580045 - Better error message for compiler built-ins
Change-Id: Ib6c99531fea024a56498cf8e6e63fadd7d7f9c48
2022-06-08 14:03:09 -04:00
Jonah Graham
b9dd4673a7 [releng] Update to 2022-06 RC2 dependencies
Change-Id: Idcd66f7e250790e904ccc7d3f0bc10aaf1eea093
2022-06-08 13:02:42 -04:00
Jonah Graham
815b3f9a92 Bug 580045 - Display an error when reused launcher causes race condition
This reverts commit d01a15f013 and
fixes marker creation too.

Change-Id: I0d391c6df9ac4b17f3e5c8b6e87d5a7991fdc669
2022-06-08 12:49:12 -04:00
Marco Stornelli
b390885211 Bug 580062 - Self assignment check fix
Fix for false positive error in assignment operator checker
when a noexcept specifier is used.

Change-Id: If82788cda4a37af1c628a937a6960f59de6b0f5b
2022-06-03 09:30:53 -04:00
Jonah Graham
a60ea13d40 [releng] WWD snapshots now require Java17, downgrade WWD version
Change-Id: If312d62984fd0560a691f6fbcea975123073bad1
2022-06-03 08:52:36 -04:00
William Riley
c678c76a40 Bug 580009 - Avoid rare NPE due to folder info not being loaded
Guard against NPE. Full cause needs to be investigated but with this
check the behaviour is no worse than before in these cases

Change-Id: I27ed2cd915e21fca2ef07335820d9e2496c1c51d
2022-05-31 15:34:50 +01:00
Jonah Graham
450dbf0d57 [releng] Update to 2022-06 RC1 dependencies
Change-Id: Iad4f44060d3b913a648a598a9067ba47e8f19f48
2022-05-30 18:28:28 -04:00
Davin McCall
7e59306985 Bug 580037 - constexpr evaluation of additional builtins: ctz, etc
Provide constexpr evaluation for: __builtin_ctz, __builtin_popcount,
__builtin_parity, __builtin_abs, and the variants which take a long int
or long long int.

Change-Id: I6088e2d41a161059ce0a64443a1d1126952ff905
2022-05-30 18:18:30 -04:00
Martin Weber
d01a15f013 Bug 580045 - Spurious java.lang.IllegalThreadStateException: Process not Terminated in o.e.c.jsoncdb.core.CompileCommandsJsonParser
Signed-off-by: Martin Weber <fifteenknots505@gmail.com>

Change-Id: I898b07dca92f47ec7315da3380231b818349139c
2022-05-30 22:45:04 +02:00
William Riley
133c81e979 Bug 580009 - Resolve superclass for tc level options in rc configs
Change-Id: I03093b687bc36610ab7cf83d7e75401ac7a4fdfe
2022-05-27 11:34:06 +01:00
Davin McCall
1ec4ae52c1 Bug 579934 support constexpr evaluation of __builtin_ffs[l,ll]
Change-Id: I103a4d0a7958d6172eb2b05379c8eec40369526c
2022-05-25 11:43:22 -04:00
Jonah Graham
9b05a213eb [releng] Update to 2022-06 M3 dependencies
Change-Id: I138dccb36f84975f38b2f8123e24d5ad1714e9f1
2022-05-24 13:58:13 -04:00
Moritz 'Morty' Strübe
02d2c81ec9 Bug 579944: Clean up Docker include path code
This patch refactors multiple aspects of the code related to copying
include paths from docker images:
* document code
* extract common code to methods
* reduce indentation by returning early
* support using \\WSL$\... paths

Change-Id: I983d1e9bdfa84aa48928f5ba88df191d56ac0f17
Signed-off-by: Moritz 'Morty' Strübe <moritz.struebe@mathema.de>
2022-05-20 21:08:10 -04:00
Jonah Graham
9a2558bd66 Fix comments with new name for IArglet
Follow on from commit 422835d273 that
refactored IArglet into its current location

Change-Id: I83f5afb8226327ace471cfc80a3d777559f2763f
2022-05-20 13:52:07 -04:00
Jonah Graham
580fea8881 Mark deprecated class for removal
Change-Id: I68da238f7942bd1d2cd898c470f1dfcdba1fb5a1
2022-05-20 11:46:54 -04:00
Jonah Graham
937b4d5798 Bug 579982: More removing of cached Matcher objects
This follows on from 1c404b050d

Change-Id: I764ba6a96aa650f38ef90521b2a67cc87903b2d5
2022-05-20 11:44:03 -04:00
Moritz 'Morty' Strübe
ed59ec722b Bug 579974: Add tooltip to docker connection dropdown
Support the user to find out how to manage the docker connections. This
is not always obvious.

Change-Id: I0f8e49cc3618a5a99e19c8bcec9aa86fd23fae93
Signed-off-by: Moritz 'Morty' Strübe <moritz.struebe@mathema.de>
2022-05-20 12:40:20 +02:00
Torbjörn Svensson
a1794246d5 Bug 579876: Use same bgcolor for occurrence in editor as JDT
Contributed by STMicroelectronics

Change-Id: Ic1bfd9af7d308a8c9b14a9b2f40bbd278a0ceca0
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
2022-05-13 10:07:53 -04:00
Umair Sair
7b040db113 Bug 579877 - Slow Threads update for debugging on remote target
Reason:
=======
The problem is that we use '-thread-info' command for each thread and
for each command, a lot of common conversation happen between gdb and
gdbserver for each command.

Solution:
=========
We should use '-list-thread-groups <group id>' instead which provides
the same required information for all the threads and minimizes the
communication between gdb and gdbserver. This command takes lesser time
than the collective time taken by all '-thread-info' commands.

Tested with 2 and 8 threaded application using gdb 7.1 and 11. The gain
is more prominent as the number of threads increases.

Signed-off-by: Umair Sair <umair_sair@hotmail.com>

Change-Id: Ie4824bf110f05d4136697f4e1ecbcc19dcf145a7
2022-05-10 21:49:24 -04:00
Torbjörn Svensson
b86404669a Bug 579876: Make background transparent on icons
Contributed by STMicroelectronics

Change-Id: I51432f72979b7f1d95543ea1f7fcb48c3543bac7
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
2022-05-10 17:27:54 +02:00
Torbjörn Svensson
bd268d9f01 Don't assume background is white for disassembly view
The trail in the disassbemly view should have luminance going towards
the background color, that might be different color than white.

Contributed by STMicroelectronics

Change-Id: I9e00e71719cbd1fb40cc5e6de983aacbcb854106
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
2022-05-07 20:14:17 +02:00
Torbjörn Svensson
a2e6ef61c9 Bug 579666: Improve dark theme on Windows
On Windows, the TabFolder and TabItem classes does not follow the
themeing in Eclipse. As a result, the tab selectors will be drawn with
the light theme while the rest of the Eclipse UI is in dark theme.

Contributed by STMicroelectronics

Change-Id: I9169c9e01f8c9a3af7b6bb6d1c673a043735e7e9
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
2022-05-06 04:38:00 -04:00
Torbjörn Svensson
cc2a904883 Improve dark theme for disassembly view
Contributed by STMicroelectronics

Change-Id: I6699a003e38c61f70d90d2b1856d4b4edc6032fb
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
2022-05-05 21:50:49 +02:00
John Dallaway
7357cfd9eb Bug 577263: Eliminate unnecessary command line pattern attributes
We eliminate unnecessary command line pattern attributes that were
overriding the default pattern provided by
org.eclipse.cdt.managedbuilder.internal.core.Tool which now includes
${EXTRA_FLAGS}.

Change-Id: I8c4e8e613599e71e31e390f56319bacfd0329ab2
2022-05-05 11:13:28 +01:00