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

34944 commits

Author SHA1 Message Date
Jonah Graham
44a4b92686 [releng] Update maven-resources-plugin to latest version
Change-Id: I94c4968760400cad2d1979087ef6a56a700c5817
2020-10-12 09:09:48 -04:00
Jonah Graham
aff7bc21ad [releng] Update jacoco-maven-plugin to latest version
Change-Id: I3cc61cc97f94a14b859f26b31093e3a7490dd93a
2020-10-12 09:09:33 -04:00
Jonah Graham
1a89aef090 [releng] Bump version to 10.1.0
Change-Id: Ia89f4c20e59d07bd692c648cfca36efcae210160
2020-10-12 09:07:23 -04:00
Jonah Graham
938729c522 [releng] Update to Platform 4.18 M1a
Change-Id: Iab57caf16dc5ea97b646376f9ef8f3882619f6e1
2020-10-12 08:49:46 -04:00
Jonah Graham
ac86378fe6 Bug 567261: API Filters and documentation for reverted API
Change-Id: I6b58a409dd8ac53f685036445fe517fbb1cdc76a
2020-10-12 08:49:31 -04:00
Jonah Graham
46081b7fa4 Bug 567738: Remove CDT devel.launch
Change-Id: I1be33ca9e719827b7a8056caa63e24e493995a72
2020-10-09 15:10:38 -04:00
John Dallaway
5bc332d14c Bug 567662: Eliminate pixel-level sizing on debugger page
Change-Id: If0f14b9ed8d6e6343888ba8acb3b4f432f15c5b5
2020-10-07 08:57:49 +01:00
Jonah Graham
066bb7cd9a [releng] Update comparator repo
Change-Id: I021e1ae414239ba2daecfce10c1ce500a2517043
2020-10-06 16:20:18 -04:00
Marc-Andre Laperle
fa270ed30a [releng] Update plug-in versions
Version changes are all to refect non-API changes (micro version)

Change-Id: I372aa2671a4c7f5c765a42156d3f639b8eaff680
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2020-10-06 16:20:18 -04:00
Jonah Graham
24639efcee [releng] Bump version to 10.1.0
Change-Id: I39f7c379c0b43c086a25b047b3af564f6f24d670
2020-10-06 16:20:18 -04:00
Jonah Graham
6084acb880 [releng] Exclude Makefiles from compare-and-replace check for DAP
The generated elf file is still checked, but the makefiles are auto-
generated and have full path names in them, meaning that different
Jenkins jobs (with different workspace paths) cause a difference.

Change-Id: Iaa2eab80ba4b116c06ff1f765160a8580c0dafff
2020-10-06 14:05:41 -04:00
Jonah Graham
16750b6528 Bug 567124: Disable QML Analyzer relatively quietly on Java 15
Instead of pop-up NPEs and hung UI, log once that QML Analyzer is
unsupported.

Change-Id: I4ad599e870bd73f5cbda8992dedb14405af545f4
(cherry picked from commit 6d76cc5839)
2020-10-06 10:33:30 -04:00
Marc-Andre Laperle
41b741f358 Bug 567261 - Revert "541239: [C++17] Implement parser support for deduction guides"
This reverts commit bcb955a321.

Change-Id: Iaf6ba398e439e3d1da1e3a3b0247c7b24bbfb057
2020-10-05 21:40:00 -04:00
Marc-Andre Laperle
08e8e57162 Bug 565553 - Improve performance of build command parsers with large number of files
Narrow down parsers based on option string

Instead of trying to match all patterns one by one, we can check the
start of the option string to be parsed and narrow down which pattern
(parsers) should be used.

Doing so is much less elegant code-wise as we are "unrolling" the
beginning of the patterns by hand, but it gives a good speed up. Around
300ms saved with a test of LLVM code base (~50% of parseOption time) and
much larger gains on much larger projects or course.

Change-Id: I9e841e7233078d6e38ad08943d98966d0e3c661e
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2020-10-04 14:29:11 -04:00
Alexander Fedorov
379e300382 Bug 567554 - Configure CDT.setup and .target for 2020-12 development
Add repository list for 2020-12
Update Orbit to 2020-12

Change-Id: Ib1dd63606be177e0e17000903c9efe5aeea851fa
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-10-04 02:28:49 -04:00
Marc-Andre Laperle
a6baac7172 Bug 567377 - Add built-ins for Clang already present in parser for other compilers
These were already there for GCC but not for Clang and they are
supported by Clang:
__is_literal (synonym for __is_literal_type)
__is_standard_layout
__is_trivial
__is_trivially_copyable
__float128
__int128

