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

26245 commits

Author SHA1 Message Date
Marco Stornelli
1c147d87ce Bug 545699 - Added quickfix for C style cast
Change-Id: Icc1152c013363c5c1b8c2606e3ad0ceb2aa18aa5
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-05-30 01:09:45 -04:00
Marco Stornelli
353315f84a Bug 303870 - Fix for base template classes
Methods weren't added if the virtual methods were in a base
template class.

Change-Id: I34b05eeb1e7dc5ce83944a642461eca521764967
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-05-30 01:07:38 -04:00
Marc-Andre Laperle
188d84eea5 releng: Add missing javax.activation in update site
When installing CDT offline, I noticed javax.activation was missing and
needed to be pulled from Orbit. Normally Orbit dependencies should be included
in the update sites that use them.

Change-Id: I833debebadb60ac0ade9123f8e989d31f0861448
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2019-05-29 20:07:22 -04:00
Marco Stornelli
3890eec7b7 Bug 355174 - Added quickfix for miss cases/default
Change-Id: I4c815bd55e55d81456efa796453dd2f69a7c876a
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-05-28 19:48:59 +02:00
Marco Stornelli
a009b41021 Bug 268404 - Added options for label formatting
Change-Id: I192ede1c17d2b1929dcb6fb33158eb7628707598
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-05-28 01:11:55 -04:00
Hannes Vogt
dc62eb218d Bug 547534 - Resolve TDEF in getFieldPosition()
and propagate a ProblemType in EvalCompositeAccess.

Change-Id: I20c580c681ea5916d2e1c249b96f41c9dc95082f
Signed-off-by: Hannes Vogt <hannes@havogt.de>
2019-05-27 20:56:02 +02:00
Nathan Ridge
9e4c36a7ab Bug 547533 - Avoid ClassCastException in EvalTypeId.getValue()
Change-Id: I614b67a7b53b7075b702911a33ba8440a187614e
2019-05-26 19:29:57 -04:00
Marco Stornelli
1204bf21b1 Bug 545956 - Added checker for virtual methods in ctor/dtor
Change-Id: I63b8a40447e9a5b6080e046030677a13607c4ea3
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-05-26 20:26:16 +02:00
Marco Stornelli
1065ee7688 Bug 355174 - Added cheker for missing case in a switch
Change-Id: I1ba1193186e275bed450eb7447eefd90dc09ebec
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-05-26 13:54:27 -04:00
Marco Stornelli
0c147ecb93 Bug 547450 - Options default/delete/inline/definition
It's now possible to select among four options for the
implementation of single method stub: delete, default, inline
or definition.

Change-Id: I9aac9c53a5a7143235d0f2f447b8d22fa2e2c839
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-05-24 14:39:49 -04:00
Jonah Graham
4332b0fbc7 [releng] Update target to platform and orbit M3 drops
Change-Id: Id3346c433eee349899537548f5500d7521b09245
2019-05-24 13:09:23 -04:00
Clément Hurlin
a201acf7c1 Use IToolChain instead of ToolChain in constructor of Configuration.
The constructor's body and the rest of the class was already using
IToolChain.

Change-Id: I905e15dcedb6c3280c271bf3c47ef6f1e898d3b9
Signed-off-by: Clément Hurlin <clement.hurlin@provenrun.com>
2019-05-24 10:31:10 +02:00
Jeff Johnston
292829c817 Bug 547442 - Launchbar shouldn't set newly added Container target active
- change ContainerTargetTypeProvider.changeEvent() to use
  the new ILaunchTargetManager2 interface to use
  addLaunchTargetNoNotify to add image targets from a new or
  enabled Docker connection so as to prevent scanner info jobs

