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

34914 commits

Author SHA1 Message Date
Alexander Fedorov
98e50a2d8b Align CDT.setup with target platform
Add org.yaml.snakeyaml for CMake
Use Orbit from
https://download.eclipse.org/tools/orbit/I-builds/I20201119185738/repository

Change-Id: If2fceeb124ddfb90e1dfe5c9212ceca2adace474
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-11-21 22:49:00 +03:00
Jonah Graham
36285742d1 Bug 568375: Publish com.sun.xml.bind to CDT's p2 repo
In the past CDT just picked this up from somewhere else.

Change-Id: I00672abd57e1710fe0e91fb0a1387740208d0c68
2020-11-20 14:30:28 -05:00
Alexander Kurtakov
bc9ecdad17 Build with Tycho 2.1.0
Change-Id: I7f682ad313ce275f45e0b4adb4c1280d952cf3ac
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Also-by: Jonah Graham <jonah@kichwacoders.com>
2020-11-20 10:53:30 -05:00
Torbjörn Svensson
7818b0f921 Bug 568228: Ensure no duplicated classes are registered
Change-Id: I0bcb4764887d73e7b57770e2ff397a06a4247624
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-11-19 20:13:15 -05:00
Torbjörn Svensson
163ae5f819 Bug 568228: Use lambda and for-each loop
Change-Id: I296247de2dd0b05c0df38621f73dc05798f6c7cc
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-11-19 20:13:15 -05:00
Torbjörn Svensson
6b8efb9651 Bug 568228: Corrected spelling of fListener
Change-Id: If7e5e53d96625c2b8faa661384794f58748e67ac
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-11-19 20:13:15 -05:00
Torbjörn Svensson
4187a6e828 Use clickable links in the MD viewer and highlight paths
Change-Id: I501484c4c34dfcdbdbb993284d3f51e7fc88329a
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-11-19 15:38:21 -05:00
Jonah Graham
409a830c39 Bug 568375: Consistent versions for use of JAXB libraries
Change-Id: I86a6def37aed6c30a7591fd8dde4c174f6af98bb
2020-11-19 14:31:30 -05:00
Marc-Andre Laperle
f5531cee19 Bug 565553 - Improve performance of build command parsers with large number of files
When possible, precompute the group number in the replacement expression
when parsing option strings, instead of calling replaceAll which is
slower. If the replacement expression is not a simple numbered group,
fall-back to replaceAll.

I have benchmarked this save between 200ms to 2sec depending on the
project size.

Change-Id: Id48fdcf476e2d1739522c9267e214f4c88bf316a
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2020-11-18 22:06:10 -05:00
Alexander Kurtakov
3abe3d28e6 No need to dispose colors anymore.
Change-Id: I39e760a0dba9d220268ee738c8a085d14f0e188b
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2020-11-18 13:41:15 -05:00
Torbjörn Svensson
e632011f2c Bug 568728: Drop execute permission on files
Add enforecment script that verifies that only specified file types are
allowed to be mared as executable.

Change-Id: I4b40e3a46b03bfc78a9dcd52e8bf29cb079b7f3b
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-11-18 17:38:22 +01:00
Alexander Kurtakov
57fd1b2847 Do not use deprecated CDataUtil.objectsEqual
Objects.equals should be used instead.

Change-Id: I6713d0d4d0fb8b13b3b336af61cdd73048839969
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2020-11-17 16:50:33 +02:00
Alexander Kurtakov
dc5b05442e Bug 568888 - Open *.mak files as makefiles
Recognize *.mak extension.

