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

26225 commits

Author SHA1 Message Date
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
Dorothea Pilz-Roeder
8b88c9bffe Bug 180451 - fix generateMakefiles() on incremental build
- generateMakefiles() requires similar patch for the top build
directory like regenerateMakefiles().
 - need to extend the check in isGeneratedResource for config
directories located in subdirectory of the project root.

Change-Id: Id1809e216aee54524bc6cb072f8883ea5a202b61
Signed-off-by: Dorothea Pilz-Roeder <dorothea.pilz-roeder@advantest.com>
2019-05-07 14:09:27 -04:00
Jeff Johnston
db891f98dd Bug 547026 - fix ConcurrentModificationException
- in ContainerGCCToolChainProvider change collection of
  toolchains to be an array before accessing to prevent
  ConcurrentModificationException

Change-Id: Ia39ddee181ba814997a34d5b1d68170fe1cda5ce
2019-05-06 20:12:34 -04:00
Marco Stornelli
0b113d199c Bug 546979 - Fix exception in arduino port management
Change-Id: I6958581f5314898193f9fa670a106a594baa13a7
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-05-06 12:08:10 -04:00
Hannes Vogt
665f47395e Bug 546843 - Initialization from dependent argument
Create deferred functions for constructor calls with dependent
arguments.

Change-Id: I007dd4fd12c13acdcb39225b73051589f6dafad3
Signed-off-by: Hannes Vogt <hannes@havogt.de>
2019-05-05 18:54:25 -04:00
Fabrizio Iannetti
2006e6cdf1 Bug 546409 - CMake configure failing in corner cases
- With Makefiles generator run configure step if no Makefile exists
- Clean build dir before running the configure step

Change-Id: I3514835920a452e724e04b19f64d4a74fc4f3c2c
Signed-off-by: Fabrizio Iannetti <fabrizio.iannetti@gmail.com>
2019-05-02 23:06:32 +02:00
Jeff Johnston
cbf526193a Disable Meson UI tests
Change-Id: Id0036d80ac3f1ea652d63395593d4cbb8f3f5996
2019-04-30 21:32:03 -04:00
Hannes Vogt
53187c30c5 Bug 545756 - Fix aggregate init from string literal
Fix nested type for typedefs

Change-Id: Ie8ff31c9db9f3112487760640885066ea8cb0fd3
Signed-off-by: Hannes Vogt <hannes@havogt.de>
2019-04-29 21:56:53 +02:00
Marc-Andre Laperle
32ba5e791d Bug 546395 - Adjust keybinding for "copy qualified name" feature
Fix keybinding so that is doesn't conflict with "Last edit location"

Change-Id: I75ab9ad4a46e64808cbe4f71dfa95f75fc20780e
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2019-04-28 12:30:31 -04:00
Marco Stornelli
6be494466b Bug 303870 - Add override virtual methods functionality
Added overridemethods package

Change-Id: I73a8f0a396336acf7d3bbc8988e629da510ae781
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
Signed-off-by: pmarek <pavel.akira.marek@gmail.com>
2019-04-28 08:12:04 +02:00
Jeff Johnston
5edac6e20c Bug 546395 - Added "copy qualified name" feature
- fix isValidSelection() to not bog down performance

Change-Id: I8d3b595c988f09c731d76b8174f5175b31115460
2019-04-26 13:45:44 -04:00
Marco Stornelli
225ee8550a Bug 501609 - Fix colors for disassembly view
All colors were hard-coded and it was nearly impossible to use the
view with a dark theme. Added colors to the preferences and changed
the main view background according to the theme.

Change-Id: Ic35df1e272e8b2a90f11c1af3cb3b105cd535fe5
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-04-26 13:15:56 -04:00
Marco Stornelli
fc25433621 Bug 546395 - Added "copy qualified name" feature
Change-Id: I66b544cf7d9b05fcf1e9d5641cfd5d6060fa802c
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-04-24 22:32:28 -04:00
Jeff Johnston
98ab473c5f Bug 546518 - Container gcc toolchain should just depend on path
- change ContainerGCCToolChain.getCommandPath() to just return
  the command
- change default command to be gcc instead of /usr/bin/gcc

Change-Id: I62869d974e7fc9707ee02dc6f5e2ab4500ddd0bc
2019-04-23 16:20:27 -04:00
Hannes Vogt
bf9575d365 Bug 546619 - NPE in CPPClosureType.isSameType()
Change-Id: I0a529f439c1422b89a9c5fca855c2c75818f9927
Signed-off-by: Hannes Vogt <hannes@havogt.de>
2019-04-21 23:30:14 -04:00
Marco Stornelli
3fcbb5c7b5 Bug 492878 - Fix no-return in function with goto
Change-Id: I39f2605aa2e5b697015a2dfdb795f163e76095cf
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-04-21 13:46:24 -04:00
Hannes Vogt
11a14b7ed3 Bug 545756 - Improve EvalBinding.isConstantExpression()
Previously, all variables with an initial value (even non-const)
were treated as constant expressions, now only constexpr variables,
static const members and global const variables are treated as constant expression.

Change-Id: I2acb4033a1f75110302ea25640afb070d025ec2b
Signed-off-by: Hannes Vogt <hannes@havogt.de>
2019-04-19 17:39:30 -04:00
Felix Morgner
480af1ddb1 Bug 544818: Unparenthesized conditional expressions in trailing return
type causes parse error

Change-Id: I55131a2f1b6c6eec674f4f298b320d31a78d2829
Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=544818
Signed-off-by: Felix Morgner <fmorgner@hsr.ch>
2019-04-16 14:34:24 +02:00
Jeff Johnston
e153fa920d Bug 546390 - Add Container build support to new Core Autotools
- add support for Container builds to AutotoolsBuildConfiguration,
  AutotoolsBuildConfigurationProvider
- fix core Autotools templates to set up the default source and
  binary to be the same as the project name

Change-Id: Ib262c1f6ddd65b136be2d2d3d25601226ddd289f
2019-04-15 16:17:53 -04:00
Doug Schaefer
a7bb1da5e3 Bug 545699 - Add test to suite.
Change-Id: Id8542251403e6e2cc3931500b7f15a036b17a239
2019-04-15 12:07:08 -04:00
Marco Stornelli
60a4cccbe3 Bug 545699 - Added checker for C-style casts in C++
Change-Id: I38076599b354608a4b806f7b1d2ca1f6acc50a44
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-04-15 10:28:39 -04:00