Change-Id: Iec6151492cd30f17e2a5aa4617f6e88812f0f4cc
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2020-10-03 12:42:48 -04:00
Marc-Andre Laperle
90a8376658 Add a comment to help explain one of the mysteries of SetCProjectDescriptionOperation
I'm not sure how sufficient this explanation is but it's better than
leaving just "// Why?" for that central piece of code in CDT.

Change-Id: I0858f83b8f4fbe65fd869e96fb210b5af7d16f65
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2020-10-03 10:13:24 -04:00
Marc-Andre Laperle
7a938095be Bug 567336 - Allow double-click on elements in Source Location and Output Location tab
Change-Id: Ifed7b5d005977db30f3c9ba4c7dc6a366691df53
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2020-10-02 23:52:52 -04:00
Marc-Andre Laperle
cb8e2c6887 Bug 567536 - In a Perforce workspace, untracked language.settings.xml always get prompted to get latest
IWorkspace.validateEdit should only be called if the file is read only.

Quoting IWorkspace.validateEdit javadoc "A client (such as an editor)
should perform a validateEdit on a file whenever it finds itself in the
following position: (a) the file is marked read-only, and (b) the client
believes it likely (not necessarily certain) that it will modify the
file's contents at some point."

Change-Id: Id73d3629f9ce276b931ed586a6dbf19199d56831
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2020-10-02 23:41:58 -04:00
Alexander Kurtakov
de70eaa5c5 Bug 567455 - Stop using the
IWorkbenchPreferenceConstants.SHOW_TRADITIONAL_STYLE_TABS

Change-Id: I6ee225298d68d68c65cfe6c55e662107055a4238
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2020-09-29 19:15:14 +03:00
Alexander Kurtakov
b5a9c1eeb9 Build with Tycho 2.0.0
Change-Id: I2b47317f35c990f222b43cc14837d0281b8e3bfe
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2020-09-29 18:54:28 +03:00
Marc-Andre Laperle
2cea3eba8b Bug 567169 - Detection for VS 2017 and VS2019 toolchain
Fix a NPE I just introduced. This method gets called before things are
initialized, just like before. I prefer being conservative by restoring
previous behavior and not change too many things by revising the
initialization sequence at the same time of other bigger changes.

Change-Id: I1096621e29b51c67d218c7e55eaf3ebe29858d07
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2020-09-28 22:50:32 -04:00
Marc-Andre Laperle
5af949d656 Bug 567169 - Detection for VS 2017 and VS2019 toolchain
With this change, support for VS 2008, 2010 and 2012 is dropped
and support for 2017 and 2019 is added.

The new detection uses vswhere.exe as we cannot rely on registry keys
anymore. We also retrieve correct values for INCLUDE, LIB, and PATH
by executing vcvars.bat, which is less brittle and hard-coded than
before. Doing this also partially addresses bug 357980.

We also now store knowledge about multiple VS installation (one for
each major version) and related MSVC toolchain. This is one step closer
to letting users choose which version to use and store this per
configuration in the project.

Change-Id: I3b3579d8c6742ef232626b5e5294bb6f8634a326
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2020-09-27 21:04:43 -04:00
Marc-Andre Laperle
cb0797481f Bug 566918 - [C++17] Support for __has_include (standard) and
__has_include_next (extension)

__has_include evaluates whether of the header name passed as parameter
exists. This can only be evaluated as part of a #if directive.
Interestingly, it also has to be reported as defined, i.e. #if
defined(__has_include) or #ifdef. In order to report this as defined,
this implementation adds it as a macro but during macro expansion, it's
actually converted as a dedicated token type. Then this token gets
evaluated during normal preprocessor expression evaluation.

In order to parse header names, there were several options. The main
problem is that header tokens (tQUOTE_HEADER_NAME, tSYSTEM_HEADER_NAME)
are actually produced by the Lexer as part of a special mode
(setInsideIncludeDirective) set during the handling of #include. For
expression evaluation, the tokens are already generated without
setInsideIncludeDirective therefore we only have plain string
and < > tokens.

One approach would be to generate header tokens "earlier" than executing
we need to track a new state while fetching token to configure the Lexer
(setInsideIncludeDirective) when in the context of an __has_include.
There are also complications due to macro expansion within the
__has_include where after one expansion, we don't have a lexer in the
context anymore, introducing more changes.

Another approach would be to remove the Header token creation from the
Lexer itself and let the preprocessor assemble the tokens into an header
string, in both cases of #include and __has_include. This mostly works
and is the approach used in Clang, but the problem is that whereas Clang
keeps track of leading spaces of tokens, CDT doesn't. This means with
such change that CDT would now allow #include <  iostream  > (notice the
white space). I think this is too big of a downside and also too big of
a change to introduce this handling of whitespace at the token level.

The approach used here is more conservative and isolated but also shares
less common logic with #include processing. The non-header token
(string, <, etc) are assembled into a header string only in the case of
a __has_include. So a downside will be that #include and __has_include
will be inconsistent in regards of leading/trailing space parsing but I
feel like this is better than making #include more permissive.

