1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00
Commit graph

26153 commits

Author SHA1 Message Date
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
Marco Stornelli
ef2468b390 Bug 546391 - Fix on/off tags
Change-Id: If23ac8f7777c5088b892a31a543741c244dd1a4a
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-04-13 14:28:30 -04:00
Alexander Kurtakov
50daf5b6e8 Build with Tycho 1.4.0.
Change-Id: I56bf64b43eac2b11c1b08cf7c92e28446bbae3f0
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2019-04-11 02:43:05 -04:00
Jeff Johnston
19e551da58 Bug 546288 - Docker images for CDT Launchbar builds cannot have a slash
- fix CMakeBuildConfigurationProvider.createBuildConfiguration() to
  massage any image name and replace all slashes with underscores
- do the same for MakefileBuildConfigurationProvider and
  MesonBuildConfigurationProvider

Change-Id: Ib09ade66059533f089084e50cba95d54e9d40547
2019-04-10 15:49:08 -04:00
Marco Stornelli
ce60ebbbf6 Bug 397710 - Fix bool macro used in struct/class
Change-Id: Ifc900b4b5f522ce778c49072eb9ceac7be9234ed
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-04-10 10:36:29 -04:00
Dorothea Pilz-Roeder
3dc407d008 Bug 180451 - [Build] Build output directory should be selectable for
managed build

Allow clients extend GnuMakefileGenerator and allow them to provide a
different top build output directory.

Change-Id: I37dd96089f6f4bed6f4255def4bef193fb27e7e4
Signed-off-by: Dorothea Pilz-Roeder <dorothea.pilz-roeder@advantest.com>
2019-04-10 10:57:14 +02:00
Marco Stornelli
290cb246b6 Bug 449394 - Fix constructor init list formatting
Init list was always on new lines regardless user input about new line
policy or wrapping policy.

Change-Id: I1ac85611129c23e89d9b299ca87ced314ad542f3
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-04-09 16:21:20 -04:00
Tomasz Rojek
5131b86d9a Bug 468206 - unable to change search match background color
Search background color will be now taken from:
Preferences > General > Appearance > Color and Fonts > Match highlight
background color
so it will look good on both default and dark theme.

Change-Id: I2800b6cd3ac651cda577cc533149f0ead0fa75f3
Signed-off-by: Tomasz Rojek <me@tomrosystems.com>
2019-04-08 15:53:18 -04:00
Marco Stornelli
e93ea0ab70 Bug 468206 - Fix color for search matching
We used color keys not saved in the preferences and without any UI
widget. The user wasn't able to change them.

Change-Id: I48bc4e411d2bc016501613b7dbfb0e7f95532099
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-04-08 13:49:15 -04:00
Marco Stornelli
e753c628ed Bug 414681 - Added new line empty statement to UI
Formatter has an option for it but the user can't change it
without an option in the UI.

Change-Id: Ibe3f36bd55b24ef06c13300792e425592285c8ea
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-04-08 12:58:53 -04:00
Marco Stornelli
d1bd979a00 Bug 361768 - Fix formatting of multiple empty macros
Change-Id: I9ba68533ce65de3309eb8d2186b2488985f457d2
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-04-08 12:52:36 -04:00
Marco Stornelli
280c0190d2 Bug 453385 - Fix for loop formatting
When "before semicolon" was selected the space was inserted only
if the init clause was a declaration. If it was an expression
the formatter was skipped.

Change-Id: I54605591b9a0829338dadb51e59460064b060697
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-04-08 12:51:41 -04:00
Marco Stornelli
77592ee87a Bug 546179 - Fix lack of warning for field references
With just a reference of the field even for another instance of the
same class the warning wasn't provided to the user.

Change-Id: Icb6ca008c2e61b8a762ecf31e4514cb0368c477d
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-04-07 10:26:15 +02:00
Marco Stornelli
70743bcc78 Bug 475349 - Formatting of macro with function style
Change-Id: I58f5670749812202464f17336b273b7d1495209f
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-04-05 17:28:11 -04:00
Marco Stornelli
eff560c583 Bug 299482 - New options to format linkage declarations
Change-Id: Ied06beae3fc28255e2c1b6ba8b23fd69591e3d39
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-04-05 10:46:32 -04:00
William Riley
174aaa05a3 [releng] Fix baseline repo location
Change-Id: I21a46592111e60ce4425d1cb80377ab3c2511fad
2019-04-04 16:08:23 -05:00
Marco Stornelli
670f056354 Bug 467346 - Fix formatting structs with attributes
Change-Id: Iff1be840ec6281bd0de1aaec593d53a033f6dec8
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-04-04 16:26:54 -04:00
Nathan Ridge
c39ddef02f Bug 545756 - Handle the case where CPPVisitor.get_SIZE_T() returns a typedef
Change-Id: Ib30c68c4d7de72d9a6cb2a90b9030aaad4932e6f
2019-04-03 23:24:38 -04:00
Jeff Johnston
5bd43cf304 Bug 545819 - Meson properties dialog doesn't work with meson 0.50.1
- fix meson properties page to use meson setup -h
- reenable meson ui tests
- fix CMake New Project test to wait for shell open/closes
- fix regression in EvalUnaryTypeID that is made visible by
  CMake New project test

Change-Id: Id64d4df6d9764d0c84553b5c4f73fa44149bda19
2019-04-03 10:20:28 -04:00
Hannes Vogt
d9550199f8 Bug 545756 - Aggregate: init char array from literal
Implement [dcl.init.string] in aggregate initialization

Change-Id: Ib6cf51cf08885dbfc281814c6521da3579301492
Signed-off-by: Hannes Vogt <hannes@havogt.de>
2019-04-02 08:08:41 +02:00
John Dallaway
f85e3146d3 Bug 545941: Match launch configuration type
Change-Id: I552ea86b65782f1781d84f2e1fe9b0b8e435e3bd
Signed-off-by: John Dallaway <john@dallaway.org.uk>
2019-04-01 01:48:49 -04:00
Hannes Vogt
c2779e8d3e Bug 545957 - Fix for brace elision rule
Change-Id: Ie470c1d9a986beb1b177e3d3d571071f6ed1b8f8
Signed-off-by: Hannes Vogt <hannes@havogt.de>
2019-03-30 19:10:09 -04:00
Nathan Ridge
fc45110844 Reduce template argument nesting depth limit
AST2TemplateTests.testTemplateArgumentNestingDepthLimit_512297() is
failing in the new CI infrastructure, presumably due to having less
stack space?

Change-Id: I05a67cc1492fed3ffe8840e32a1bc4ce7f6b75a7
2019-03-30 18:03:32 -04:00