Change-Id: I2aef96c86c926790702a59853f0baf103c7115fc
2019-05-22 20:51:11 -04:00
Jonah Graham
47ea958d5d [releng] update launchbar in target platform to 2.3.0 prerelease
Change-Id: Iea774028adb4f029030ff1bce39032db8c03e43c
2019-05-22 20:10:16 -04:00
Jonah Graham
e68a4048bf [releng] update to latest platform I build
Change-Id: I3f3ddd3c4b6e9a59bf37c0044c624f9f6d72b4f6
2019-05-22 14:14:19 -04:00
Jonah Graham
f98add0056 Fixes for Test Leaking Editor test
The testLeakingInstanceAfterClose test relied on some weird
behaviour of an earlier test (testScalabilityDialogNotDismissedInadvertently_417909)
which had the effect of opening the editor window without the
welcome screen. This change makes that explicit and adds a little
bit of logging to identify why the testLeakingInstanceAfterClose
test may sometimes fail.

I have also increased the maximum time allowed before the test timesout.

Change-Id: I3433ccf1fc02cff76eeb278d05fee082157ca49c
2019-05-22 14:14:15 -04:00
Jonah Graham
83d67dd074 [releng] remove now unused target file
This was created for an experiment that has so far not worked other
than to cause confusion. As CDT is now building against the platform's
I-builds it is also unnecessary.

Change-Id: I6dfa720682a8f8404158acbe08d02c47f459ebd3
2019-05-22 10:41:15 -04:00
Nathan Ridge
8e1059c5b8 Bug 547224 - Avoid concurrent access to AST type string caches
The caches used to be thread-local, but that did not survive the
refactoring in bug 512297. This patch makes them thread-local again.

Change-Id: Iffe37aef292e4efb05e30af2a251a71fb57b343d
2019-05-21 13:00:15 -04:00
Davin McCall
2734b7ae82 Bug 545040 - make array size inference work with initializer lists
Resolution for DR1591 clarified that initializer list size could be used
to deduce array size (if it is a template parameter).

Change-Id: Ic3617e31b125083f1205f91383eb27f5e5a29041
Signed-off-by: Davin McCall <davmac@davmac.org>
2019-05-21 12:59:00 -04:00
Hannes Vogt
1cd0e1df35 Bug 546805 - Infinite recursion in self-aggregation
Protects for infinite recursion in case the type (illegally) aggregates itself.

Change-Id: I2e70f85a73b3d2ed6fec432fa2f768f2bcf8d1bf
Signed-off-by: Hannes Vogt <hannes@havogt.de>
2019-05-20 20:49:26 +02:00
Hannes Vogt
f938b4d08e Bug 545021 - Implement noexcept operator
- Adds getNoexceptSpecifier() to ICPPFunctionType, returning the
evaluation for the noexcept specifier.
- Adds isNoexcept() to ICPPEvaluation, which returns the result of
applying the noexcept operator to the evaluation.
- Empty throw() specifier is treated as noexcept(true).
- Improves EvalTypeID.isConstantExpression() for conversions.

Change-Id: I4c6418aea21bb258693b33d956bc3745918f3759
Signed-off-by: Hannes Vogt <hannes@havogt.de>
2019-05-20 02:47:27 -04:00
Marco Stornelli
0552fcbf97 Bug 500000 - Fix API warnings
Change-Id: Ia99ccbffc3cbe361e7ce2bca05b604ece8255e8b
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-05-18 07:23:10 -04:00
Marco Stornelli
a1be8d5681 Bug 547179 - Fix reset suppression comment on multi selection
Change-Id: I501a5f3ad5064ca8a8f7588c264fffffb256c4a8
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-05-18 11:23:33 +02:00
Marco Stornelli
1cd5180642 Bug 353022 - Fix format switch without parenthesis
Change-Id: I8d8a6498abe5c08c65c03f86b563563910f01098
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-05-18 02:15:26 -04:00
Marco Stornelli
6452688c18 Bug 468742 - Fix false positive no-virtual destructor
Change-Id: Id8d2efaf3f7a5ca74d160e4a726c08a71c6d7067
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-05-18 02:13:30 -04:00
Marco Stornelli
ec6f9d204d Bug 320786 - Fix false negative assignment in condition
Fix bug with expression list

