1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-21 21:52:10 +02:00
Commit graph

35765 commits

Author SHA1 Message Date
Jonah Graham
5d40878d1b [releng] Prepare for CDT 10.7.1 downloads 2022-08-22 17:43:40 -04:00
Jonah Graham
b334b94bae [releng] Migrate promote build releng to main CDT repo 2022-08-22 17:43:40 -04:00
Jonah Graham
42a7aa82d6
Update FAQ instruction on running test suite (#58)
as a result of the conversation on PR #54 we identified the FAQ
on this item was out of date.

https://github.com/eclipse-cdt/cdt/pull/54#issuecomment-1222596313
2022-08-22 16:59:31 -04:00
Davin McCall
6445ec4890
Bug 580325 - constexpr evaluation of builtins for clrsb, clz (#52)
Adds constexpr evaluation for some additional compiler builtins. This is
probably the last lot few builtins that can reasonably be
constexpr-evaluated in CDT.
2022-08-22 12:18:26 -04:00
Christian Walther
ef195dbb73 Fix flaky tests in BuiltinSpecsDetectorTest
testAbstractBuiltinSpecsDetector_EnvChangesGlobal did not properly clean
up after itself, which caused
testAbstractBuiltinSpecsDetector_EnvChangesConfiguration_1,
testAbstractBuiltinSpecsDetector_EnvChangesConfiguration_2, and
testAbstractBuiltinSpecsDetector_EnvChangesGlobal to fail when run for
the second time in the same session.

Running tests twice is not useful, but happens in Eclipse with a launch
configuration set to run all tests in
org.eclipse.cdt.managedbuilder.core.tests/tests - once directly and once
through AllLanguageSettingsProvidersMBSTestSuite. I have not found any
way of running every test exactly once in the GUI.
2022-08-22 12:17:50 -04:00
Christian Walther
5f3cd7ac20 Fix flaky test testPersistentProperties
Don't sleep for a hardcoded time but wait for the actual condition.
1000 ms was often insufficient on my system.
2022-08-22 12:17:50 -04:00
Ed Merks
ccdd9b2c99
Simplify the API baseline target (#42)
Also simplify the corresponding API baseline targlet in the setup

https://github.com/eclipse-cdt/cdt/issues/39
2022-08-22 11:54:05 -04:00
githubaf
9ce74a7145
Do not mark "removing unused section" lines as errors (#19)
gcc linker outputs "removing unused section" to stderr when the option "--print-gc-sections" is used. That is fine. 

Eclipse CDT reports all these lines as errors however and the build seems to have failed, which is wrong.
The was a bug report Bug 539927: Do not mark "Removing unused section" lines as errors and a fix
To fix this bug a change was made 2020-12-02 05322656c6
-CDTGNULinkerErrorParser.regex.LdMode=(.*[/\\\\])?ld(\\.exe)?: (mode .*)
+CDTGNULinkerErrorParser.regex.ldInfo=(.*[/\\\\])?ld(\\.exe)?: ((mode|Removing unused section) .*)

That does however not solve problem entirely, as the output of gcc linker is "removing", not "Removing", i.e. the word "removing" starts with a lower-case "r"
To fix that problem both R and r should be accepted.
2022-08-22 11:42:57 -04:00
Jonah Graham
323057845e
Remove parallel in Jenkinsfile #55 (#56)
Until we can resolve the resource deadlock, stop
building in parallel.
2022-08-22 09:15:03 -04:00
Torbjörn Svensson
2089c1d314 Fixed links in md files
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
2022-08-17 13:31:28 +02:00
Torbjörn Svensson
5aee96dfb4 Fix widget is disposed error during shutdown
After building a project and shuting down eclipse, the build console
will have a propertyChange event fired that will attempt to modify the
stream and background color that will trigger a use-after-dispose error
from SWT. This changeset ensures that the action is only taken on
non-disposed widgets.

Contributed by STMicroelectronics

Change-Id: I872c28da1b2fca7ec39f5b12d9d1ec398e559814
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
2022-08-16 16:04:11 +02:00
Torbjörn Svensson
054e494e10 Bug 580113: Do not reuse ICommandLauncher
Each command should have it's own command launcher. The alternative is
to ensure that the previous command has finished prior to launching the
next one, but that's harder to acchieve as it's up to the consumer of
Builder to fullfill.

Contributed by STMicroelectronics

Change-Id: I17038220ccd7c1767328ecfce92f28d8205c1d56
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
2022-08-16 16:03:27 +02:00
Torbjörn Svensson
4a1e0f467b Bug 580113: Expose concurrent invocations
The class CommandLauncher holds an internal state of the process and
it's command line. To avoid corrupting the internal state, only allow
executing new commands if the previous command is finished.

Contributed by STMicroelectronics

Change-Id: If41816f6b642953776a4fea3df9f341a17712222
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
2022-08-16 16:03:27 +02:00
John Dallaway
a9c3819565
Bug 580286: Accommodate extra flags with internal builder (#31) 2022-08-15 18:56:10 +01:00
Ed Merks
9695d54244
Update CONTRIBUTING.md (#41)
I've added the badge-styled link to the configuration.  I've commented out the section with detailed steps because the configuration automates all those steps and because the page opened by the link also has all these instructions.

The description on that page has a description specific to CDT.

It comes from here:

455f7fc25a/releng/CDTConfiguration.setup (L37-L49)

Best to use the properties view to edit this content so that the XML is properly escaped.
2022-08-13 14:33:09 -04:00
Alexander Fedorov
455f7fc25a
Merge pull request #40 from merks/issue-39
Improve CDT's setup
2022-08-12 22:15:30 +03:00
Ed Merks
4e40dda89f Improve CDT's setup
Include a configuration, simplify the targlet for the target platform,
and enhance the working sets based on folder structure.

https://github.com/eclipse-cdt/cdt/issues/39
2022-08-12 12:04:56 +02:00
Alexander Fedorov
0bbf9af467
Merge pull request #38 from merks/issue-37
Filter nested projects from org.eclipse.cdt.root
2022-08-12 12:36:51 +03:00
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