1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-13 03:55:22 +02:00
Commit graph

1675 commits

Author SHA1 Message Date
Marc-Andre Laperle
cf0271a5ed Let the Tycho build specify the indexer timeout during tests
Running maven with mvn clean install -Dindexer.timeout=123 doesn't
have any effect since tests to not inherit the VM args from Maven.
But we can pass those VM args manually in the pom.xml

Change-Id: I17b4aecdc422e3035e583b6d057c8487e7e41650
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2016-08-17 14:50:42 -04:00
Marc Khouzam
cd559dafaf Update version to 9.1.0
This commit used the script releng/scripts/ChangeFeaturesVersion.sh

Change-Id: I8274a6e8dd5c0f1e450f07952e138b265a441a62
2016-08-17 10:11:57 -04:00
Jonah Graham
08b8dca563 Bug 499553: Fix line comments used as a block on non-indented code
Change-Id: I059ba491e66722b286cfc9366cbfcd7efda535f6
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
2016-08-12 06:04:57 -04:00
Jonah Graham
b34d04c0d5 Bug 499471: Workaround indexer deadlock when tests running
See the bug for lots more details. Short summary is to prevent project
from being deleted when indexer is still running to prevent the
deadlock.


Change-Id: Ie2523fcbacb3f8a15b43f107bd264069270c4028
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
2016-08-12 05:13:35 -04:00
Sergey Prigogin
739281bec7 Remove Function Bodies and Remove Unused Declarations refactorings.
Change-Id: I99cfe7e561ab1615c7d4ee8c126e07acbc672196
2016-08-08 12:02:17 -07:00
Nathan Ridge
7a4d4fdb95 Revert "Bug 486682 - Syntax coloring of macro arguments that occur in reverse order in the AST"
This commit caused a regression in syntax coloring, as reported in bugs 490415 and 496696.

Change-Id: Ibfa7004b11677be56eb5a18d8236af2300de56cb
2016-07-06 23:04:05 -04:00
Marc Khouzam
f38cbb85c3 Remove old .cvsignore files
Change-Id: Ia66de47055a15d94c0aa45d1198f0a9e78d82ad0
2016-06-30 09:58:00 -04:00
Thomas Corbat
7c80ce009c Bug 428237 Added "Replace all" option to Extract Constant dialog
Change-Id: I65b9b8dd86bfe6431e9bb5ea4894b234ab26e004
Signed-off-by: Thomas Corbat <tcorbat@hsr.ch>
2016-06-29 08:38:08 +02:00
Thomas Corbat
f31d960271 Bug 488109 Refactoring of Extract Constant Implementation
Renewed extract constant implementation, including some improvements to
its functionality:
- Extraction of unary/binary expression trees with literals as leafs
- Improved name suggestion for integers
- Improved existing name detection
- Selection is more forgiving (caret in literal is accepted as
selection)

Patchset 2: Fixed trailing whitespace
Patchset 3: Improved progress implementation, removed unnecessary
generic
arguments and changed legacy implementation of IndentifierHelper
Patchset 4: Position of split call & line wrapping

Change-Id: I49ddb8355217e82d56728cd2abe253a63937f379
Signed-off-by: Thomas Corbat <tcorbat@hsr.ch>
2016-06-14 03:26:18 -04:00
Nathan Ridge
03f0a71a3a BUg 495095 - Disable a test that tests functionality that isn't implemented yet
Change-Id: I43af3f590269088dbd17da1abd7cdada837a7f0d
2016-06-09 19:50:51 -04:00
Nathan Ridge
bb8f775f99 Bug 495095 - Get the parameter guessing test suite to actually exercise the parameter guessing code
Change-Id: Ic0c2031f5d2f8854fcd304bbce8cba44222a0070
2016-06-09 19:50:21 -04:00
Nathan Ridge
95eee92c4c Bug 495095 - Fix incorrect tests
Change-Id: I90e211b9bbf55245bc15bc6239555267e8d88f92
2016-06-09 19:50:03 -04:00
Nathan Ridge
937113fe3a Bug 495095 - Fix a bug in the test suite where the test passes if there are no actual guesses
Change-Id: Ie8a4a2019a6f50e82b1e78f39bcbfa778951ebb6
2016-06-09 19:49:21 -04:00
Thomas Corbat
c3af58b543 Revert "Bug 488109 Refactoring of Extract Constant Implementation"
This reverts commit 3868ed045e.
2016-06-09 17:50:46 +02:00
Thomas Corbat
3868ed045e Bug 488109 Refactoring of Extract Constant Implementation
Renewed extract constant implementation, including some improvements to
its functionality:
- Extraction of unary/binary expression trees with literals as leafs
- Improved name suggestion for integers
- Improved existing name detection
- Selection is more forgiving (carret in literal is accepted as
selection)