Change-Id: Id765af612d0d8b7f355a9696f06d9e1184db5703
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2020-11-17 15:43:02 +02:00
Jonah Graham
4213379279 Bug 567488: Add missing @since tags and bump version
Change-Id: Ib1918a41f939907777fe7729a40fc55e51e33c7c
2020-11-16 14:06:22 -05:00
Jonah Graham
7a106097e0 Bug 568856: Upgrade BREE to Java 11
Change-Id: I7422fabff409ec4bab5379350dc9bf67b84a07c0
2020-11-16 10:27:05 -05:00
Martin Weber
9a70f31c4e Bug 567488: re-add what was lost in rebase
Change-Id: Ib9342193a91bda76d6809464fb2350fb56ed8175
Signed-off-by: Martin Weber <fifteenknots505@gmail.com>
2020-11-15 20:05:42 +01:00
Martin Weber
4d40c5b68f generalize indexer-support API
Use IFile to specify the file to parse instead of a file-name implicitly
calculated from CBuildConfiguration.

Change-Id: If9d66a0b7533e9e403bc22fa21bf8e6e8fa80436
Signed-off-by: Martin Weber <fifteenknots505@gmail.com>
2020-11-14 15:17:35 -05:00
Martin Weber
de80240232 Bug 567488: Use snakeyaml to persist command-line options to pass to cmake
Change-Id: Ia6b60865f663aecae74d6d571bc9d213bf7cd36b
Signed-off-by: Martin Weber <fifteenknots505@gmail.com>
2020-11-14 15:17:35 -05:00
Martin Weber
ebf2d24c95 Bug 567488: Use command-line options to pass to cmake ICMakeProperties object
Change-Id: I4d6383ce240e6f2b8d7079f281ef7c2e56ea93a6
Signed-off-by: Martin Weber <fifteenknots505@gmail.com>
2020-11-14 15:17:35 -05:00
Martin Weber
3a10f42019 Bug 567488: Define command-line options to pass to cmake for build-script generation
Change-Id: Ie62549cf2c0ddbdb0c9934d3cdb928874b8362aa
Signed-off-by: Martin Weber <fifteenknots505@gmail.com>
2020-11-14 15:17:35 -05:00
Michael Uhl
6a9a8d409d Bug 567217 - template functions with lvalue and rvalue parameters of
template tests added.

Change-Id: I1fbbb45c6d895505a66ad917b1342365118e28d0
2020-11-13 21:22:39 -05:00
Abdullah Khalid
742fbd74d8 Bug 568796: Fix support of configurable timeouts in ETimeout.get
Signed-off-by: Abdullah Khalid <abdullah.dev0@gmail.com>
Change-Id: Id031fd752cbb4689fe2d667939282a3b202328c1
2020-11-13 22:33:21 +05:00
Jonah Graham
a5423f5cd6 [releng] Sort output in compare and replace report
Also-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
Change-Id: I0345c363a1f9c23c608e3b3765ca91dffa82077a
2020-11-11 20:57:29 -05:00
Torbjörn Svensson
8b391a7f3a Bug 568079: Reducing transitions from JAVA to native code (part 2)
Advapi32Util.registryGetValues() is more efficient to fetch all the
values since the regiter only needs to be opened once.

XXX: Due to a cycle in the dependencies we need to split this
in two parts, this previous commit handles the core.native API change
and this commit handles the use of the new API

Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
Change-Id: I960954e332e05dfebcd0263f983bbbc6c64d46af
2020-11-11 14:56:04 -05:00
Torbjörn Svensson
d0c3b2aaff Bug 568079: Reducing transitions from JAVA to native code (part 1)
Advapi32Util.registryGetValues() is more efficient to fetch all the
values since the regiter only needs to be opened once.

XXX: Due to a cycle in the dependencies we need to split this
in two parts, this commit handles the core.native API change
and the next commit handles the use of the new API

Change-Id: Ifd9f1ccc44c652ef3b517278bd342a486155c5fb
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-11-11 12:29:53 -05:00
Torbjörn Svensson
7d7d21cc67 Bug 568079: Reuse existing way of fetching data from registry
Use the WindowsRegistry implementation rather than having yet another
implementation for reading the Windows registry in native code.

