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

58 commits

Author SHA1 Message Date
Torbjörn Svensson
e6de0c9385 Bug 551817 - Add about.html to src.includes for plugins
Change-Id: Id6e1a3c4aa94bf242efd62a28f5ca9de7d64f699
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2019-10-17 10:07:18 -04:00
Alexander Kurtakov
a3938937f2 Convert new Runnable to lambda.
Take 2.

Change-Id: I060b0e41d8c6058db0c2ba88af8454b5517105b8
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2019-08-12 17:31:30 +03:00
Jonah Graham
37ed2c406d Bug 540373: Update the compiler warnings/ignores
The previous alignment of all the warnings/ignores
led to too many warnings that weren't there before. This
commit relaxes them a bit.

The core/org.eclipse.cdt.core/.settings/org.eclipse.jdt.core.prefs
is still the "master" copy, with
releng/scripts/check_code_cleanliness.sh containing the
exceptions that apply to test plug-ins.

Change-Id: Ibd4e31ade0b42b31e7cbe5a94f06c6fc15183a56
2018-11-24 10:55:06 +00:00
Jonah Graham
3caea240a3 Bug 540373: Format some Java files that were missed
Some files which has other cleanups applied meant they needed to be
reformatted again. e.g. the removing of type parameters shortened
some lines of code that meant the wrapping changed.