Change-Id: I49ddb8355217e82d56728cd2abe253a63937f379
Signed-off-by: Thomas Corbat <tcorbat@hsr.ch>
2016-06-09 17:41:25 +02:00
Alex Blewitt
c73978c03a Bug 492210 - Remove ChangeLog files from project
ChangeLog is an archaic format for identifying what has changed in a
project. Fortunately more powerful version control systems are capable
of generating this information and displaying information such as this
paragraph in order to determine what has changed in a project and when.

Change-Id: Ia71a05fa51869c1adb193d94f71c28b3b36beb37
Signed-off-by: Alex Blewitt <alex.blewitt@gmail.com>
2016-04-25 22:53:31 +01:00
Alex Blewitt
12904409a3 Bug 492304 - Fix NLS warnings
Eclipse warns if a String literal does not have a `//$NON-NLS-<n>$`
entry at the end of the line. However, for historic or formatting
reasons, many such occurrences in the CDT source have an intermediate
whitespace, such as `// $NON-NLS-<n>$`

Fix these so that the whitespace is removed between the // and $
characters.

Change-Id: Idc12398fe6e9d619af1d0b1b73fb8b6180da223c
Signed-off-by: Alex Blewitt <alex.blewitt@gmail.com>
2016-04-25 22:53:30 +01:00
Alex Blewitt
6bdca5f4a2 Bug 492230 - Replace buffer.append(a+b) calls
When using a `StringBuilder` or `StringBuffer` to create a string message,
using implicit string concatenation inside an `.append()` call will
create a nested StringBuilder for the purposes of creating the arguments,
which will subsequently be converted to a String and then passed to
the outer StringBuilder.

Skip the creation of the intermediate object and String by simply
replacing such calls with `buffer.append(a).append(b)`.

Where values are compile time String constants, leave as is so
that the javac compiler can perform compile-time String concatenation.
Ensure that NEWLINE isn't appended in such a way since it is not
a compile time constant `System.getProperty("line.separator")`

Change-Id: I4126aefb2272f06b08332e004d7ea76b6f02cdba
Signed-off-by: Alex Blewitt <alex.blewitt@gmail.com>
2016-04-25 11:38:47 -05:00
Alex Blewitt
6b0a04c15e Bug 492200 - Replace StringBuffer with StringBuilder
There are many opportunities for replacing `StringBuffer` with
`StringBuilder` provided that the type isn't visible from the
public API and is used only in internal methods. Replace these
where appropriate.

Change-Id: I2634593603eef88dd68e127de9319377f43e7436
Signed-off-by: Alex Blewitt <alex.blewitt@gmail.com>
2016-04-21 17:51:12 -05:00
Nathan Ridge
50eca42cb1 Bug 491834 - Avoid certain kinds of infinte recursion in HeuristicResolver
This is done by tracking the set of lookups of names in primary template
scopes performed during a heuristic resolution, and short-circuiting a
resoluton if the same lookup is attempted twice.

Change-Id: I512cdc9493d1ac91b1f77603d816a33312d4be00
2016-04-20 23:09:48 -04:00
Alex Blewitt
2114f6b108 Bug 491984 - Replace .equals("") with .isEmpty()
In many cases a String's empty status is tested with `.equals("")`.
However, Java 1.6 added `.isEmpty()` which can be more efficient since
it compares the internal length parameter only for testing. Replace
code using the `.isEmpty()` variant instead.

Some tests for `"".equals(expr)` can be replaced with `expr.isEmpty()`
where it is already known that the `expr` is not null; however,
these have to be reviewed on a case-by-case basis.