Change-Id: If12068319ea3b99934112208a0a21538c792909c
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-11-11 12:29:53 -05:00
Nathan Ridge
821c7e2277 Bug 567217 - Avoid incorrect cache hits during the instantiation of alias template instances
Change-Id: I2f21b0a097f9d279b6e32d28acd68091e3b9ad76
2020-11-10 00:06:29 -05:00
Torbjörn Svensson
1d226f9273 Bug 568397: Hide "Build settings" if using custom command
When unchecking the "Use default build command" checkbox, hide the GUI
options to configure the flags as the user should have full control.

This solution was discussed in
https://git.eclipse.org/r/c/cdt/org.eclipse.cdt/+/171735

Change-Id: Ifbd67b279db55f5a83f4a660b9a1248e5c021df2
Also-by: cartu38 opendev <cartu38.opendev@gmail.com>
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-11-09 14:17:15 -05:00
Marc-Andre Laperle
c0b26f9993 Bug 568625 - "Invalid arguments" using __underlying_type outside template
ICPPUnaryTypeTransformation was meant to be used only when the
transformation is applied on a dependent type. But it was actually
always used when creating types for decl specifiers, regardless if a
dependent type was involved or not. The untransformed type was causing
issues because code dealing with ITypes doesn't apply the transformation
everywhere. It seems better to apply the transformation early when
possible and let the rest of the logic intact.

Change-Id: I1b6d77a857e901f71f00e935e75d24cea87c3118
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2020-11-09 12:06:57 -05:00
Marc-Andre Laperle
4a83dbfbdd Bug 568427 - 'alloca' not resolved when parsing in the context of clang-cl
Don't define __STDC__ for clang-cl, just like msvc. Added a new compiler
type to differentiate clang-cl from clang in order to be able to add the
define just for clang and not clang-cl. I initially thought that the
unresolved symbol was caused by a missing built-in symbol (_alloca) so I
started to implement MSVC as a separate language from GNU and not
pollute GCCBuiltinSymbolProvider with a new concept of compiler type,
etc. But it turns out _alloca is also in declared in the headers and was
inactive because of the wrongly defined __STDC__. So this version of the
fix of adding a compiler type to GPPScannerExtensionConfiguration is
much less intrusive and risky, although adding a new language could have
its merit in case of more substantial change.

Change-Id: Ieb27b7dbcc531b8fd3fe30777cd7f343fd3ba66f
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2020-11-08 22:28:19 -05:00
Marc-Andre Laperle
aff9a3332d Bug 568616 - Support for __is_same and __is_same_as (built-in equivalent to std::is_same)
IType.isSameType was doing pretty much already what was needed. Added
GCC 6.0 and 10.0 parser configs to enable these built-ins for the proper
versions.

Change-Id: Ifd2908e726c098fb07c9420b29e2cb26014419bf
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2020-11-08 21:04:31 -05:00
Marc-Andre Laperle
c61e879532 Bug 568408 - Add more GCC built-ins symbols in parser (based on GCC 10.2.0)
Add the built-ins that are straightforward to add, according to
https://gcc.gnu.org/onlinedocs/gcc-10.2.0/gcc/Other-Builtins.html#Other-Builtins

Change-Id: I0d680053018442e6d29a694a7128997b23828d2f
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2020-11-07 13:57:16 -05:00
Torbjörn Svensson
60bdeb63ca Bug 568079: Fix potential buffer overflows
Change-Id: I79898944575f895bfe4d99ce2aabaa88ea58d678
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-11-05 20:25:01 -05:00
Torbjörn Svensson
7f7a310c07 Bug 568079: Warnings as errors
All compile warnings for native code should be handled.

Change-Id: I5ee391fd24339cb55646dbd2980d2856fabe8ddb
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-11-05 20:24:54 -05:00
deepamin
477fdab7a1 Bug 568517: Module information for Breakpoints
Change-Id: I9751d2d921026b5f0052c7112ef69e975f7a44fe
Signed-off-by: deepamin <deep.amin@intel.com>
2020-11-05 10:12:09 -05:00
Torbjörn Svensson
1d2946184a Bug 568079: Hook into Eclipse tracing system for native code
After loading the spawner library, call the native method
configureNativeTrace() that will query the Eclipse platform for several
debug option strings.

