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

13951 commits

Author SHA1 Message Date
Jonah Graham
bd814fdaf9 [releng] Bump to CDT version 9.11.0
Change-Id: If729509efbddc71adb565e224437b76089d6e099
2019-12-07 15:24:34 -05:00
Jeff Johnston
45585fcbbf Bug 553761 - NPE at GNUCSourceParser.identifier
- add null node check in GNUSourceParser.identifier()
- same for GNUCPPSourceParser.buildName()

Change-Id: Ic170d0220d179947af5b9c0d7dc50f1ed9e5965d
2019-12-05 10:59:43 -05:00
Simeon Andreev
9d897fcc04 Bug 553667 - Resource leak in ElfParser
This change fixes a file descriptor leak in
ElfParser.hasInterpProgramHeader(). An Elf object is created without
calling its Elf.dispose(). This results in a created RandomAccessFile
object, without a respective RandomAccessFile.close() call.

Change-Id: I6d2a0911857eb6fcb388b352801c2259ae19171c
Signed-off-by: Simeon Andreev <simeon.danailov.andreev@gmail.com>
2019-12-02 15:21:24 +01:00
Jonah Graham
0d4fcccd3d Bug 553613: Limit memory growth on generated typenames
When using the cache, only put the string reference in the typename
if over the threshold.

This is essentially a fixup for Bug 519121

Change-Id: I1436a9740bfb8ce46747f9a2ab0649ed366c4d9b
2019-11-29 12:10:02 -05:00
Nathan Ridge
7e267a4791 Bug 553141 - Fix logic error in TypeInstantiationRequest.equals()
Change-Id: Ie458f44a4384233ef96ed18e46f38fde309c7399
2019-11-19 21:28:15 -05:00
Jonah Graham
0004800a8e Bug 552479: Reuse argument string to array from CommandLineUtil
The version of stripArgs that was here did not deal with quoted
arguments properly

Change-Id: I5a63338b618563f20a0f5995a6ec55e1af4ec0f0
2019-11-19 16:40:29 -05:00
Jonah Graham
199824d975 Revert "Bug 552479: Reuse argument string to array from CommandLineUtil"
This reverts commit 1060546c36.
2019-11-14 10:47:04 -05:00
Jonah Graham
1060546c36 Bug 552479: Reuse argument string to array from CommandLineUtil
The version of stripArgs that was here did not deal with quoted
arguments properly

Change-Id: I5a63338b618563f20a0f5995a6ec55e1af4ec0f0
2019-11-14 10:46:17 -05:00
Jonah Graham
c53b59c36b Bug 552481: Expose error when wizard fails
An example of a failure that used to be buried in the log is a project
that failed to be created due to different case resource exception.

Change-Id: I89acd7474d499cfe258dfdd840983bef64d38838
2019-11-14 09:56:23 -05:00
Nathan Ridge
fac1ba39e6 Bug 536986 - Add support for string literal operator templates
This was proposed for standardization in N3599. The proposal was not
accepted, but it's supported by gcc and clang as an extension.

Change-Id: I0c4a6e532f3a9172a8cb26218f0a608a1ca6be7d
2019-11-08 22:22:25 -05:00
Marc-Andre Laperle
058230c13b Remove DeleteResConfigsAction and ExcludeFromBuildAction
Deprecated since CDT 8.0 and not used anywhere.

Change-Id: Ie0dc3e844dfc2edd9ac4e77501372fec7a36c2f2
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2019-11-07 22:57:31 -05:00
Marc-Andre Laperle
fd156ed737 Fix wrong @since after api baseline update
Change-Id: Id643d6a3b4abc124ec389bbd8ac18a00c5247352
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2019-11-07 21:38:49 -05:00
Jonah Graham
e27e94fb96 Revert "[releng] Add o.e.cdt.core.tests to cdt-ui.skip.tests"
This reverts commit 23bac92ae3.

Change-Id: I829c239f9bc46481add4c27135bed86473e41f54
2019-11-07 09:36:42 -05:00
Jonah Graham
a5a2be90e7 Bug 552745: Disable intro screen (webkit use) in tests
Change-Id: Ib97fb00cb96af34a14d89a07d88de15c276537aa
2019-11-06 17:26:04 -05:00
Jonah Graham
23bac92ae3 [releng] Add o.e.cdt.core.tests to cdt-ui.skip.tests
This was done to try to diagnose Bug 552716

Change-Id: I0e86573ff9e1fc054e66f3b69345613fcf0558c5
2019-11-05 21:44:32 -05:00
Jonah Graham
35338f28a3 [releng] Cleanup code that has been misformatted and update to SDK 4.13
The check-code-cleanliness CI jobs have not been running recently,
so this commit is to the code up to those minor changes

