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

24565 commits

Author SHA1 Message Date
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
Alvaro Sanchez-Leon
b2db3a489c Bug 489513 - Show registers in the traditional memory render
Change-Id: I9ddbbeb9c8345f006004d9d2982a778d28c6d68c
2016-04-25 17:03:49 -04: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
Alvaro Sanchez-Leon
e21fc12f90 Bug 489512 - Show local variables in the traditional memory render
Change-Id: I48d633e8f6979fd91e9150856fd77fccffdee299
2016-04-24 21:39:15 -04:00
Marc-Andre Laperle
d608db2e7a Update outdated maven plugins
See
https://hudson.eclipse.org/cdt/job/cdt-check-maven-plugin-updates/61/console

Change-Id: I81ebfc67e86d5ea851bdc026769976c54c371202
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2016-04-24 13:55:41 -04:00
Doug Schaefer
7043af66fb Major change to new build arch to give configs more power.
Creates a single central CBuilder builder which find the C Build
Config and delegates the builds to it. That give configs full control
over the builds. Qt and CMake build configs are adapted to this new
structure.

More features are added to the default super class for configs.

Change-Id: I5ecfc7a4e9b909da6749189a059cdcd4a208fddd
2016-04-23 22:35:33 -04:00
Sergey Prigogin
903eb7ed3a Cosmetics. 2016-04-22 16:34:53 -07:00
Sergey Prigogin
6ff4be3caa Minor performance optimization.
Change-Id: I8c93a9b5347f58670ed4f87296ecd5e45429158d
2016-04-22 16:28:53 -07:00
Alex Blewitt
2356a29c70 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: Ic2f50c5b6f3c3a4eae301bb3b40fb6faed235f79
Signed-off-by: Alex Blewitt <alex.blewitt@gmail.com>
2016-04-21 22:17:03 -05:00
Sergey Prigogin
e901d4a7d4 Cosmetics. 2016-04-21 16:22:03 -07:00
Sergey Prigogin
9f79b897c1 Bug 492200 - Replace StringBuffer with StringBuilder where appropriate
Change-Id: Ib52b839a211e2068e56da4b62a5b9640fef55d40
2016-04-21 16:15:31 -07: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
Alex Blewitt
ccbab86d6c 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: I769ceb6eaee18d183fb0e00fa0d730651f8a7edb
Signed-off-by: Alex Blewitt <alex.blewitt@gmail.com>
2016-04-21 18:49:32 -04:00
Jeff Johnston
8a2fd3307b Fix Connection drop-down in Run Image Launch configuration
- drop-down doesn't cause Apply button to activate when
  changing Connections from previous connection
- fix setting of default connectionName to avoid NPE
- move setting of connectionURI when user changes drop-down
- add check in isvalid() to verify image exists in connection
- reload images when changing connection and ignore parent images

Change-Id: I9dbc8828a6e6321e9cd1392d4e8c4dbdf2a954db
2016-04-21 14:56:30 -04:00
Nathan Ridge
3e4e14f0d6 Bug 491834 - Revert the earlier attempt to guard against infinite recursion in HeuristicResolver
Change-Id: I22bd9deb13824a82f081c12051770f8d314b11e6
2016-04-21 13:28:07 -05:00
Nathan Ridge
a75ce4027b Bug 491747 - Reference to scoped enumerator declared later in class
Change-Id: If55f0a92c5e3723a306f6ec22a7363c90ef467a8
2016-04-20 22:11:04 -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
Karsten Thoms
2392400649 Bug 471103 - Add caching for performance improvements of indexing
Change-Id: I6c515202e029a030c89b7f71c013bbc2e2c1c588
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2016-04-20 17:18:00 -05:00
Alex Blewitt
b23de2f366 Bug 491984 - Optimise toString().isEmpty() checks
The use of toString().toEmpty() is a potential code smell, and has
identified a couple of places where this pattern could be optimised.

Change-Id: I1a37e62ed8546a48151a494e9f24fea46d9d2497
Signed-off-by: Alex Blewitt <alex.blewitt@gmail.com>
2016-04-20 17:58:12 -04:00
Marc-Andre Laperle
6e98f402bd Make stand-alone debugger SWTBot test more robust
- Wait until binary file exists after building instead of sleep
- Replace waiting loop with waitUntil methods with bigger timeouts
- Replace menu detection with faster and more reliable method:
  - Find menu items in specific shell
  - Use waitUntil with small timeout to detect absent menu items

Change-Id: I5239fa5dab9e091936addf6ceb9ef05095d23bd3
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2016-04-20 17:23:12 -04:00
Marc-Andre Laperle
869801b95b Upgrade to Tycho 0.25.0
See https://wiki.eclipse.org/Tycho/Release_Notes/0.25

Change-Id: I6c4c7dd82c2786fe6acd01bbcdca19cc2f2c84ae
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2016-04-20 14:55:52 -04:00
Sergey Prigogin
a295702335 Bug 491842 - Name resolution problem with initializer list
Change-Id: I9a70beb41e9819ca9e980b16249bd080f4d21e97
2016-04-19 19:13:37 -07:00
Sergey Prigogin
3b8da01c12 Cosmetics. 2016-04-19 19:11:41 -07: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
Anton Leherbauer
10ba077124 Bug 491972 - [winpty] Not enough storage is available to process this command 2016-04-19 12:00:39 +02:00
Alex Blewitt
4ad7f81c23 Bug 491945 - Refactor ToolReference::getToolCommand()
The implementation of `ToolReference::getToolCommand()` different from its
neighbours by checking if the `parent` was non-null. Change this so it looks for
the `parent` being null and swap the bodies of the `if` statement around to
maintain compatibility.

