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

13951 commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Nathan Ridge
d87b844e12 Bug 545360 - Completion in namespace alias
Change-Id: Ica4955409780f4d5000356ffe5d56dc0ce787ee7
2019-03-21 01:50:14 -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
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
5ac0c37e6b Bug 406231: Fix exceptions while formatting template id in macro
Fix a couple of exceptions in formatter flow during operations on
template id in macro.

Change-Id: I768c29e1bd24b1336423b298a22b4016eb96e9c3
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-03-04 08:09:25 -05:00
Marco Stornelli
04cc77cf2a Bug 278903 - Do not format any code in inactive regions
Not active regions of code may not be formatted.

Change-Id: I3796bd84bf4101cec55ef9f35f9703e8bc46092e
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-03-04 05:41:56 -05:00
Jonah Graham
cdc99feef2 [releng] Bump version to 9.8.0
Change-Id: I3861d4c5d0eecaf9dd370f269a655e666b60561a
2019-03-01 13:25:21 +00:00
Hannes Vogt
1370c76c38 Bug 544681 - Support for template<auto...>
Change-Id: I059d69ee86603c1aed95eeed1be61b915df6e3ed
Signed-off-by: Hannes Vogt <hannes@havogt.de>
2019-03-01 01:46:08 -05:00
Nathan Ridge
4a35647d1f Bug 544509 - Evaluation of negative integer cast to unsigned
Change-Id: I683045870eca5f1b013afddbc0938df2aef779c2
2019-02-28 20:45:43 -05:00
Hannes Vogt
d42c60b651 Bug 543038 - Addition to brace elision for aggregate init
- getNestedType for typedefs
- check aggregate initialization in EvalTypeID

Change-Id: I04ab2088c85373007312f7a419eb508ab53f69c8
Signed-off-by: Hannes Vogt <hannes@havogt.de>
2019-02-25 17:25:04 -05:00
Toni Suter
182de94259 Bug 544470. Fix code formatting of switch with controller declaration
Change-Id: I0d18b5767503e6bb3d137c9950b023f5c5084bd8
Signed-off-by: Toni Suter <tsuter@hsr.ch>
2019-02-22 10:01:29 -05:00
Felix Morgner
2272a74f38 Bug 520117: [C++14] Return type deduction deduces wrong type for
parenthesized expressions in return

This patchset fixes 520117 and adjusts the value category of expressions
of kind E1.E2 to be standard (DR616) compliant.

Change-Id: I9a5cde805f2d0b39a2d263dbc3dcbefd3ba21930
Signed-off-by: Felix Morgner <fmorgner@hsr.ch>
2019-02-22 03:29:05 -05:00
Hannes Vogt
0757b45da5 Bug 543038 - Implement brace elision for aggregate initialization
Change-Id: I72e92c8c196bf201c8edfde64598a7318d2fdfeb
Signed-off-by: Hannes Vogt <hannes@havogt.de>
2019-02-19 18:38:05 -05:00
Marco Stornelli
a6d06902b1 Bug 496249: Tags for disabling/enabling CDT code formatter
Change-Id: I4389c61612da6a4ee0011a49d6aeed7b52152436
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-02-19 20:49:58 +00:00
Marco Stornelli
8fe6bbb70e Bug 544516: Format edited lines as save action
Change-Id: I988eb34c433aa121ce2afb1da51984ab4fb24b09
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-02-17 19:08:29 +00:00