Change-Id: I9fb4b0213dec558f58c5ca718b3d2685564ef456
2019-10-28 13:07:02 -04:00
Jonah Graham
7a2ff27b91 [releng] Update comparator repo to last release
Change-Id: I00901808f1eda041f070b2f3e1cda076987c69a5
2019-10-17 10:07:44 -04:00
Marco Stornelli
fa012eb7d4 Bug 545704 - Added checker for float comparison
Change-Id: Id5529b9bd5ee38bac5f5b7e8adab741f0bce3f8e
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-10-17 00:58:22 -04:00
Jonah Graham
2f5f4d50a2 [releng] Bump to CDT version 9.10.0
Change-Id: I027e7e5542fda3e599ee476814593fc4b464adca
2019-10-16 10:55:28 -04:00
Nathan Ridge
02789c6a1e Bug 551689 - Fix equivalence computation for simple literals
We were using equals() on char[] array objects which returned false if
the objects were distinct, even if they contained the same characters.

Change-Id: Iff5da52c67a0c17d857d791f57e768aafa7e165d
2019-10-14 12:22:43 -04:00
Marco Stornelli
5c77776dcd Bug 550096 - Fix format function parameters in macro expansion
Change-Id: I509e434032a49a853e1794ab2d4b5a6a864eb5da
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-10-13 10:16:08 +02:00
Alexander Kurtakov
d0d6f57a50 Move away of deprecated imageDescriptorFromPlugin.
Change-Id: I855682065fe6b40deeedc6cd7b5cb419848caac0
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2019-10-11 08:57:51 +03:00
Alexander Kurtakov
7cd94f8f91 Move away of deprecated IDE.getEditorDescriptor method.
Change-Id: Id7e61518276a5cf1f9395ada03c8168d1a5a0920
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2019-10-11 00:57:50 +03:00
Alexander Kurtakov
dbaf7ae694 Remove javadoc references to deprecated classes
Change-Id: I458076ccd407198e7d042bdf6f07ea5be0f87791
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2019-10-11 00:32:02 +03:00
Alexander Kurtakov
9f37660751 Navigator view is scheduled for removal.
Get rid of it in user visible places for now.

Change-Id: If887dce5de1a9a23a8fa2a55445b632b31ba6401
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2019-10-11 00:26:19 +03:00
Alexander Kurtakov
824a7cb4d1 Add missing Override annotations.
Change-Id: Ie5974aadea249a8cbc44524c297c29137ec9f4f5
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2019-10-11 00:19:14 +03:00
Alexander Kurtakov
5224c92b67 Generify Class.
Change-Id: I065b4f7c1559a141ebf2e0c82e896557a7cfc05f
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2019-10-11 00:10:57 +03:00
Alexander Kurtakov
5690cf3738 Move to non deprecated templates classes.
Change-Id: I54561f5ad5b7cd7726c0e5e1863a0603f46d7dd8
2019-10-10 22:52:34 +03:00
Alexander Kurtakov
8ba5a7191f Migrate to ViewerComparator.
Change-Id: I5b70806ca7376797e387164158a0c41d52b59cb5
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2019-10-10 22:20:44 +03:00
Marco Stornelli
a781cdf342 Bug 343274 - Fix VariableReadWriteFlags errors
Read and write flags weren't correctly set for array access.

Change-Id: I2c54b270895514f3681903709498aa9344a5bc7e
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-10-06 09:32:08 +02:00
Marc-Andre Laperle
a71a413500 Use SafeRunner in LanguageSettingsProviderTab
If an option page contributed by an extension throws an exception,
then none of the other pages get created. It is better to use a
SafeRunner when in such case where plugins could break other things
than its own functionality.

Change-Id: I531c966be8ef6460a838b3d10bc61dcbdbe627b0
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2019-10-03 23:16:18 -04:00
Marc-Andre Laperle
4e16631f30 Bug 360919 - [MSVC] preprocessor symbol __STDC__ always defined
Move the __STDC__ macro to the scanner configuration extension, where we can
differentiate compiler type. Only add it when compiler type is not MSVC.
This will miss the case where MSVC is compiling in C mode and /Za is used,
then __STDC__ should be defined but this is a much less common case and would be
addressed likely outside scanner configuration.

See also
https://docs.microsoft.com/en-us/cpp/preprocessor/predefined-macros

Change-Id: Icc5d3ef038fb468efe33802a04fc78fc1e5e583e
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2019-10-03 23:14:32 -04:00
Hannes Vogt
b52b03a9bc Revert "Bug 549362 - Aggregate init for union-like classes"
This reverts commit 9a6fd2ab97.

A proper implementation is needed to resolve bug 551610.

Change-Id: I1ea353ea905a33dc43ceda59dde93c15de2032cd
Signed-off-by: Hannes Vogt <hannes@havogt.de>
2019-10-02 07:51:46 +02:00
Hannes Vogt
944ec0e06e Bug 549367 - [C++17] Aggregate init of base
Implements http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/p0017r1.html:
Types with non-private, non-protected, non-virtual base classes can be
aggregate initialized.

Change-Id: Idad341d45d6aaf1d8c36691cf8d7bc7cd049e28b
Signed-off-by: Hannes Vogt <hannes@havogt.de>
2019-09-26 00:12:11 -04:00
Hannes Vogt
aee38fb062 Bug 549036 - Init Type(std::initializer_list) from Type{...}
Fix constructor calls of the form Type{...} to a constructor of
the form Type(std::initializer_list<T>).
So far only Type({...}) was supported.