Change-Id: I5b9f5c616c8d999e0c916a85b41f96e20037b651
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2020-09-27 15:12:52 -04:00
Marc-Andre Laperle
2015e9b009 Bug 567334 - Occasional NPE in CompilationDatabaseParser
Make sure the project is still accessible before doing the work.
It's possible that the project got closed before the job had a
chance to start.

Change-Id: If02e818394502397e8958d18284160d4f08ca195
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2020-09-26 22:28:03 -04:00
Martin Weber
f2761aa76c Sync project layouts with other CDT bundles.
Move sources from src/main/java to src.
Change output dir from target/classes to bin.

Change-Id: I348fdf2960d183e6ba8ddf1b7971c494fb2bca9c
Signed-off-by: Martin Weber <fifteenknots505@gmail.com>
2020-09-25 22:47:41 +02:00
Marc-Andre Laperle
6a3e138431 Bug 567018 - Built-in language settings provider for Clang-cl
It is the same as GCC built-in provider but with tweaked parameters to
pass to Clang driver. It has to be enabled by hand since there is no
toolchain associated with it for now.

Change-Id: I5455d04725b2ee4709844d32ee32d355d120d807
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2020-09-24 17:55:55 -04:00
Martin Weber
ae3159f809 Bug 567220: CompileCommandsJsonParser error markers are not deleted from the problems view
Change-Id: Idb1f3fc3429c06a89550a9446c88c2181f3d8cdb
Signed-off-by: Martin Weber <fifteenknots505@gmail.com>
2020-09-23 21:05:17 +02:00
Martin Weber
e974d52aa4 Bug 566495: Rework CMakeErrorParser
Change-Id: I5c7c67597da386137581b7b240b9ca7fdcf71c29
Signed-off-by: Martin Weber <fifteenknots505@gmail.com>
2020-09-22 15:57:43 -04:00
Marc-Andre Laperle
6a9d212c0e Update target and baseline after 2020-09 release
Change-Id: I631545a1ceaf18e576f85f744d6b141c35363fe1
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2020-09-19 14:04:37 -04:00
Marc-Andre Laperle
050be8ebe1 Bug 565553 - Improve performance of build command parsers with large number of files
Optimize AbstractLanguageSettingsOutputScanner.findResource by checking
under the currentProject first when searching for the IFile
corresponding to the parsed file name.

When the parsed file name is absolute, we can try to make it relative to
the current project and see if it exists as an IFile instead of going
through findFilesForLocationURI which is very slow. Having an absolute
path for the source file is quite common under the current (local)
projet.

This saves around 1.5 sec when parsing all commands of LLVM projet as an
example.

Change-Id: I576a917410e5d5ecbd8e932011555c699b250354
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2020-09-13 12:17:25 -04:00
Jonah Graham
65a4d1c424 Bug 546610: fix writeaccess_highlight color in dark theme
Uses same color as JDT in
https://bugs.eclipse.org/bugs/show_bug.cgi?id=537988

Change-Id: I578b6c8e3ebf345d6a90214a3a919e0ee167ac8b
2020-09-07 10:55:00 -04:00
Jonah Graham
e2b94a324f Bug 566732: Connect selection preference page to terminal
Bug 549697 introduced the new UI for setting colors, but the
selection color (while added to the pref page) was never
connected to the code.

Change-Id: I9934efe595efe141a14f0bca3bdf355f436d907d
2020-09-07 09:50:43 -04:00
Jonah Graham
9b94dbd5ef [releng] CDT target platform update for RC2
Use Platform 4.17 RC2 and update CDT's self referenced version

Change-Id: I782b55048da266f56b6b23b626aa1cca9764b22d
2020-09-06 21:57:56 -04:00
Jonah Graham
545597722a Bug 566713: Fix Widget Disposed exception with asyncExec
Change-Id: I37620534ec5c88da4acaa6e0a2cc789347a8d8d5
2020-09-06 21:47:32 -04:00
Jonah Graham
983005e3c4 Bug 566712: Fix NPE on last item in list delete
Change-Id: I9fe2f5b51be7389c8e09c4461a878f982d765695
2020-09-06 21:47:32 -04:00
Moritz 'Morty' Strübe
10e74dda52 Bug 566710 Copy CIncludeFileEntrys from Docker image
Also copy files included using "-include", by copying and adjusting
ICIncludeFileEntry, entries.


Change-Id: I886b87a39b3cd6a7b2ea59aeaef327ca9bc69e45
2020-09-06 19:50:34 +02:00
Jeff Johnston
17b3e6c1a6 Bug 566658 - [build] Core Make project does not support profiling
- fix Core Make Makefile template to add one for linuxtools
  build mode which is used for Linux Tools profiling