Change-Id: I3c6af4d8b7638e757435914ac76cb3a67899a5fd
Signed-off-by: Alex Blewitt <alex.blewitt@gmail.com>
2016-04-19 13:35:54 -04:00
Alex Blewitt
470de4e66b Bug 491945 - Remove new String() from expressions
Replace all occurrences of `new String(expr)` with `expr` provided that the
`expr` is not a byte array or a char array.

Change-Id: Iecae801b83084908b60b9e146eba87550eac640d
Signed-off-by: Alex Blewitt <alex.blewitt@gmail.com>
2016-04-18 23:34:01 +01:00
Alex Blewitt
ca4e5b10ee Bug 491945 - Remove new String() literals
Occurrences of `new String("...")` have been replaced with a direct reference
to the literal it was wrapping.

Change-Id: Iefb49a009f210db59e5724e0a232dba2e13292b1
Signed-off-by: Alex Blewitt <alex.blewitt@gmail.com>
2016-04-18 23:30:05 +01:00
Alex Blewitt
809598db9d Bug 491945 - Remove new String()
Occurrences of `new String()` have been replaced with the equivalent `""` and
additional NON-NLS tags have been inserted in where appropriate.

Change-Id: I54cf71dcd0d5a92a675a71166d66949533de502b
Signed-off-by: Alex Blewitt <alex.blewitt@gmail.com>
2016-04-18 23:15:05 +01:00
Alex Blewitt
fc07efa909 Bug 491825 - Remove primitive wrapper creation
Using `new Integer` and other wrapper types such as `new Character` results in
potential extra heap utilisation as the values are not cached. The built-in
`Integer.valueOf` will perform caching on numbers in the range -128..127 (at
least) using a flyweight pattern. In addition, parsing `int` values can be done
with `Integer.parseInt` which avoids object construction.

Adjust tests such as `"true".equals(expr)` to `Boolean.parseBoolean(expr)`.

Change-Id: I0408a5c69afc4ca6ede71acaf6cc4abd67538006
Signed-off-by: Alex Blewitt <alex.blewitt@gmail.com>
2016-04-16 12:17:48 -04:00
Sergey Prigogin
6009665334 Bug 489468 - Extract Function creates illegal declaration in .h when
there is a using statement in the .cpp for an argument type

Change-Id: Ie54ce13b434bab21f96b0c6bb7347846d52314e0
2016-03-11 17:47:46 -05:00
Sergey Prigogin
3e27134c47 Cosmetics.
Change-Id: I379de81844c6beed828ec2d27cef110a10987d17
2016-03-02 14:34:20 -08:00
Sergey Prigogin
69562ae63e Bug 488605 - Organize Includes adds an include for a header included by
the partner header

Change-Id: I16ca2afc2ecbe1b47c9a71be5e0c170c9ac0d08d
2016-02-26 23:43:01 -05:00
Sergey Prigogin
3b27932b60 Normalized preferences. 2016-02-26 19:46:39 -08:00
Sergey Prigogin
6fb068d42e Bug 488604 - Organize Includes adds include for type hidden behind a
macro

Change-Id: Ibfe1499580b3b34ff9c3cff0fbbd8b3b3b9506fa
2016-02-26 16:32:56 -08:00
Sergey Prigogin
7c321bae13 Bug 488506 - Organize Includes adds include for function hidden behind a
macro

Change-Id: Ic737e34f71953f1e53a2c1cf2a21e340b7593c33
2016-02-25 19:54:01 -08:00
Sergey Prigogin
01b0b877e1 Bug 488349 - Organize Includes removes an include necessary for a method
call

Change-Id: I309046e32ea2be5f0b6ecc00643d03c131bfafb6
2016-02-24 20:49:27 -08:00
Nathan Ridge
4dfd64edff Bug 371839 - Highlighting of overloaded operator in macro expansion
Change-Id: Ifbf437b12f8f946c90b55bb4a0f99ce7cde9b261
2016-02-22 01:10:26 -05:00
Sergey Prigogin
f4cb39bc3b Bug 487972 - Unnecessary inclusion of <cstdbool>
Change-Id: I3f8b9cd157107f81a46e26c0966ce551772fb5ec
2016-02-17 18:48:20 -08:00
Sergey Prigogin
1a4e98b866 Bug 487971 - Organize Includes removes a necessary include
Change-Id: I74abb929cabcb78733215da552e3ada227aa26e8
2016-02-17 17:34:53 -08:00
Nathan Ridge
6398b59947 Bug 478121 - HeuristicResolver: add support for EvalID with non-dependent field owner type, and EvalMemberAccess
Also use HeuristicResolver in CContentAssistProcessor to determine more
accurately whether dot-to-arrow replacement should be performed.

