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

26339 commits

Author SHA1 Message Date
Marco Stornelli
42daf203a6 Bug 552076 - Fix false positive virtual method with qualified name
Change-Id: Iaf82368fce793f9c23d6e8a13d88bf57282f9ae9
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-10-17 17:54:34 +02:00
Jonah Graham
7a2ff27b91 [releng] Update comparator repo to last release
Change-Id: I00901808f1eda041f070b2f3e1cda076987c69a5
2019-10-17 10:07:44 -04:00
Torbjörn Svensson
e6de0c9385 Bug 551817 - Add about.html to src.includes for plugins
Change-Id: Id6e1a3c4aa94bf242efd62a28f5ca9de7d64f699
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2019-10-17 10:07:18 -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
Marco Stornelli
f8316e315b Bug 545977 - Added checker for variable initialization
Checker checks for multiple declarations on one line and
static variables defined in header files.

Change-Id: Ibc9670ee129e9bdd3ea58ac5409493fd99c4a234
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-10-13 08:29:11 +02:00
Marco Stornelli
6504d1a917 Bug 546173 - Add a check for returning of local variable addresses
Change-Id: Ief17af55c20b6e075381fa22a9208b7dfa67ec0b
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-10-12 09:11:24 +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
4477ea013a Use generified databindings API.
Change-Id: I247759650ce37cc01f585b3675f848d8b209abbc
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2019-10-11 00:59:19 +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
8fff462f95 Use non-deprecated command constants.
Change-Id: I637c9167149ec9137c0ae5db69528b842424984c
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2019-10-11 00:28:09 +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
3317465cdf Do not use deprecated Boolean constructor.
Change-Id: If317ec13ca9ae0cc9ec6d4555afd0b26a402e376
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2019-10-11 00:23:13 +03:00
Alexander Kurtakov
9daf3d00e2 Remove unnecessary semicolons.
Change-Id: I4ed8830940600065d077857fd813bd38e6a5da86
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2019-10-11 00:22:24 +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
46be0de323 Generify ListenerList.
Change-Id: Iee6fcbe412f8d90004d4ecafe6fa3e7513900971
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2019-10-10 22:55:40 +03:00
Alexander Kurtakov
5690cf3738 Move to non deprecated templates classes.
Change-Id: I54561f5ad5b7cd7726c0e5e1863a0603f46d7dd8
2019-10-10 22:52:34 +03:00
Alexander Kurtakov
d9cf1e1e2b Generify ArrayList.
Change-Id: Icb3dfc7fb8519a4d25f08c3dabce4a8b073dd880
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2019-10-10 22:33:11 +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
John Dallaway
b7e1fb466d [releng] Update baseline to released 9.9.0
Change-Id: I9c21443edca8156851d91b05f8da33946a408ed2
2019-10-07 17:13:19 -04: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
Jeff Johnston
232e3d7153 Bug 551089 - Builds with libraries having spaces in the name fail
- add new checkIfQuotedOption() method to GnuMakefileGenerator
- have ensurePathIsGNUMakeTargetRuleCompatibleSyntax() look to
  see if the path is actually an option with path in which case
  if it is quoted, do not try to escape white space

Change-Id: I67a286962ba67acb75d1f8c29cac47069ab07353
2019-10-03 15:19:19 -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
Jonah Graham
cf7e1f87c9 [releng] Update to stable repository for help docs eclipse run location
Change-Id: Iecd4a82fca35904741c78e43e20032a6f4d639b0
2019-09-23 11:00:57 -04:00
Marco Stornelli
a159173a51 Bug 545954 - Added checker for functions/methods blacklist
Change-Id: I69d32f166e09ec38e4bf3dd9eaca2643c2e2d01e
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-09-23 01:10:46 -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
Marco Stornelli
39be625d8e Bug 549466 - Quick fix with the same resolution
We have the "universal resolution" in an ArrayList and they are used as
single instances. So what can happen here is that we add the same
universal resolution instance multiple times for several markers.
However this approach can't work because a "marker resolution" is
designed to fix a single problem. Indeed the last marker analyzed
override the previous one in the single "universal resolution" instance,
so what we have is N proposals pointing to the same resolution where the
problem description is just the latest one. To solve the problem we
instantiate the universal resolution multiple times.

