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

35735 commits

Author SHA1 Message Date
Martin Weber
8b80033025 Bug 575623 - jsoncdb parser does not support the "arguments" element from the compilation database
Change-Id: I66f7b7261518e24d6f0fba223cd6a2d56e83e0c4
Signed-off-by: Martin Weber <fifteenknots505@gmail.com>
2021-09-13 20:46:58 -04:00
Martin Weber
2d90c17c5b Bug 575624 - jsoncdb parser does not properly handle macros defined to "nothing"
Change-Id: I22fffed13d450e61dc13d5f84415c68e5cbbace0
Signed-off-by: Martin Weber <fifteenknots505@gmail.com>
2021-09-13 20:46:58 -04:00
Marc-Andre Laperle
9b34e460e5 Bug 575628 - jsoncdb parser defines normal includes as local includes
When using jsoncdb and parsing either -I (POSIX) or /I (CL) arguments,
the include paths are flagged as local include paths. Local include
paths are treated by the CDT preprocessor only for #include "foo.h"
(quoted paths). So when using jsoncdb, several of my #include <foo.h>
don't work because they cannot be found on the wrongly flagged local
include path whereas others can sometimes be found because of a feature
in the indexer preferences called "heuristic resolution" which works if
the header happens to be in the workspace (but it can also silently pick
up the wrong one on name clash).

Change-Id: Ibb5317ed73f4a1700f21e8e3531db74995542d13
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2021-09-12 23:39:13 -04:00
Marc-Andre Laperle
139e82268b Bug 575622 - Problems in jsoncdb parser for compilers that do not support built-in detection
Change-Id: I04ff6ed03c135d23d9b6ef7c83411a1fffbd9f8d
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2021-09-11 13:31:44 -04:00
Jonah Graham
083b7b1964 Typo.
Change-Id: I4d9ec6da1f02cc41643539c17ba34567ec95ba7b
2021-09-10 10:08:18 -04:00
Jonah Graham
47a94fe3d9 Bug 575903: Call correct clean method
The old clean method was removed from use in Bug 571134 but this call
to it was missed.

Change-Id: I01310a3e3c1f45534e55d146f9480ac323446dd4
2021-09-10 10:08:13 -04:00
Jonah Graham
c34816028c [releng] Fix p2 repo for ptp remote
The URL we were using was a milestone location - this location is
the release location. The milestone location has since been deleted.

Change-Id: I2e29fbf36d51d17cd53754afc5175275257f0983
2021-09-01 16:08:58 -04:00
Greg Watson
3f49713898 Bug 575654 - fix packaging order
Change-Id: I2d41d42f55a54cc8f0b0b437f78025d9a91aa3c4
Signed-off-by: Greg Watson <g.watson@computer.org>
2021-09-01 09:11:29 -04:00
Greg Watson
fc1583b7d8 Bug 575654 - fix baseSearchDir
Change-Id: If8f9b4a3c43bd8ac7daa3f5c5d276f1b96dcbeb9
Signed-off-by: Greg Watson <g.watson@computer.org>
2021-09-01 08:38:48 -04:00
Greg Watson
9c44aff074 Bug 575654 - sign mac content
Change-Id: Ie32bbfeae3c1d841e6d44686fb802d3e24121cfe
Signed-off-by: Greg Watson <g.watson@computer.org>
2021-09-01 08:18:09 -04:00
Jeff Johnston
9bbf0326a2 Bug 575730 - New Make project should handle cleaning of gcov/gprof files
- add needed changes to Makefile template to clean up .gcda, .gcno,
  and gmon.out files

Change-Id: Icaaac10238da613e5950038a86b6b16768156a2c
2021-08-31 18:08:28 -04:00
Martin Weber
2a257657c3 remove misleading TODO
Change-Id: I4b3bb8a1441ae662f34edf08daf8d272f86e08cd
Signed-off-by: Martin Weber <fifteenknots505@gmail.com>
2021-08-27 13:40:33 -04:00
Simeon Andreev
c410447f12 Bug 319668 - NPE in indexer CCorePlugin.getCProjectDescription
This change ensures code in SelectionListenerWithASTManager does not
attempt to compute an AST if the workbench is shutting down. This can
result in a NPE in the CDT core plug-in.

Change-Id: I3a0f921b3327bab9eab7169591f217c4f4766a70
Signed-off-by: Simeon Andreev <simeon.danailov.andreev@gmail.com>
2021-08-26 17:35:17 -04:00
Jonah Graham
0cd0aa1270 Bug 575159: Consider return code of wsl.exe
If the return code is non-zero wsl may have failed in someway, with
recent changes in Windows, wsl.exe is present even when wsl is not
installed. In that case wsl.exe is a dummy that can be used to install
wsl.