- fix the error default to change tab indent to spaces so
  make won't treat error message as recipe
- add some default profiling flags for gcov and gprof support when
  Linux Tools profiling

Change-Id: I29c2247c9e2b00a4e1c1952198faf881abd7a66a
2020-09-03 23:32:19 -04:00
Jonah Graham
c378a6747a Bug 565836: Add aarch64 for standalone debugger
Change-Id: I3cbbbf98778870ad2be30318a44575adf0308f2e
2020-09-03 21:32:38 -04:00
Torbjörn Svensson
5249144c8c Bug 521515: Build ppc64le libraries on HIPP
Change-Id: Idd05e27e02b712a0eb6940ebf90a201509140681
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-09-02 20:27:03 -04:00
Alexander Fedorov
26e994af15 Bug 566492 - Add CDT LSP to CDT Optional features
Add "LSP4E C/C++ Support" to "CDT Optional Features"

Change-Id: I88d554b5bf614649e6763e192e151a90b33da545
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-09-02 13:47:57 -04:00
Alexander Fedorov
4a3e046dda Bug 536320 - Do not show LSP4E diagnostics in the C++ editor
Requires https://git.eclipse.org/r/c/lsp4e/lsp4e/+/168414
Allow LS to be started
	from "Generic Editor" only
		and
	if ".settings/org.eclipse.cdt.lsp.core.prefs" has "prefer=false"
actually this blocks LSP from launching until user will configure it
explicitly.
UI to configure for workspace and project.

Change-Id: I7104d21f90380a5de7ccae157ea4299e0558a27c
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-09-02 13:44:53 -04:00
Alexander Fedorov
718088b907 Bug 566610 - CDT 10.0 stream should use LSP4E 0.16.0 release
Use https://download.eclipse.org/lsp4e/releases/0.16.0/ instead of
snapshots for CDT 10.0 stream.

Change-Id: I163c3de4723facb45eb23a548174e8a4cd6c0e5c
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-09-02 18:54:36 +03:00
Martin Weber
0ccb310931 Print build-start and -end message to consoleInfoStream.
This make messages stand out more prominently in the build console.

Change-Id: I180a7eb6631870004cca94a7f1d2c8bda5b044f8
Signed-off-by: Martin Weber <fifteenknots505@gmail.com>
2020-09-01 14:24:36 -04:00
Martin Weber
afe13d32bf Bug 566385: integrate cmake build-output parser (code cleanup)
Change-Id: I6fe6f728c45316e79875201b4071f75a8016393e
Signed-off-by: Martin Weber <fifteenknots505@gmail.com>
2020-09-01 14:23:57 -04:00
Martin Weber
a6baf50a47 Bug 566385: integrate cmake build-output parser
Change-Id: Iaf6b6f6e653571f666474e096aec4cb29893088c
Signed-off-by: Martin Weber <fifteenknots505@gmail.com>
2020-09-01 14:23:57 -04:00
Jonah Graham
b73f02b4d1 Bug 565836: Include plugin.properties properly for aarch64
Basically a simple typo fix

Change-Id: Id7dea86de6eab4c923da8809e18ae48c507b2732
2020-09-01 07:39:58 -04:00
Jonah Graham
1562080a3c Bug 553674: Make Binary parsers and related classes Autocloseable
And prepare to make it an error in CDT to not have properly handled
an Autocloseable which means a number of fixes to make sure handles
are closed.

Change-Id: I36cd46017bbce6ece1703d688d7754e523eca68f
2020-08-31 21:32:32 -04:00
Jonah Graham
7818f6e494 Bug 558809: Handle cases where Oomph corrupts \0 char in preference
Some CDT preferences use \0 as a separator in preferences. Somewhere
in the Oomph preference synchronizer stack there is, or was, a place
that failed to escape/unescape preferences with encoded \0 properly.

CDT would then fail to parse the preference and an exception would
be raised, causing code completions and the editor to be broken.

This patch hardens the CDT code to:
(1) Allow an escaped \0 to be used as a separator on
    read (Oomph uses ${0x0})
(2) Handle NumberFormatExceptions gracefully. In this case that means
    showing user a pop-up that their completion preferences
    are empty and offering to reset them, or edit them in preference
    page. This UI logic already existed, so all the new code
    has to do on failed parse is return a list of all disabled
    completions.

Change-Id: Ibf3b05c0855bb96c195ca43139a50c27a2a90c7e
2020-08-31 20:06:10 -04:00
Jonah Graham
cb4c20c6ab [releng] Update comparator repo to 9.11.1 release
The contents of p2 repo are the same, this URL is just the permanent one

Change-Id: Ief8e6e1eb724f0aa5c8ab4eb99ff1f74d9204077
2020-08-31 18:24:33 -04:00