Change-Id: I031bb2cdc04ba2675913b3b2e320039c28139638
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-11-04 13:37:24 -05:00
Jonah Graham
09b1f93e7e Remove unreachable code
Change-Id: I76fd2ceef7ef000f191b39fcb470cb5d560595a6
2020-11-03 14:33:15 -05:00
Jonah Graham
7e3bb7c9ab Remove unused C Nature from cdt core
There are no C/C++ files in cdt.core.

Change-Id: I1769f630e9bd9aa10397976e56d26c88a7f630dd
2020-11-03 14:29:40 -05:00
Jonah Graham
213088e43a Bug 530194: Don't assume that dwarf headers have valid positions
In cases where the dwarf headers say there is data at a position that
does not exist, the position call throws an exception. Prior to this
patch that exception, being a runtime exception, can cause the whole
IDE to exit in the case that the standalone debugger is used.

Change-Id: I7e12667890490a49ecd63785ea2cc7c02c08679d
2020-11-03 11:05:21 -05:00
Torbjörn Svensson
35530c50ef Bug 568079: Rework spawner to avoid memory leaks on Win32
Change-Id: I1253351d47d52e848867d7f9df61a66f9bd82d41
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-11-03 08:55:05 +01:00
Torbjörn Svensson
c598eedffa Bug 568079: Cleanup of native code
* Unify pointer checkes
* Avoid using negated conditions.
* Reduce scope of local variables when possible

Change-Id: Ibacd13126351019af544f3e22513654d5ffee342
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-11-03 08:33:45 +01:00
Torbjörn Svensson
2857a7a0b3 Bug 568079: Do not require rebuild of natives to enable/disable tracing
Change-Id: I6e26c6febd56bcc23efe0ec65973b2f02a5fd809
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-11-03 08:33:45 +01:00
John Dallaway
b0d25c22eb Bug 568454: Rework GDB Hardware "Main" tab to extend CMainTab2
Change-Id: I0b7be555a43f66cead397e93b58689da1c94dcd4
2020-11-03 01:19:29 -05:00
Jonah Graham
90e53382fb [releng] Update target plaform to 4.18 M2
Change-Id: Id60d944684870278cef5512fc769c4fcde5a18d2
2020-11-02 12:10:44 -05:00
Torbjörn Svensson
6431307e70 Bug 568079: Reformat source code using clang-format
This will enforce formatting when building the native code

Change-Id: I6c047f4c0672609df322b7ba716fc786f0e3aab4
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-10-31 20:13:42 -04:00
Torbjörn Svensson
7f10dce12f Bug 568079: Remove unneded DllMain (does nothing)
Change-Id: Ib4489c6bcde43c6299550ec57c632bf666bcac6f
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-10-31 20:24:52 +01:00
Torbjörn Svensson
908aa33b91 Bug 568079: Activate -Wall -pedantic and fix warnings
Change-Id: I7dac7f9d90dd65cfbff241f9b778bc5ff6bc9db6
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-10-31 20:24:44 +01:00
Torbjörn Svensson
570c5b7ff0 Bug 568079: No need to check for NULL before free()
Change-Id: I4948ce07ed4ec426ce2a3bac226281409c25f7c9
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-10-31 20:24:44 +01:00
Torbjörn Svensson
3ae7b88630 Bug 568079: Add missing bracers
Change-Id: Icd916d224d4900cf2227f868f8b94cdae13c3f6b
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-10-31 20:24:44 +01:00
Torbjörn Svensson
82bc0b67e5 Bug 568079: Removed generate method comment from implementation
The comment is part of the generated header file

Change-Id: Ie890ad4d906c0f4e6a23b2a42a1ef342d1da8865
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-10-31 20:24:35 +01:00