Change-Id: I83af60623084e1364d16c3a1739bc4f6a25ac3a9
2021-08-24 12:39:15 -04:00
Christian Walther
390a8d22b5 Bug 575508: Fix flaky test
Bug_303953Test.testBuildAfterSourcefileDelete() is occasionally seen
failing with an unexpected change to .cproject. I have not investigated
what the change is, but it's plausible that some background process like
the indexer or scanner discovery might asynchronously modify .cproject,
and .cproject is not the focus of this test, so just ignore it along
with .project.

On the hopeful assumption that this was the only flakiness, I am
removing the @Tag(BaseTestCase5.FLAKY_TEST_TAG) annotation.

Change-Id: Ie9191aaf1a66e8475f05eb422d6e4b3949f8138d
Signed-off-by: Christian Walther <walther@indel.ch>
2021-08-19 16:05:00 +02:00
Torbjörn Svensson
eb7aa70a9f Only spawn WSL detct job on Windows
There is no need to spawn the WSL detect job for other platforms than
Windows.

Contributed by STMicroelectronics

Change-Id: I85256a9f6a4f5e9e9276458ba67e2f6adf02afa7
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
2021-08-15 15:44:23 +02:00
Torbjörn Svensson
432ca56fd3 Only fetch result for jobs that has started
In certain scenarios, the WSL detect job is not launched directly. As
the join() method returns early for suspended jobs, the result list is
read too early and causing NPE.
This was deteced while running the JUnit tests.

Contributed by STMicroelectronics

Change-Id: I8a013cf83be26e8f8bee38fd2e7a4557eb1a57ab
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
2021-08-15 15:31:26 +02:00
Jonah Graham
b9dd8152bb [releng] git: protocol no longer available, using https instead
See Bug 574076

Change-Id: I821d2ce7fdeaa225750ddba0f317c0bfd44eaeb3
2021-08-11 12:55:43 -04:00
Jonah Graham
0bbd711553 Rename test class to proper name
This file was not being detected by Surefire because it didn't
match the expected file name pattern.

Change-Id: I357fcf7845ad4fdaa2697599d0f400bb128efd20
2021-08-11 12:55:43 -04:00
Greg Watson
e2456009e9 Fix signing configuration.
Change-Id: Ibd15e07eb5e8211d113d95abae00ad9422c0a6f8
Signed-off-by: Greg Watson <g.watson@computer.org>
2021-08-09 16:48:23 -04:00
Greg Watson
edfa7ea1b1 Update Eclipse/CDT versions, switch over to CDT TM.
Change-Id: I25560417af00e8e26b93ba9b7cdd4ae4fa57e8f3
Signed-off-by: Greg Watson <g.watson@computer.org>
2021-08-09 16:38:29 -04:00
Victor Rubezhny
8fa72d559f [575317] CDT Debugger fails to start in Eclipse Flatpak
'/tcp' suffix is not supported anymore with 'gdb',
so an IP address should be in form of HOST:PORT
(and not of HOST:PORT/PROTOCOL)

See: https://github.com/flathub/org.eclipse.Java/issues/36

Change-Id: I9eedc450da0d39305fc5d4cde851eb991c3c31f0
Signed-off-by: Victor Rubezhny <vrubezhny@redhat.com>
2021-08-09 22:02:30 +02:00
Mat Booth
0092d1cb4d Bug 561997 - Remove dependency to com.ibm.icu from MultiCoreVisualizer UI
Remove unneeded import-package on com.ibm.icu.text.

Signed-off-by: Mat Booth <mat.booth@gmail.com>
Change-Id: I2c919cd33cf6c87a71bd61fcc7e675173c7c9abc
2021-08-09 11:17:16 -04:00
Marc-Andre Laperle
13914320c6 Bug 574607 - Compilation Database Parser: reload only active config on change
Change-Id: Ide1d1495a1284ed4d3e9b4cc066a62b2cb55e908
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2021-08-09 01:55:08 -04:00
Marc-Andre Laperle
383211b9c7 Bug 574317 - Per-project Doxygen options are ignored
Pass along ICProject to edit strategies so that they can retrieve
per-project settings.

