1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00
Commit graph

36448 commits

Author SHA1 Message Date
Ed Merks
582ff60b14
Update org.assertj:assertj-core to 3.26.0 (#800) 2024-05-27 21:06:40 -04:00
Ed Merks
f12d4815d9
Update org.apache.commons:commons-compress to 1.26.2 (#799) 2024-05-24 12:28:28 -04:00
thomas-z8
cbcad2944d
[#746] Use inclusive language in codan (#794) 2024-05-21 22:02:12 -04:00
Ed Merks
eeb4f03481
Update gson to 2.11.0 (#798) 2024-05-21 20:45:22 -04:00
Jonah Graham
238d38b987
Improve error message when service segment bump is needed (#791) 2024-05-17 13:47:33 -04:00
Marc-Andre Laperle
0b7c2d9960
Make CodanRunner progress monitor work a bit better (#768)
The progress monitor didn't show which file was being analyzed properly.

Also, the work units didn't seem to be counted in a good way because the
progress bar would stay stuck at like 1%. The fix in this commit for that is
not perfect as it gives equal weight to all resources on a same level until
further split into sub monitors. It still works quite a bit better without
requiring more heavy changes.

Also fix usage of deprecated SubProgressMonitor.
2024-05-17 12:56:16 -04:00
Marc-Andre Laperle
3062cdc8d8
Parse empty __attribute__(()) (#770)
This is accepted by both GCC and Clang and encountered in real code. It looks a
bit strange but basically a condtionally defined macro was used inside the (())
depending on a configurable feature macro of the project.
2024-05-17 12:49:41 -04:00
Jonah Graham
35766ce9e2
Update Java + mvn version in BUILDING.md (#790) 2024-05-17 12:45:05 -04:00
alicetrifu
5ca51073c9
Added feature to generate compile_commands.json file (#692)
Includes:

- Created a new extension point to provide the opportunity to
incorporate additional information into the file
- New tests for the generator
- Preference page to enable/disable generator

Fixes https://github.com/eclipse-cdt/cdt/issues/689
2024-05-16 12:06:18 -04:00
Jonah Graham
237c326a58 Choose latest of commit date and author date for the end of copyright 2024-05-15 15:58:23 -04:00
Marc-Andre Laperle
b91400112d Detection for VS 2022 toolchain
This adds basic support for VS 2022 by detecting the toolchain.
I.e. include paths, lib paths, and PATH env var are properly detected.

The detection works the same as 2017 and 2019 since vswhere.exe works
the same and the folder layout hasn't changed.

Revived from https://git.eclipse.org/r/c/cdt/org.eclipse.cdt/+/182202
2024-05-15 15:58:23 -04:00
Ed Merks
271041be36
Update org.apache.aries.spifly.dynamic.bundle to 1.3.7 (#785) 2024-05-14 11:26:16 -04:00
Ed Merks
c1fdc48156
Include cdt-lsp in the CDT.setup (#786)
- Configure the JRE for Java 21.
- Clone cdt-lsp
- Include its source locator in the targlet
- Configure both clones to rebase new branches by default.
- Add a working set for the CDT LSP projects.
2024-05-14 10:49:13 -04:00
Ed Merks
01a5438e55
Update direct-from-maven dependencies to latest available minor versions (#784)
Use orbit-aggregation/2024-06.
2024-05-13 20:01:48 -04:00
Ed Merks
a41bb33d67
Update CDT.setup's modular targlet to include a site for mylyn.wikitext (#783) 2024-05-13 11:35:57 -04:00
Jonah Graham
6f8746e0a3 Bring optional p2 update sites up to date
The simrel and cdt update sites can be used to run partial builds
and are not used by default when doing builds. This change
brings those URLs up to date.
2024-05-12 16:12:17 -04:00
Jonah Graham
01d6b54f8e Update versions of dependencies 2024-05-12 16:12:17 -04:00
Jonah Graham
0568568c33 Change standalone debugger to no longer limit number of bundles
The maintenance of having a streamlined standalone debugger that
starts as fast as possible is no longer possible. See for
example #591 - therefore when using standalone debugger, use
the same sets of plug-ins/features as the product it is installed
in uses. The side effect is that the standalone debugger in this
use case will start slower and extra "stuff" will be present in
this UI.

For people just building the standalone debugger, provide a minimum
feature set. This will be many more bundles than before, but
should still provide a reasonably small set that starts well.

This simplification also includes removing the the duplicates set
of CDT docs (debug/org.eclipse.cdt.debug.application.doc). These
provided a simplified version of CDT's documentation targetted
at just standalone debugger. However there are a few problems related
to this duplication:

- The two sets of docs were not kept in sync
- The standalone docs appear in the online help, leading to
  duplicated entries
- With the config.ini changes above, there is no way to exclude
  the main docs in the standalone case, so remove the duplicate

A number of directly related clean-ups are included too:

- Remove the `ConfigGenerator.java` that stopped being referenced
  in PR #761
- Complete the removal of `build-standalone-debugger-rcp` profile
  that was started in #761. There is a small drawback to not having
  this profile, the standalone debugger is very slow to build
  compared to the rest of CDT. If this becomes a problem, restoring
  this profile along with the changes made in #761 is reasonable.
- bring debug.product's licenses up to date
- modernize command line args to eclipse when using debug.product

Fixes #781
2024-05-12 16:12:17 -04:00
Marc-Andre Laperle
5f2fcd0f19 Fix missing mylyn.wikitext dependency
lsp4e depends on mylyn.wikitext but it could not be found.
For example: https://github.com/eclipse-cdt/cdt/actions/runs/9026888723/job/24804874235?pr=778
2024-05-09 23:49:52 -04:00
Jonah Graham
6b14816318 Update images to Dockerfiles from commit b433dfad02 2024-05-02 10:49:45 -04:00
Jonah Graham
b433dfad02 Update docker image of osxcross to latest requirements.
Building osxcross is somewhat problematic because the versions
are not fixed and reproducibility of making this docker file
can be problematic. For example new versions of cmake, etc
make be needed. TODO Is there a way to fix the version of
osxcross so that we can rebuild reliably?
2024-05-01 12:36:57 -04:00
Jonah Graham
f0ae450f72 Remove use of Thread.stop from test code 2024-04-27 06:18:10 -04:00
Jonah Graham
5d229301ed Update images to Dockerfiles from commit cc66780e92 2024-04-26 20:29:19 -04:00
Jonah Graham
cc66780e92 Cleanup CDT repo related to the docker + Java 21 updates
- Fix links for cdt-infra
- The cdt-infra git repo is now archived, so this commit updates
the links to the current values.
- Add new Docker related files to the gitattributes as text files
- Update DEFAULT_BUFFER_SIZE for Java 21's value when building JNI,
this also means the dll/exe need a rebuild
- add a toolchains.xml since we use Java 21 toolchain, but most bundles
are Java 17 still
2024-04-26 20:26:40 -04:00
Jonah Graham
9fb6260b6a Add Dockerfiles for build images of CDT project
This is the state of the files as of cdt-infra
commit 497e7b2a643ff6ea12a56a21c17dd2d170e918c8 with
the Readme updated for the new locations
2024-04-26 11:15:27 -04:00
Alexander Fedorov
88355ecc48 [#657] CDT cannot be built on Java 21 due to security manager changes
* Switch CI to Java 21
* Remove config generation for debug application
* Remove `org.eclipse.osgi.services` from `proxy.server` product
* Remove `org.eclipse.osgi.services` from
`org.eclipse.cdt.debug.application.product` product
* Move `org.eclipse.cdt.debug.application.product` from profile to
general part

Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2024-04-19 22:16:40 +03:00
John Dallaway
96a3310420 Add GNU assembler debug level option to N&N 2024-04-03 20:48:59 +01:00
Jonah Graham
98e86ff23a CDT 11.5.0 composites 2024-03-10 12:44:13 -04:00
Jonah Graham
7f5080a3d0
Update to Eclipse Platform 4.32 for CDT 11.6 development (#731)
Pulled out of https://github.com/eclipse-cdt/cdt/pull/729 due
to instability in tests caused by a platform change.
2024-03-08 16:29:22 -05:00
John Dallaway
8222dbeee7 Add GNU assembler debug level option to MBS 2024-03-08 21:17:41 +00:00
Jonah Graham
381cb7eac5
Refactor MarkOccurrenceTest to JUnit5 style (#730)
This was completed so I could best investigate
https://github.com/eclipse-cdt/cdt/pull/729#issuecomment-1984184372
2024-03-08 11:59:50 -05:00
Jonah Graham
221d346f6d
Prep repo for 11.6.0 (#729) 2024-03-07 14:17:45 -05:00
Alexander Fedorov
b661f1757c Revert "[#719] Add required root files"
This reverts commit 9ab2cd2ba9.
2024-02-28 19:31:12 +03:00
Alexander Fedorov
9ab2cd2ba9 [#719] Add required root files
* add SECURITY.md
2024-02-28 18:19:50 +03:00
Alexander Fedorov
5ab120a1ce [#719] Add required root files
* add NOTICE.md
2024-02-28 18:19:50 +03:00
Dietrich Travkin
95fe4d8701
[#716] Fix varying order of elements in project explorer (#717) 2024-02-26 11:35:53 -05:00
Jonah Graham
207bddab5a
Build with Tycho 4.0.6 (#715)
Includes bundle version bumps for new version of ECJ and
target platform update.

Co-authored-by: Александър Куртаков <akurtakov@gmail.com>
2024-02-22 21:38:57 -05:00
G. Hentschke
424f3112a7
CDT LSP 1.1.0 download files (#714)
Part of https://github.com/eclipse-cdt/cdt-lsp/issues/210
2024-02-21 17:45:15 +01:00
Александър Куртаков
55a3dc2ac2 Update maven plugins
maven-enforcer-plugin 3.2.1 -> 3.4.1
maven-pmd-plugin 3.20.0 -> 3.21.2
maven-resources-plugin 3.3.0 -> 3.3.1
org.codehaus.mojo:build-helper-maven-plugin 3.4.0 -> 3.5.0
org.codehaus.mojo:sonar-maven-plugin 2.4 -> 3.10.0.2594
org.jacoco:jacoco-maven-plugin 0.8.8 -> 0.8.11
2024-02-21 17:53:55 +02:00
Александър Куртаков
25edc17924 Copyright year bumps 2024-02-21 16:59:16 +02:00
Александър Куртаков
ceb55c49fb Unify maven-compiler-plugin setting
Define the common version in parent pom and don't override it.
Move to latest version while at it.
2024-02-21 16:59:16 +02:00
Александър Куртаков
fa47bbdb2a Update CBI plugins to 1.4.3 2024-02-21 16:12:58 +02:00
G. Hentschke
d04849b0c4
[703] fix NPE when no build binaries on system PATH (#704)
[703] fix NPE when no build binaries on system PATH

- fixes NPE when new cmake project has been created while there are no
C/C++ build binaries on the PATH environment variable. The NPE has been
thrown when the children of the project should be fetched (e.g. in
project explorer view)
- fix NPE cause in ErrorBuildConfiguration
- fix unit test

fixes #703
2024-02-11 07:45:57 +01:00
Jonah Graham
bfa8700634
Remove unreferenced properties key (#702) 2024-02-08 15:56:25 -05:00
Jonah Graham
64433f4d19
Remove DiscoveredPathContainerPage (#701)
The class DiscoveredPathContainerPage used a number of APIs in
the Eclipse Platform
[removed](https://github.com/eclipse-platform/eclipse.platform.ui/pull/1563) in
[Eclipse 4.31 release](81e406456f/eclipse.platform.common/bundles/org.eclipse.platform.doc.isv/porting/removals.html (L595)).
This class, while API, has not be used, nor usable since the CDT 4
release as it was only for CDT 3.x style projects.
The class had been deprecated since 2010.

To mitigate against the possibility that someone may have a dependency
on this old class the minor version has been bumped so that version
range can have `,8.3)` as their upper version.

Fixes https://github.com/eclipse-cdt/cdt/issues/700
2024-02-08 15:06:12 -05:00
Jonah Graham
70dbde4ce1
Fix copyright end year for recently modified code (#699)
Follow up for #683
2024-02-08 14:32:50 -05:00
betamax
b7fa35979a
Bug579242: allow user to override CMake Settings (#683)
The Launch Bar Launch Configuration, Build Settings tab allows the user
to customise the CMake Settings (CMake generator, extra arguments, build
command and clean command). But changing these settings did not affect
the CMake build. This is now fixed.
A "Use these settings" checkbox allows the user to choose settings from
the UI or use the operating system defaults.
2024-02-07 13:52:58 -05:00
Alexander Fedorov
1589b8b074 [#695] Improve localization for org.eclipse.tools.templates.ui bundle
* retarget localization to default location
* do i18n for plugin.xml
* do i18n for java sources
* add missed copyright headers
2024-02-07 21:18:58 +03:00
Alexander Fedorov
7f69191296 [#693] Fix resource leak warnings for org.eclipse.cdt.core.utils
* use `try-with-resources` for `AutoCloseable`
2024-02-07 18:24:08 +03:00
John Dallaway
2e38e74b73 Add GNU archive content presentation improvements to N&N 2024-02-04 20:46:45 +00:00