Change-Id: I8a188b350f94db9b1bd9d240b7a7320a930280a2
Signed-off-by: Alex Blewitt <alex.blewitt@gmail.com>
2016-04-18 23:45:20 +01: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
Marc-Andre Laperle
135bdd4294 Fix SWTBot dependency in Oomph setup
Change-Id: I8698fbd18d6f467b23b57b09b1f0a0ea55a5f5c0
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2016-04-17 23:08:27 -04:00
Sergey Prigogin
6be5a7fbe0 Bug 491834 - StackOverflowError in HeuristicResolver
Change-Id: I8aaf80e66d6d7bd999482450c506f7160bd276fd
2016-04-16 23:35:04 -04: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
Alvaro Sanchez-Leon
0b7b2a87d3 Enable coverage measurements from stand alone debugger tests
Change-Id: Ia6537659897057f29fd7a766c93ab72707048de5
2016-04-15 21:05:34 -04:00
Alexander Kurtakov
d81d00ec47 autotools: Adapt to generified ListenerList.
Neon generified ListenerList so cleanup here too.

Change-Id: I569ddf79d4cc0e805da5083867f3c403aa6d79b9
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2016-04-15 17:47:41 -04:00
Sergey Prigogin
b91b69775f Bug 491825 - Remove uses of new Boolean and friends
Change-Id: Ie358c8385c278472f3b86851f6fc219007bb9b5c
2016-04-15 15:20:15 -04:00
Alexander Kurtakov
3dc5c0a138 autotools; Use try-with-resources.
Change-Id: I424a07664a587ac65210dbe33b96e3f914a1c274
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2016-04-15 11:14:25 -05:00
Jonah Graham
1dd218df31 Stop using _ identifier
From JLS 15.27.1.

It is a compile-time error if a lambda parameter has the name _ (that
is, a single underscore character).

The use of the variable name _ in any context is discouraged. Future
versions of the Java programming language may reserve this name as a
keyword and/or give it special semantics.

Change-Id: I6f357dcc8f1eea933c6fc3afb474982e6d6210fe
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
2016-04-15 11:12:02 +01:00
Sergey Prigogin
3c09a628a2 Bug 491748 - Name resolution problem with initializer list
Change-Id: Ib259f16a080c7f8848a7ce9e1c40c0153e99f387
2016-04-14 20:28:34 -07:00
Doug Schaefer
47813ac881 Serial - Support COM ports > 9. Set default baud rate to 115200.
Change-Id: I2ca955a6071090a47a47eab3e494d308a1019e52
2016-04-14 19:11:51 -04:00
Doug Schaefer
55d95e9942 Remove build.core from cmake.ui. 2016-04-14 16:41:57 -04:00
Doug Schaefer
e090d78f94 Remove build.core from cmake.core. How did this pass verification? 2016-04-14 16:35:10 -04:00
Doug Schaefer
ea6b90d443 Remove cdt.build plugins from the source feature. 2016-04-14 16:28:20 -04:00
Doug Schaefer
6e1b9b408d Tighter integration of new build system with cdt.core.
Move the new build system to cdt.core and remove the previous
plugins. Hook the new system into scanner info and environment
variable manager.

Clean up API in preparation for Neon and API lockdown. Hook up
Qt to the new APIs.

Add discovery of MSYS2's toolchain and Qt and Qt's MinGW toolchain.

Change-Id: I85b1a91da4a44e86f0e9da9310f8106c894623e0
2016-04-14 16:19:37 -04:00
Sergey Prigogin
ad0d665a19 Use CharArrayObjectMap instead of CharObjectMap to store symbols in
scopes.

Change-Id: Ie2f84135d22ba21829afc0426cf1d83e5d234e7c
2016-04-13 21:06:58 -07:00
Sergey Prigogin
27774c7688 Bug 491636 - Problem with constructor declaration with the name
including template arguments

Change-Id: I6c2269d232cb1a93a070c73f2ed52f1beeb43926
2016-04-13 19:48:13 -07:00
Sergey Prigogin
739bc922cf Code streamlining.
Change-Id: Iaafe325b1c984b4246bd80b3b80a4f08c612d32a
2016-04-13 19:03:49 -07:00
Sergey Prigogin
a8d768376d Cosmetics. 2016-04-13 16:44:21 -07:00
Jonah Graham
93155eceba Bug 472765: User documentation for Path Mapping
Change-Id: Ida009cc85c0b35845bd2c6db19a7e23a0a37f700
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
2016-04-13 10:41:46 -05:00
Jonah Graham
6f249f12c1 Bug 472765: Restore test comments post refactoring
During the testsuite refactoring that significantly improved the DSF
suite (Commit 528de33113) some info
was lost from the code. This resurrects those comments.

Change-Id: I0a11dee2dcabb0800306880fc7c6217374bc337a
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
2016-04-13 11:41:28 -04:00
Jonah Graham
64da973dcf Bug 472765: Delete dead classes
MappingSourceContainerBrowser has long since replaced
with NewMappingSourceContainerBrowser.

PathMappingDialog has long since replaced
with MappingSourceContainerDialog.

Change-Id: I67bd6640d5e75608c9b3d616285914987ff38f98
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
2016-04-13 16:07:31 +01:00