Change-Id: I87699917114a10439a820f9d6ec9d53f350ea50f
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2021-08-08 21:24:43 -04:00
Mat Booth
9f1241f3ef Bug 575139 - Meson shows sanitycheckc.exe in binaries container
Exclude everything in */meson-private/* when generating meson
projects.

Signed-off-by: Mat Booth <mat.booth@gmail.com>
Change-Id: Id26c8dd695e5d09d158bb747b50e04544df706c9
2021-07-30 18:48:09 +01:00
Mat Booth
d98c376045 Bug 562000 - Remove dependency to com.ibm.icu from CDT DSF PDA example
Switch to JRE implementations:
 * com.ibm.icu.text.MessageFormat -> java.text.MessageFormat

Signed-off-by: Mat Booth <mat.booth@gmail.com>
Change-Id: I2c7eae20e197d0871694b09ec375dacb940a942a
2021-07-28 14:32:04 +01:00
Mat Booth
80fb6372c6 Bug 562001 - Remove dependency to com.ibm.icu from CDT Launch
Switch to JRE implementations:
 * com.ibm.icu.text.MessageFormat -> java.text.MessageFormat
 * com.ibm.icu.text.DateFormat -> java.text.DateFormat

Signed-off-by: Mat Booth <mat.booth@gmail.com>
Change-Id: I449fab36fdd45b1cd26eac216f6867a37462ae93
2021-07-28 10:07:56 +01:00
Martin Weber
7f96b6dc6c Bug 564349 - move plugins for non-gcc/clang support (arm, hpenonstop, intel, ms, nvidia) to an 'optional' category in the plugin installer GUI
Change-Id: I0700c5e1b01b45d9e84acd1f66deba187d89341a
Signed-off-by: Martin Weber <fifteenknots505@gmail.com>
2021-07-27 15:26:07 -04:00
Martin Weber
5e1451a607 Bug 564349 - move code to parse compile_commands.json to subdir jsoncdb
Change-Id: I68f3b861b4326adf6da4f9d074a314628c7e8fef
Signed-off-by: Martin Weber <fifteenknots505@gmail.com>
2021-07-27 15:25:54 -04:00
Mat Booth
f61688336b Bug 562002 - Remove dependency to com.ibm.icu from CDT Make Core
Switch to JRE implementations:
 * com.ibm.icu.text.MessageFormat -> java.text.MessageFormat
 * com.ibm.icu.text.DateFormat -> java.text.DateFormat
 * com.ibm.icu.text.SimpleDateFormat -> java.text.SimpleDateFormat

Signed-off-by: Mat Booth <mat.booth@gmail.com>
Change-Id: Idbd5141bd131d412990ea51de681ab1a2d80262e
2021-07-27 15:35:24 +01:00
Mat Booth
b681480abb Bug 574247 - Same binary file can appear multiple times
A race condition could sometimes yield duplicate entries in
the binary container due to interleaving of calls to
includesChild() and addChild()

Add a method to CElementInfo that can perform the check and
add the child atomically, by synchronising on the list of
children for the duration of the two operations.

Change-Id: I1ef1cddf3aad4934ec63cb433ebae34a77b69739
Signed-off-by: Mat Booth <mat.booth@gmail.com>
2021-07-25 11:03:01 +01:00
Jonah Graham
c33e81872d Bug 575018: Mark volatile field correctly
Change-Id: I0edebbd906b4a5cfda804ddb3a22c75a04c3e510
2021-07-24 19:05:38 -04:00
Jonah Graham
467eeb06a4 Fix trace of command line array
In the DSF tests the command line is output, but it is an array so
needed an Arrays.toString

Change-Id: I8b7dc33073dc3a34ffe7eea0343e415041335c7d
2021-07-24 18:03:23 -04:00
Jonah Graham
de4a1e7222 Bug 574519: Always collect WSL entries in a Job
Change-Id: I35abec7ca075bf525e972e4cbc03af4361d1d490
2021-07-24 13:46:51 -04:00
Jonah Graham
43c285a7ef Bug 574247: Test for order of elements in outline view
Change-Id: I75593befecdc19ddee137830a457c8dbfb486a03
2021-07-24 12:18:22 -04:00
John Dallaway
79b1f157dd Bug 574928: Add PyOCD definitions
Change-Id: I3181d807d3ff33fd3b2cf7e2f764ed2cd3d174f5
2021-07-20 17:46:26 +01:00
Jeff Johnston
d27126df9a Bug 574874 - Disable full gdb console support if running CDT in flatpak
- add check for flatpak environment variable in
  GDBBackend_7_12.isFullGdbConsoleSupported() method
  and return false if variable is set

Change-Id: I667a63395592e2671ab3bf6f255e7428371086b3
2021-07-15 16:12:37 -04:00
Jonah Graham
c991e6ffaf [releng] Update simrel site for 2021-09
Change-Id: Ieb3672727058d0815dc02126e7d0026482ad0ad4
2021-07-14 20:14:48 -04:00
Martin Weber
37bcf543dc Bug 564349 - move workbench preference page of jsoncdb parser
move from up from pref-node C/C++/CMake/Json* to C/C++/Json*

Change-Id: I2eac9eb8528c6e7e255a78c92698cce42322e122
Signed-off-by: Martin Weber <fifteenknots505@gmail.com>
2021-07-14 17:35:57 -04:00
Martin Weber
2f65266115 Bug 564349 - rename classes with 'Indexer' in name to sth. more appropriate
Change-Id: I3247f3a001a6d0f882a6b4c674b1c7c0f74b1b9e
Signed-off-by: Martin Weber <fifteenknots505@gmail.com>
2021-07-14 17:35:57 -04:00
Martin Weber
72bc739a29 Bug 564349 - Update docs, UI strings and bundle descriptions
Change-Id: I00eeae3406ef83d34eba7f713b411692073ec323
Signed-off-by: Martin Weber <fifteenknots505@gmail.com>
2021-07-14 17:35:57 -04:00
Martin Weber
422835d273 Bug 564349 - rename packages & projects o.e.cdt.cmake.is to o.e.cdt.jsoncdb
Change-Id: I29e4e0fdc988b6d9cdccfb50f73ad16591645fa4
Signed-off-by: Martin Weber <fifteenknots505@gmail.com>
2021-07-14 17:35:57 -04:00
Martin Weber
6df1d75c4c sync translated Bundle-Name with manifest Bundle-Name
Change-Id: If77dc204bbcabfc12fbe325fa6615f49cc852921
Signed-off-by: Martin Weber <fifteenknots505@gmail.com>
2021-07-14 17:35:57 -04:00
Jonah Graham
b2c33dfb13 Bug 546981: Treat pragma region like pragma mark in outline view
Treats #pragma region and #pragma endregion similarly to how
#pragma mark is treated in outline view. With
region and endregion they are always surrounded by
divider lines if there is text after region/endregion, else just
a divider line is inserted.

Change-Id: Idb8bebe94363731e59412a7f31af3b54d53a2c8e
2021-07-11 20:13:46 -04:00
Jonah Graham
b6a8f778f9 Bug 546981: Add #pragma mark to Outline view
Adds #pragma mark support to outline view. With mark, dashes
(-) cause divider lines before/after the mark label.

When outline is sorted, the divider lines are omitted (lest they appear
all grouped at the bottom of the view).

The system property org.eclipse.cdt.core.model_include_pragmas can
be set to false in case there are side effects of introducing IPragma
elements to the CModel.

This change applies to the Outline view and the Quick Outline (Ctrl-o)
information popup.

Icons contributed by Greg Willits.

Also-by: Greg Willits <gwillits@marway.com>
Change-Id: I072ef26fb14e21b5453f909bade391a3f0521823
2021-07-11 20:13:33 -04:00
Jonah Graham
c254b95cd6 Bug 546981: Process all preprocessor items in model in one pass
The previous code iterated through the preprocessor statements
numerous times, this code has the same logic, but iterates through
the preprocessor statements less often.

Change-Id: If4fcf0a605aabff1f615811f8f528ea66a461136
2021-07-11 16:03:13 -04:00
Jonah Graham
bcd5dd35bd Fix typo.
Change-Id: I0f4fb95c1a44088d19ae9f98abd98765f456d110
2021-07-09 21:31:21 -04:00
Christian Walther
ce521345e0 Bug 574741: Always add main-build to .PHONY.
Addendum to 0436516 (Bug 573502): The main-build target now always
exists, not just when there is a pre-build step, so it must always be
marked as .PHONY.

Change-Id: I478222bcc319c516a6e116f710d8382346b5ded5
Signed-off-by: Christian Walther <walther@indel.ch>
2021-07-08 16:11:59 +02:00
Marc-Andre Laperle
1278baf052 Bug 464624 - C++ Parser fails with Syntax error on function declaration with __declspec and non-native type
Allow __declspec after identifier in decl-specifier.
See https://docs.microsoft.com/en-us/cpp/cpp/declspec

Change-Id: Ifdaeb649abcfa1b7391e2799072b1afbc07a16a1
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2021-07-07 12:31:53 -04:00