Change-Id: I09e3b8c9c73c30e12c0c370a5c88885079a14746
Signed-off-by: Hannes Vogt <hannes@havogt.de>
2019-09-24 01:03:27 -04:00
Hannes Vogt
9a6fd2ab97 Bug 549362 - Aggregate init for union-like classes
ClassTypeHelper.getDeclaredFields() returns the first field of an anonymous union.

Change-Id: I3f33dcdd7b274ffac7aad0b80ea8c523bfd6e5f2
Signed-off-by: Hannes Vogt <hannes@havogt.de>
2019-09-22 20:14:24 -04:00
Jonah Graham
2cbf927a36 Bug 550076 - Use PE64 parser by default
Change-Id: I757c8ace43e79f1215ad0e817430e5ab90415401
2019-09-09 15:56:07 -04:00
Jonah Graham
a1febf0097 [releng] Require target platform bundles as minimum version
Without setting dependent plug-ins to minimum version to match the
target platform we are aiming for we can imply (and therefore let install)
CDT into older versions of Eclipse where CDT does not actually work.

This can be exposed in very odd ways, such as IllegalAccessError, when
platform has allowed API changes.

However, rather than update every single bundle in CDT, only the
o.e.cdt.core/ui bundles are being updated as this should achieve the
desired result without every other bundle needing to be touched.

See Bug 536448

Change-Id: Ifad2e0eef003b037ac332301120c26fe079a2e7f
2019-09-09 15:53:46 -04:00
Adrien Thierry
975ff2f0cc Bug 550076 - Added new parser for PE executables
This new parser is compatible with both 32 bit and 64 bit executables.

Change-Id: Ief9db7c6fcc10ea9e92d5ca58186eb50100d39f6
Signed-off-by: Adrien Thierry <adrien.thierry@spacecodesign.com>
2019-09-03 10:44:02 -04:00
Nathan Ridge
15dbbb8304 Bug 550397 - Fix a logic error in instantiateConversionTemplates()
Change-Id: If4cb26e3b392e65ffbcb53514db67c1065aa9c79
2019-08-31 21:24:35 -04:00
Doug Schaefer
b1f14709b8 Bug 550308 - Allow toolchain to specify part of the build config name.
This allows us to consider more than just the os and arch in the build
config names as required by the selected toolchain.

Change-Id: I3e1a52c756aca13fbe6c83a95f9a86bb2f286f1d
2019-08-22 16:44:13 -04:00
Alexander Kurtakov
a3938937f2 Convert new Runnable to lambda.
Take 2.

Change-Id: I060b0e41d8c6058db0c2ba88af8454b5517105b8
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2019-08-12 17:31:30 +03:00
Alexander Kurtakov
1e42e5f0e1 Convert new Runnable to lambda.
Change-Id: I8b827013a29802a3f3ae6400ddce8d8753eb6399
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2019-08-12 07:11:40 -04:00
Jeff Johnston
bb602d0fb3 Bug 515393 - Allow contribution to CDT CSS pref node
- add pseudo attributes to allow others to extend the
  org-eclipse-cdt-ui preference node

Change-Id: I79a7bbf80fee47988dc81e651375005640ceee1e
2019-08-09 15:00:50 -04:00
Nathan Ridge
f89c738b0b Bug 549508 - Avoid calling CPPBasicType.setAssociatedNumericalValue() without cloning the type
If we call it without cloning, we associate the value with every place
that has a reference to that CPPBasicType object, which could involve
completely unrelated entities.

Change-Id: Icff6c32d15ee6dbc55e363b2de9a166e03440f74
2019-08-09 02:54:06 -04:00
Alexander Kurtakov
c252113586 Replace ViewerSorter with ViewerComparator.
Change-Id: I3013723be25fef063f382456166f6e5a622316d3
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2019-08-09 08:50:29 +03:00
Alexander Kurtakov
c60a046bd1 Fix vararg warning with 4.13.
While touching the class:
* convert to lambda
* foreach conversion
* remove useless non-javadoc comments.

Change-Id: I3419be135c68829bb98827683bc8fe47c1e2940e
2019-08-08 15:56:36 +03:00
Thomas Corbat
acbceb04ee Bug 522200: [C++17] Add support for structured binding declarations
Adds support for structured bindings:
- Parser updated
- Semantics updated
- Tests for parser and bindings added

Change-Id: I1de7b760041ac4ce4601f1b5032fdb0a197212a1
Signed-off-by: Hansruedi Patzen <hansruedi.patzen@hsr.ch>
Signed-off-by: Thomas Corbat <tcorbat@hsr.ch>
2019-08-05 09:00:35 +02:00
Marco Stornelli
af88842969 Bug 548902 - Fix exception in override methods refactoring
Change-Id: I2cde109ead8536c048bbe0a08083b36f924e4470
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-08-04 09:53:53 -04:00
Marco Stornelli
cd97ba6ced Bug 549653 - Fix wrapping for lambda expression
Change-Id: I5b879edbcda9c5c1fb0087891391612af2c47d09
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-07-30 13:53:07 +02:00