Change-Id: I25b226ec7fd1edcfc40fe2ebcadbd3bdb2a6a5dd
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-05-18 02:10:33 -04:00
Jeff Johnston
b5af112f86 Bug 547104 - Adding new Docker Connection causes two build dirs
- change createBuildConfiguration() method in providers:
  MesonBuildConfigurationProvider, CMakeBuildConfigurationProvider,
  AutotoolsBuildConfigurationProvider,MakefileBuildConfigurationProvider
  to not create a .x config name and instead use the found
  IBuildConfiguration so the new CBuildConfiguration will be
  overridden in the CBuildConfigurationManager

Change-Id: Ia5f460e879f3412f19a9dec7b88dd392714b54ca
2019-05-16 21:58:27 -04:00
Jeff Johnston
74e63a9013 Bug 547174 - Clean core project doesn't always show active in console
- add missing ProjectDescription.setBuildConfigs calls to
  CoreBuildLaunchBarTracker, CoreBuildLaunchConfigDelegate
  and CBuildConfiguration

Change-Id: I0d1097d04f3a210a6a7e9f8ad35adb9ba5d7c3d6
2019-05-16 16:46:02 -04:00
Marco Stornelli
dffd0d1513 Bug 500000 - Fix API warning
Change-Id: I520dccda37fd7bf675abbf3230de1d8a01307588
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-05-16 15:22:31 -04:00
Jeff Johnston
4028d882fe Bug 547398 - Fix ConcurrentModificationException in ToolChainManager
- fix references of orderedToolChains list in for loops to use
  array copy

Change-Id: Id6ad9ae5e680ed581a2b3ceddf2bfc19b68dcccd
2019-05-16 15:19:42 -04:00
Marco Stornelli
bdb0da6b73 Bug 120883 - Compliant "rule of 5" class wizard
Added the optional generation of copy constructor, move
constructor, assignment operator and move assignment operator.

Change-Id: I1fc0a04fd52ea828ca24d0fe57148b06dd27ed95
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-05-16 13:42:24 -04:00
Marco Stornelli
f90cd7214d Bug 545702 - Added new checker to verify copyright information
Change-Id: I57cad8565ce3c752a41f89473a95d5427d10cc8b
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-05-16 00:52:48 -04:00
Jeff Johnston
86bfd4de7e Bug 547174 - Clean core project doesn't always show active in console
- order build config names so when clean for a project goes through
  the build configs, it finds the active one last and thus it will
  appear in the CDT build console
- do this in CoreBuildLaunchbarTracker.setActiveBuildConfig()
- do this in CBuildConfiguration.setActive()
- do this in CoreBuildLaunchConfigDelegate.buildForLaunch()

Change-Id: I379d6c9ba298f02cbc75d16e9941527cd2f9f45c
2019-05-15 20:41:14 -04:00
Jeff Johnston
949dd8a45f Bug 547144 - Switching from Local to docker container and back fails
- fix CBuildConfigurationManager createBuildConfiguration to always
  ensure "" is added to the build configuration names so future references
  to Local will find the default build configuration in the
  ProjectDescription

Change-Id: If15dde12befe060b4eb7c0ba2a2aeabbc1089ffa
2019-05-15 17:51:07 -04:00
Jeff Johnston
a62215e851 Bug 547145 - Core build use of ProjectDescription should be synchronized
- also change ContainerLaunchConfigurationDelegate

Change-Id: I5574d67ae030e728605c12f7bc05bcbb8e23e83d
2019-05-15 17:16:43 -04:00
Jeff Johnston
19e4eabff2 Bug 547145 - Core build use of ProjectDescription should be synchronized
- synchronized core build project description
  manipulations using CoreModel as synchronization
  class