Change-Id: I68ca09567b9530cc2a085c33923642b6de2ec77b
2018-11-23 13:59:46 +00:00
Jonah Graham
ff75ae80fa Bug 540373: Cleanup: Remove trailing whitespace in properties files
Command used:
# Remove space at eol in comments
find .  ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/^(#.*)[ \t]+$/\1/' {} +
# Remove space at eol in blank lines
find .  ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/^[ \t]+$//' {} +
# Replace escaped spaces at eol with unicode
find .  ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/([^\\])\\ $/\1\\u0020/' {} +
# Replace unescaped spaces at eol with unicode
find .  ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/([^\\]) $/\1\\u0020/' {} +
# Replace escaped tabs at eol with unicode
find .  ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/([^\\])\\\t$/\1\\u0009/' {} +
# Replace unescaped tabs at eol with unicode
find .  ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/([^\\])\t$/\1\\u0009/' {} +
# Stage all changes
git add -A .
# trim any remaining whitespace and then identify and fixup
# manually
# Only dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/viewmodel/MessagesForDebugVM.properties
# needed this due to missing newline at end of the file
find .  ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/[ \t]+$//' {} +

Change-Id: I858f16891fe001f4f7e62d5a4f904146e891cd39
2018-11-23 07:52:26 +00:00
Jonah Graham
aa1040a21a Bug 540373: Remove '(non-Javadoc)' comments
These were inserted in the past automatically by Eclipse but
newer tooling makes them redundant.

These were removed by doing a global find/replace on *.java files
using the following regular expression:
\t/\*\n\t \* \(non-Javadoc\)[^/]*/\n

Change-Id: I59d3248020f10934fde1dda5b5a31e20bb188e19
2018-11-22 22:00:29 +00:00
Jonah Graham
eeb3006e27 Bug 540373: Cleanup: Remove redundant semicolons
This was done by selecting all projects in Eclipse then
Source -> Clean Up... -> choosing:
- Remove redundant semicolons
and completing the wizard

Change-Id: I3d3175cfdfadec4f815c551d486e42c9f57b80ce
2018-11-22 21:57:01 +00:00
Jonah Graham
caf2292768 Bug 540373: Cleanup: Remove redundant type arguments
This was done by selecting all projects in Eclipse then
Source -> Clean Up... -> choosing:
- Remove redundant type arguments
and completing the wizard

Change-Id: Iaecc7010f097b4b1fabd29ccaa34ccb23a716fbf
2018-11-22 21:55:36 +00:00
Jonah Graham
a923614c73 Bug 540373: Cleanup: Organize Imports
This was done by selecting all projects in Eclipse then
Source -> Clean Up... -> choosing:
- Organize Imports
and completing the wizard

Change-Id: Ia7b305a4c967d0e6f4e8fb8c1041e7028b24006c
2018-11-22 21:47:02 +00:00
Jonah Graham
170e654b47 Bug 540373: Cleanup: Format & Remove trailing whitespace
This was done by selecting all projects in Eclipse then
Source -> Clean Up... -> choosing:
- Format source code
- Remove trailing white spaces on all lines
and completing the wizard

Change-Id: I63685372c6bcc67719bcf145123bcb72e5b00394
2018-11-22 21:47:02 +00:00
Jonah Graham
35996a5c5c Bug 540373: Standard .settings auto applied
The releng/scripts/apply_jdt_prefs_to_all_projects.sh was run to
copy standard settings to all other projects.

Change-Id: I4436c947d7f0142f56b709e661379c3eb54f666b
2018-11-22 21:47:02 +00:00
Jonah Graham
f70a8b35c1 Bug 540371: Update to EPLv2 using releng/scripts/change_to_eplv2.sh
Change-Id: Ifbb1d5af2a00bd5634dea200320e8c4303ffca6c
2018-11-22 20:31:51 +00:00
Karsten Thoms
652602febd Bug 540610 - Add Automatic-Module-Name header
Change-Id: Ia990b24469751050dd9ec8f9b5550804816308b3
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2018-10-30 15:49:15 +01:00
Marc Khouzam
f38cbb85c3 Remove old .cvsignore files
Change-Id: Ia66de47055a15d94c0aa45d1198f0a9e78d82ad0
2016-06-30 09:58:00 -04:00
Marc Khouzam
9e1e981b4d Move the rest of the CDT plugins to java 8
This change was generated using the script:
releng/scripts/ChangeJavaVersion.sh

Change-Id: I2ad96dc682a5acb8529c3edec40de279c331b5a4
2016-06-22 14:51:43 -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
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
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
Marc Khouzam
766f66c0ab Missing copyright header.
Copyright assigned to company of the committer
who did the first commit of the file.

Change-Id: Ia133694018c798f9558258810982f5276737a0b0
2016-02-01 12:47:41 -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
Jonah Graham
835288f558 Bug 469926: Update readme from CVS to GIT URLs
Change-Id: I77ee51f2a59bf306b789a6664b82a5f8d79f919a
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
2015-06-11 13:01:58 +01:00
Jesper Eskilson
01a1046fa1 Fixed copy-paste-bug causing the wrong variable to be checked in a
conditional.

Change-Id: I4156b612b955dc5ac648b4d331ac9537f8b182f9
Signed-off-by: Jesper Eskilson <jesper.eskilson@iar.com>
2015-05-01 20:42:11 -04:00
Marc Khouzam
3f8305fc0f Move to new getAdapter() signature using generics
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-04-15 15:39:36 -04:00
Marc Khouzam
4781f20495 Move some leftover plugins from Java 5 to Java 7.
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-03-25 13:42:20 -04:00
Marc Khouzam
a04d64606e Remove unnecessary @SuppressWarnings
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-03-25 11:39:17 -04:00
Marc Khouzam
87a29d31aa Add many missing @Override to remove warnings
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-03-25 11:18:06 -04:00
Marc Khouzam
37890019cb Remove warnings caused by change to getAdaptable()
getAdaptable() in 4.5 M6 has changed to use generics, making casting its
result no longer necessary.

Change-Id: Idd943216a925576bb72c784b2c5a2a4b8e8b00d2
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-03-25 11:01:46 -04:00
Alexander Kurtakov
6534051b1b Don't use deprecated junit.framework.Assert.
The replacment is org.junit.Assert.

Change-Id: I44bd6da6e19f9d69f91eb1ad251bd6e259ff67a9
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Reviewed-on: https://git.eclipse.org/r/30629
Tested-by: Hudson CI
Reviewed-by: Marc Khouzam <marc.khouzam@ericsson.com>
2014-07-29 08:15:40 -04:00
Pawel Piech
b83750eae0 Bug 379317 - SimpleDisplayExecutable posts runnables as separate UI event queue elements
Updated the performance test to better simulate debuggers' view model.
2012-05-14 14:30:45 -07:00
Pawel Piech
cd080686aa Bug 366446 - [test] DSF tests don't compile against platform 4.2M4 2011-12-12 21:11:43 -08:00
Patrick Chuong
c57cf3cce3 Bug 202556 - [variables][registers][expressions] Allow setting of numeric format for individual variables in the view. 2011-03-04 16:06:51 +00:00
Pawel Piech
acfb30df58 Bug 328883 - AbstractCachingVMProvider throws ClassCastException
Corrected Fix.
2010-11-30 22:47:18 +00:00
Pawel Piech
8378c53a18 Bug 329488 - DSF ACPM deadlocks 2010-11-11 18:05:03 +00:00
John Cortell
5fa5ff3a81 Bug 329481: Inconsistency in DSF ACPM cancel behavior. 2010-11-10 16:47:55 +00:00
Pawel Piech
24af3b858a Bug 310345 - Updated range cache to immediately return a valid range if range data is available. 2010-10-28 04:41:23 +00:00
John Cortell
c53ab94055 Bug 310345: [concurrent] Asynchronous Cache Programming Model (ACPM) utilities for DSF (reintroduced the "disabled" tests) 2010-10-20 20:44:43 +00:00
Pawel Piech
a24bb7ea72 Bug 310345 - [concurrent] Asynchronous Cache Programming Model (ACPM) utilities for DSF
- Removed the hidden handling of DataRequestMonitor in AbstractCache.update().
2010-10-20 15:59:09 +00:00
Pawel Piech
a56f1006bd Bug 310345 - [concurrent] Asynchronous Cache Programming Model (ACPM) utilities for DSF 2010-10-19 21:20:56 +00:00
John Cortell
432a6010a8 Bug 310345: [concurrent] Asynchronous Cache Programming Model (ACPM) utilities for DSF (Improvements) 2010-10-19 18:45:56 +00:00
Pawel Piech
c6e0fac759 Bug 310345 - [concurrent] Asynchronous Cache Programming Model (ACPM) utilities for DSF 2010-10-18 16:50:06 +00:00
Pawel Piech
ad14e00615 Bug 321932 - Removed a constant accidentally added to the API in last checkin. 2010-09-28 17:44:52 +00:00
Pawel Piech
c72c78d35c Bug 325943 - [concurrent] Robustify Sequence against RejectedExecutionException 2010-09-27 23:27:18 +00:00
Pawel Piech
4d3edd80a2 Bug 321932 - [update policy] When in manual mode, switching number format should still show value in other formats if value is cached. 2010-09-24 18:58:49 +00:00
Marc Khouzam
ca255eb6e6 Bug 321084: Create a new ReflectionSequence and have FinalLaunchSequence use it. The goal to to make FinalLaunchSequence easier to extend. 2010-08-31 15:18:45 +00:00
Ed Swartz
f946054513 Add README for finding those elusive org.eclipse.test.* plugins. 2010-07-08 13:51:20 +00:00
Vivian Kong
0ac162a821 Bug 315439 Fix up copyright 2010-06-02 19:27:16 +00:00
Pawel Piech
43c75ac89f Refactoring of update listener to match debug platform tests. 2010-05-24 22:22:42 +00:00
Pawel Piech
06e479681f Bug 312813 - [Launch] MIInferiorProcess.exitValue() never returns 2010-05-14 16:50:40 +00:00
Pawel Piech
8a353a1758 Bug 310335 - [concurrent] Query utility does not propagate a cancel requests 2010-04-23 20:21:03 +00:00
Pawel Piech
04709d2876 [306982] - [concurrent] DsfRunnable.finalize() method increases the cost of garbage collecting 10x 2010-03-24 18:43:58 +00:00