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

26132 commits

Author SHA1 Message Date
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
Hannes Vogt
3a95ee0655 Bug 545756 - Fix initialization of constant expressions
- propagate associatedNumericalValue in sizeof()
- set associatedNumericalValue from LiteralExpression

Change-Id: Ibf1fdb70e7bbbb889113f337a0b12532c5040300
Signed-off-by: Hannes Vogt <hannes@havogt.de>
2019-03-30 17:10:48 -04:00
William Riley
92272c6465 Bug 545624 - Skip LaunchConfigurationAndRestartTest
Failing and causing all other GDB tests to fail

Change-Id: I14314b8569d0e117ee9b5db6af33f3b3708d82be
2019-03-27 05:08:14 -04:00
Nathan Ridge
2cdbc5ebb6 Bug 545751 - NPE in EvalTypeId.getValue()
Change-Id: Ia11dc1a8af6633ffe54ca927c68bf8dc837604a0
2019-03-26 02:07:31 -04:00
Marco Stornelli
f2635eed74 Bug 545562 - Fix return checker check for template functions
Change-Id: Ie5e3d4560cb3784f6c8393290d64794db56294d7
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-03-21 20:41:26 +01:00
Marco Stornelli
e70a63a424 Bug 519105 - Return checker for functions with noreturn
Added check in control flow graph to check if a function
has noreturn attribute.

Change-Id: Ieaa5984a337493e3aac12c0f6fbeeb91a754358b
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-03-21 19:02:27 +01:00
William Riley
8220215a2e Bug 545624 - Disable failing tests
Change-Id: I60d34ca269482b089d738f5b911378bc1bd57238
2019-03-21 11:46:47 -04:00
William Riley
47ae8d9cbf Bug 545624 - Disable Debug RCP deployment
Change-Id: I7ab18048e0a2d5282f8c063a4bb0524aa6f1f3bc
2019-03-21 11:45:50 -04:00
William Riley
1d7ed13b6b Bug 545624 - Disable nightly upload in "production"
Will be replaced by upload step in pipeline

Change-Id: I17ca9b105994e389366815023170456b5be7fda8
2019-03-21 06:26:36 -05:00
Nathan Ridge
d87b844e12 Bug 545360 - Completion in namespace alias
Change-Id: Ica4955409780f4d5000356ffe5d56dc0ce787ee7
2019-03-21 01:50:14 -04:00
Marc-Andre Laperle
084288dee9 Remove warning of illegally extending ImageRegistry
Delegate to an instance of ImageRegistry instead, which is legal.

Change-Id: Ife10b526c54483143a9ef5599c4571844a60604d
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2019-03-20 19:13:33 -04:00
Jonah Graham
c21d3f553e [releng] Update platform to non-milestone P2 URL
Change-Id: I4d910dcb0cff13b8217f8397fd31db7ca204e860
2019-03-20 13:29:04 -04:00
Hannes Vogt
3e674afd51 Bug 545192 - Convert directory path in docker for windows
Change-Id: I69c09d391e333495b57f09d7b7f5818a5428424f
Signed-off-by: Hannes Vogt <hannes@havogt.de>
2019-03-20 11:36:39 -04:00
Marc-Andre Laperle
d84e61890d Update API baseline to 9.7.0
Change-Id: I832b6ba5c3219f32d7e8a4d002e6e72a3bba4f2c
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2019-03-18 20:58:28 -04:00
Marc-Andre Laperle
040372be48 Build with Eclipse 2019-03 dependencies
CDT nows defaults to targetting Eclipse 4.11 along with dependencies in the
Eclipse 2019-03 simultaenous release.

Once consequence is that 32-bit and ppc64 fragments are removed.

Change-Id: I032fedb27a4e5086f10051b3b2ca9c9c59c3b965
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2019-03-18 20:44:27 -04:00
Jeff Johnston
65d40fbacf Bug 545463 - Docker Build occasionally shows unknown includes in editor
- add checks in CBuildConfiguration so that a scanner info that has
  no include paths stored should be treated as no scanner info and
  the data should be fetched again

Change-Id: I6820c56304aed568a58b6058145e912d71fa33c1
2019-03-15 19:33:03 -04:00
Kondal Kolipaka
02ecf97abe Bug 545335: Fixed serial port is not getting saved issue
Change-Id: I6e0c3392a5bacbac8c4741adab58a234f8efae54
Signed-off-by: Kondal Kolipaka <kondal.kolipaka@gmail.com>
2019-03-13 16:11:21 +05:30
Karsten Thoms
55c3c3e80a Fix typo in Javadoc
Change-Id: I0a310cc8f955674cfbccedfbc4e60c02e274b7c5
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2019-03-08 13:58:28 +01:00
Marco Stornelli
3113871624 Bug 543947: Fix exception while formatting macro
Change-Id: If3e1a4da919c4e7f78ca4506e97ea1f6f37f7c8c
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-03-06 19:08:17 +01:00
Marco Stornelli
f28b158828 Bug 540252: Fix formatting operator< with explicit instantiation
A space must be forced in this special case even if preferences
say something different.

Change-Id: Ie43b988139913f87590f4f1460d28e79f9bd7ef8
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-03-04 13:52:07 -05:00
Felix Morgner
659432f7e2 Bug 544535: Buttons in "Explore Macro Expansion" are not active
Refresh the toolbar buttons after registering the command handlers, to
make sure that they are active.

Change-Id: Ibee71a54fff7be0325257d25247e4e73f8b09b2e
Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=544535
Signed-off-by: Felix Morgner <fmorgner@hsr.ch>
2019-03-04 16:17:23 +00:00
Marco Stornelli
97e18b4b31 Bug 544980: Added a checker for using directive in header file
Change-Id: Ic77fd2f7504e7a6cc4e15a2fdeb507724db9e74f
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-03-04 09:36:50 -05:00