Change-Id: Ic1312d5819ddc08acb492f57a2d87f1998329805
2019-05-15 16:05:29 -04:00
Marco Stornelli
38a084ce6d Bug 500000 - Added proper formatting for lambda expressions
Change-Id: Ia530b00f3710b74d1749978c9c5d23a2d55646f0
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-05-15 13:49:05 -04:00
Jeff Johnston
8b2c6229aa Bug 547104 - Adding new Docker Connection causes two build dirs
- copy ChangeEvent logic from ContainerGCCToolChainProvider to
  ContainerTargetTypeProvider when a new connection is added

Change-Id: Idbdaba7d10e4590722ff442447d195a3a2485907
2019-05-13 19:23:03 -04:00
Clément Hurlin
f89d6e51bc Fix API rules errors caused by updating target platform to
Eclipse-2019-06

Change-Id: I7270399ae6dc55d13ffd5986f41c5f6fe03781f1
Signed-off-by: Clément Hurlin <clement.hurlin@provenrun.com>
2019-05-13 16:23:37 +02:00
Alexander Kurtakov
78c1b58cd6 Use jacoco 0.8.4.
Change-Id: Ie6c4eef1db6e805a8b0960dac4f74961f6b70f85
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2019-05-13 10:25:44 +03:00
Marco Stornelli
f893b77dba Bug 461435 - Added options to format pointers in methods
Rules used:
1) Default is right alignment to be compliant with built-in formatter
rules;
2) Pointer with declarator without name will be always left alignment
unless there's a nested declarator;
3) Return value of methods/functions is always left alignment;
4) If left alignment is selected, if space after comma is selected too
for a declaration list, space is always forced after the comma.

Change-Id: I82d5ad130e665e5357644cc59655a558f3fb732f
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-05-12 15:42:21 +02:00
Marco Stornelli
826a0b2c0e Bug 405409 - Formatting namespaces with inactive sections
Local scanner was peeking tokens from inactive regions confusing
the formatter.

Change-Id: I5975ec1042474be84b897e047a1e59cfc8bfa083
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-05-12 14:54:29 +02:00
Marco Stornelli
695de049db Bug 458850 - Fix false positive for deferred classes
Change-Id: I46335a94d69ae8d4e5ae1c68857344d1dc513328
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-05-12 09:59:22 +02:00
Marco Stornelli
125721a485 [releng] Updated target definition with 2019-06 pre-release dependencies
Change-Id: Ie0be30fabf4ffe2a6cf7a178dcc89dceb9cbd6c0
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-05-11 21:30:15 -04:00
Jonah Graham
7f7ff20e6b Bug 547186: Remove use of depracated Platform API
Change-Id: I5253633692a8619dabff28c542fda12c1d2fe9a9
2019-05-11 21:30:15 -04:00
Marco Stornelli
62617729fa Bug 239878 - Added new line before identifier to the UI
The option was already used but there wasn't any widget in the UI
to let user change it.

Change-Id: Ib8795468cc83b89bb3ef9676a5e0ed3f288d55da
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-05-08 20:27:22 +02:00
Marco Stornelli
5b869afec3 Bug 390324 - Fix cast operator containing func declarator
Change-Id: I935fe1daabd18372062916e5a896896f5cab604f
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-05-08 19:30:49 +02:00
Marco Stornelli
db0cc1f9a4 Bug 468749 - Fix false negative no virtual destructor
The checkers simply skipped nested classes.

Change-Id: If464b229e586267d845768f9d96d3223328a8298
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-05-08 02:23:47 -04:00
Marco Stornelli
bf0b7a76ed Bug 546221 - Fix exception for nested namespaces
Change-Id: I6de8844a910350a0e834a8f38e1c17d4eba32842
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-05-08 01:20:23 -04:00
Marco Stornelli
838a12d8f4 Bug 545952 - Added checker to check for goto usage
Change-Id: I5f7f157c5c208e686627bb90b001879953d83e70
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-05-08 00:50:59 -04:00