Change-Id: I072ca0b4dabff9781d6230a218eeb7dd388c648d
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-09-22 07:14:09 -04:00
Jonah Graham
494d6d38c1 [releng] Update to 2019-12 repositories
Note that many 2019-12 repos are not available yet or for other reasons
we aren't updating our dependencies yet, for these repos we are pointing
at the release versions of 2019-09 instead.

Change-Id: I824444d8a53cb95c5706e3ae4e26d6b2f45c5bc7
2019-09-19 11:53:47 -04:00
John Dallaway
7e4f3a84db Bug 550963: Provide 'reset and halt' commands
Change-Id: I4008d11f8a5f80bc70976ef7e4ddfcabbac13514
Signed-off-by: John Dallaway <john@dallaway.org.uk>
2019-09-11 11:49:16 +01: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
Jonah Graham
7991f03954 [releng] Update to 2019-09 RC2 dependencies
Change-Id: I8c0c650afee8902e59547e7704d6844b483aa495
2019-09-09 15:53:46 -04:00
Jonah Graham
a29e38f46d [releng] Bump version number of docs plug-ins
These docs plug-ins were having baselinereplace-p2-metadata. This is due
to still having problems with the compare&replace logic. The root pom.xml
lits <pattern>index/*</pattern> to exclude from compare, which means if
the only thing that changes is the generate files, and not the source
files, then the jar is a candidate for replace. In commit 3bab315fd2,
the version of help-docs-eclipserun-repo was changed, which means that
the generated output changes too.

Change-Id: I7f73159776d209aadaa70587988652e125b60851
2019-09-09 15:53:46 -04:00
Torbjörn SVENSSON
63e37acaac Bug 550702: Fixed memory leak in SerialPort.open0()
Change-Id: I2bb1cd8c19addda7955886b8cb582d0effe64f4e
Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@st.com>
2019-09-05 15:03:25 +02:00
Torbjörn SVENSSON
764e42ef50 Bug 482946: Implement InputStream.available()
Change-Id: Iac15816fd4d68206184549c7b47670f9d3137527
Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@st.com>
2019-09-05 15:02:05 +02:00
Torbjörn SVENSSON
1c4271836b Bug 550697: Also set DCB.Parity=NOPARITY on Windows
Some serial port drivers on Windows, notably usbser.sys, does not
care about DCB.fParity and only relies on DCB.Parity to contain
the correct value. In the case where we need to configure it for
no parity, the DCB.Parity field needs to be explicitly set to
NOPARITY.

The above statment has been checked using Wireshark and look at the
SET LINE CODING Request package (it contained ODDPARITY although
DCB.fParity=FALSE). The statement was also somewhat confirmed by
this post: https://stackoverflow.com/questions/36411498.

Change-Id: I2e2ab3da5da547e0420e3e61f91452ef0edeb755
Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@st.com>
2019-09-03 17:41:53 +02:00
Jonah Graham
2109a6d283 [releng] TM4E changed their feature name
See e4bd591036

Change-Id: Ib99afe00eed7a955320915bab9013e47eb7a4591
2019-09-03 10:44:24 -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
Jonah Graham
fc46dc3304 [releng] Update to 2019-09 RC1 dependencies
Change-Id: If99ea6310f5732f16f639a6ef5a7493a25ae4963
2019-09-02 11:51:26 -04:00
Nathan Ridge
15dbbb8304 Bug 550397 - Fix a logic error in instantiateConversionTemplates()
Change-Id: If4cb26e3b392e65ffbcb53514db67c1065aa9c79
2019-08-31 21:24:35 -04:00
Jonah Graham
77f853e077 [releng] Update to 2019-09 M3 dependencies
Change-Id: Iffd85899e7a571b864404c6249011005034aac2e
2019-08-26 17:59:43 -04:00
John Dallaway
4ebb82d8b2 Bug 535163: Use 'reset and halt' command (DAP)
Change-Id: Id5ec90a062a203933a2756d0a2f71ce36d00daf8
Signed-off-by: John Dallaway <john@dallaway.org.uk>
2019-08-23 19:45:13 +01:00