Change-Id: If011d6797247acc41c9fdd705dd8f5fbcbce87a4
2016-02-11 20:13:00 -05:00
Nathan Ridge
453e429d5c Bug 472818 - Numerous improvements to HeuristicResolver
Notable improvements include:
  - better handling of typedefs and reference types
  - support for specialization of dependent lookup results
  - support for nested templates

Change-Id: Id7b20e40bf31507b4e1743a7ae5898b1a85ade17
2016-02-11 20:13:00 -05:00
Thomas Corbat
6b8482f866 Bug 487186 - Extraction of template type with function type argument
- Changed DeclarationGeneratorImpl to also consider the declarator for
template arguments instead of only the decl specifier.
- Adapted DeclarationGeneratorImpl to not add abstract pointer
.declarator for function type template arguments.
- Test case.

Change-Id: Iedec3e62f8234495003b74bfb463979e37c90bda
Signed-off-by: Thomas Corbat <tcorbat@hsr.ch>
2016-02-05 03:34:50 -05:00
Nathan Ridge
93af811c6d Bug 486683 - Highlighting for context-sensitive keyword inside macro expansion
Change-Id: I28c729dffcffd6a69f4adcc94d22d789ebb00b11
2016-02-02 01:51:48 -05:00
Nathan Ridge
a201468432 Bug 486682 - Syntax coloring of macro arguments that occur in reverse order in the AST
Change-Id: Ib038a39ada52d44356c4207bef72a681dd3aa790
2016-02-02 01:50:26 -05:00
Nathan Ridge
aca9b68b02 Bug 486688 - Syntax highlighting for dependent enumerator / enumeration
Change-Id: I3054a8e8d556f1473049e8b11c64c1e066e16004
2016-01-29 02:41:44 -05:00
Nathan Ridge
f9375840ed Bug 486679 - Syntax coloring for local variable in lambda capture
Change-Id: Ia7aeae84210d0ce56f28d224099e6bc5f5dbf1a2
2016-01-29 02:39:49 -05:00
Nathan Ridge
eb54f64445 Bug 484898 - Highlighting of inherited constructor name
Change-Id: I314dcf08b0d882a60aa02f248131d02281f8ff16
2016-01-29 02:37:57 -05:00
Nathan Ridge
1d46897ad0 Bug 485709 - Syntax coloring of qualified enumeration
Change-Id: I33c8edc024fbb23c16e9328a15ddec05eabd6124
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2016-01-25 00:16:44 -05:00
Marc Khouzam
b745736775 Incremented CDT features version to 9.0.0
This includes bumping the standalone debugger to 9.0.0

Change-Id: I55fae1cec995b5f6865a5b174c004ed1b76e9bea
2016-01-18 16:37:47 -05:00
Marc Khouzam
f3ff649041 Fix copyright of all CDT plugins using the copyright tool from platform.
This commit does not add missing copyrights, just updates the date on
the existing ones.

Change-Id: I646f5afd533a1fcc539bdf2e0686b22f406ecf65
2016-01-03 20:38:31 -05:00
Nathan Ridge
e667b2631c Bug 484899 - Navigation to inherited constructor
Change-Id: I3ce24f3fb70e50b50757900c5ccb372abd855dfc
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2015-12-26 23:25:13 -05:00
Nathan Ridge
f82660f14c Bug 416748 - Improve semantic highlighting for alias templates
Change-Id: Ic0d0110133a4732cace07d19e995e7c51b5538e3
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2015-12-26 19:24:25 -08:00
Nathan Ridge
60e390b0e4 Bug 484618 - Implicit names for calls to user-defined literal operators
Change-Id: I15df0f5729b5c4ba6c557789be5db56baaf3afbc
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2015-12-26 14:59:45 -05:00
Sergey Prigogin
102c7b58cf Revert "Bug 484618 - Implicit names for calls to user-defined literal
operators"

This reverts commit 7059bfb0ea.

Change-Id: I99c73e4655a29b1e06e8b709451f939175b80031
2015-12-24 13:20:05 -08:00