Commit graph

36331 commits

Author SHA1 Message Date
raghucssit
78d9a35bdd Migrate ToggleInstructionStepModeAction to
ToggleInstructionStepModeCommand.

All the contributions of the the action has been replaced
ToggleInstructionStepModeCommand.
Enabled when introduced. Which enabled the command only when C/CPP
application is under debug in Debug View.

see https://github.com/eclipse-cdt/cdt/issues/865
2024-08-27 08:28:14 +02:00
John Dallaway
e8605fdc14 Add AsciiDoc build infrastructure 2024-08-23 16:26:56 +01:00
John Dallaway
c4c11ad964 Detect MSYS2 UCRT64 toolchains for CDT Core Build 2024-08-17 22:42:31 +01:00
Torbjörn Svensson
54ebddc01c Added missing bracers in native code
Contributed by STMicroelectronics

Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
2024-08-13 13:32:33 +02:00
John Dallaway
6ffa02911a Allow multiple parserPage XML elements
Eliminates warning on org.eclipse.cdt.ui/plugin.xml
2024-08-07 16:17:02 +01:00
alicetrifu
7420b12bb7
Compiler path in compile_commands.json must be absolute (#824)
Added code to create the absolute path of the compiler on compile_commands.json file

Fixes #822
2024-07-31 15:49:34 -04:00
John Dallaway
9e1be512cb Add ELF machine IDs for AVR32, MicroBlaze and V800 2024-07-28 03:45:53 +01:00
Jonah Graham
abe036e1ea
Updates for CDT 11.6.1 (#858) 2024-07-02 21:11:07 -04:00
Jonah Graham
12ef16f642
Fix target branch choices in new backport command usage (#851)
A side effect of borrowing Tycho's configuration
2024-06-28 19:27:22 -04:00
Jonah Graham
97f3d9a48c
Add support for backport command (#849)
Fixes https://github.com/eclipse-cdt/cdt/issues/842#issuecomment-2185102917
2024-06-28 23:18:00 +00:00
G. Hentschke
597eda2d60
Add enabled to JSON Compilation Database Generator prop page (#847) (#848)
Show the JSON Compilation Database Generator properties page only for
managed build projects.

fixes #847
2024-06-28 18:59:39 -04:00
Andreas Dangel
3875408070 Speed up closing all file descriptors in the child process (Fixes #835)
_This commit adds to #840 7bd8d52c6c to apply the same fix to
another place that does the same operation on all fds._

When _SC_OPEN_MAX (max nr of open files limit per process) is a very
big number, then closing all possible file handles can take a while.
This change first tries to use the syscall close_range() if available,
falling back to use /proc/self/fd to close only open file handles,
and lastly falling back to the old way of closing all possible handles
one after another.
In general, the first or second approach should be available
which speeds up the pty spawning.

Refs JetBrains/pty4j#147
Copied from 04685d870f
(which is EPL 1.0)

Co-authored-by: Sergey Simonchik <sergey.simonchik@jetbrains.com>
2024-06-27 20:08:16 -04:00
Jonah Graham
c9fa638d3d Update images to Dockerfiles from commit 46e37c6d22 2024-06-23 17:45:59 -04:00
Jonah Graham
46e37c6d22 Use CDT's container to run all code cleanliness checks
We need a new docker container for GitHub that runs as the
same uid that GitHub actions uses so permissions all work
correctly.
2024-06-23 17:41:16 -04:00
Jonah Graham
24d9bd1834
Correct formatting of C code (#843)
Apply the coding standards to the C code from #840
2024-06-23 14:35:34 -04:00
Jonah Graham
f39fa5596a Bump version of o.e.cdt.core.native 2024-06-23 12:07:26 -04:00
Andreas Dangel
7bd8d52c6c Speed up closing all file descriptors in the child process (Fixes #835)
When _SC_OPEN_MAX (max nr of open files limit per process) is a very
big number, then closing all possible file handles can take a while.
This change first tries to use the syscall close_range() if available,
falling back to use /proc/self/fd to close only open file handles,
and lastly falling back to the old way of closing all possible handles
one after another.
In general, the first or second approach should be available
which speeds up the pty spawning.

Refs JetBrains/pty4j#147
Copied from 04685d870f
(which is EPL 1.0)

Co-authored-by: Sergey Simonchik <sergey.simonchik@jetbrains.com>
2024-06-23 12:07:26 -04:00
Jonah Graham
0f08a76a9d
Add link to new entry point for CDT calls (#838) 2024-06-21 14:26:20 -04:00
John Dallaway
6c2eb27ff7 Add GNU archiver other objects option to MBS 2024-06-21 17:48:49 +01:00
Jonah Graham
0583a0568d Bump version number for org.eclipse.tm.terminal.control 2024-06-19 21:45:03 -04:00
Jonah Graham
229c55c9e2 Add support for String Terminator to be ESC \
This fixes support to properly identify the end of
OSC control sequences which can be terminated
with a BEL or ESC \.

Fixes https://github.com/eclipse-cdt/cdt/issues/831
2024-06-19 21:45:03 -04:00
John Dallaway
ba16b7008d XML self-closing element consistency clean up only 2024-06-19 08:23:11 +01:00
John Dallaway
736862e805 Extend GNU toolchain optimization options for MBS
Add -Og and -Oz to the option enumerations for both C and C++ compilers.
2024-06-18 20:04:55 +01:00
Jonah Graham
2fbb42119e
p2 composites for CDT 11.6 and CDT-LSP 2.0 (#823) 2024-06-12 13:47:10 -04:00
betamax
0f36d5dba1
On createBuildConfiguration, reset project's ScannerInfoProvider (#817)
When the project's active IBuildConfiguration has the default name and
the chosen ICBuildConfigurationProvider.getCBuildConfiguration does not
support the IBuildConfiguration.DEFAULT_CONFIG_NAME and returns null,
this can cause the project's ScannerInfoProvider to become "stuck"
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=413357) on the wrong
setting (eg LanguageSettingsScannerInfoProvider instead of
ICBuildConfiguration) until Eclipse is restarted or the project is
closed and reopened. When this happens, the indexer does not function.

This problem may arise if an ISV contributes a
ICBuildConfigurationProvider which has very specific naming conventions
for it's build configurations.

The solution uses the API (resetCachedScannerInfoProvider(project)),
introduced by 413357, to reset the project's ScannerInfoProvider when a
new ICBuildConfiguration is created.
2024-06-12 08:56:47 -04:00
Jonah Graham
4e1a7bc297
Start building against Eclipse Platform 4.33 I-builds (#820) 2024-06-11 13:16:28 -04:00
Jonah Graham
7fcfbb0f96
Prepare repo for 11.7.0 development (#813) 2024-06-05 13:19:53 -04:00
G. Hentschke
9f85daf44b
[#808] Support overriden default-editor-association in EditorUtility (#809) 2024-05-31 13:16:03 -04:00
ewaterlander
d8328fb061
Remove 'Experimental' label from Core Build Makefile projects. (#805)
Removed the 'Experimental' label in project creation wizard for Core
Build Makefile projects. Seven years after the inception it's time to
remove it. Core Build Makefile is now in a usable state. The
'Experimental' label scares users away from it, making them fall back
to the old Managed Build Makefile projects.
2024-05-30 09:25:37 -04:00
Jonah Graham
4eb08c8554
Explicitly set application id for standalone debugger (#804) 2024-05-29 14:31:45 -04:00
ewaterlander
cd0292a4fc
LLVM optimization remarks. (#803)
Added support for LLVM optimization remarks to the GCC c/c++ error
parser. They were falsly treated as errors (OtherError). Now they are
treated as generic infos. GCC has no diagnostic messages of 'remark'
type. Since GCC and LLVM messages are very similar, no separate LLVM
error parser was created.

Fixes #752
2024-05-29 08:53:59 -04:00
John Dallaway
4db7bb9971 Restore correct filterPattern expressions 2024-05-28 20:25:15 +01:00
John Dallaway
563a2ad7b5 XML whitespace clean up only 2024-05-28 14:36:43 +01:00
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