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

36 commits

Author SHA1 Message Date
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
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
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
Nathan Ridge
d45ff124e3 Bug 510722 - Handle a null AST in ExpandSelectionJob and ControlFlowGraphView
Change-Id: Iafd1b9a32833fb67554902d13955023c149a132e
2017-01-21 16:15:52 -05: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
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
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
Alena Laskavaia
5218c3caf9 cleanup of ControlFlowGraph view
Change-Id: Ic6be0eedc1e66867efda2b437181da081b2234c0
2015-12-18 07:59:19 -05:00
Nathan Ridge
155fa65c1c Fix a typo in org.eclipse.cdt.codan.ui.cfgview/plugin.xml
Change-Id: I41aeb1195e9d8b663de396883e0aa6e4f3b5c6e4
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2015-02-16 01:45:53 -05:00
Alena Laskavaia
24d2e1a4c8 Bug 447486 - codan - CCE is thrown by control flow graph builder
- addOutgoing cannot join JumpNode - block will be added to dead list
instead
- addjusted goto code to not use addOutgoing but using setJump directly
- corrected code that doing fake return to deal jump nodes at the end
- corrected code that marks up dead code to remove jump targets
- corrected code that calculates all nodes in the graph to take into
account dangling labels
- fixed CFG viewer to show unconnected labeled statements

Change-Id: Ie4d9e37678e3ebaae8e9f268e6f37342e14a1444
Reviewed-on: https://git.eclipse.org/r/38189
Tested-by: Hudson CI
Reviewed-by: Elena Laskavaia <elaskavaia.cdt@gmail.com>
2014-12-14 13:09:13 -05:00
Sergey Prigogin
5d7a19fa6c Enabled JDK 1.7.
Change-Id: Ic2a161ea3c318dc1e8ba01c271c936bf5ed8763d
Reviewed-on: https://git.eclipse.org/r/21020
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-01-24 13:38:55 -05:00
Sergey Prigogin
3be412111c Bumped up feature versions for Kepler. 2012-06-28 11:08:11 -07:00
Sergey Prigogin
d8c53b2501 @Override annotations. 2012-01-07 17:43:42 -08:00
Sergey Prigogin
7a3c9ba3a1 Switched to Java 1.6. 2011-10-17 18:04:17 -07:00
Sergey Prigogin
457af57f60 Changed the execution environment to JavaSE-1.6 2011-10-17 16:44:49 -07:00
Vivian Kong
1ac5b9f1e2 Bug 348747 - Codan source bundles missing required files 2011-06-08 14:10:28 +00:00
Alena Laskavaia
598b6fc042 auto-format code using project formatter 2011-02-24 00:50:07 +00:00
Alena Laskavaia
9164b9a756 enable project specific code formatter so all committers use the same one 2011-02-24 00:47:37 +00:00
Alena Laskavaia
aadbf2a477 Bug 335909 - Exception in switch statement 2011-02-09 02:24:19 +00:00
Alena Laskavaia
d91b53a16b Externalized strings in manifest 2010-05-31 01:42:48 +00:00
Alena Laskavaia
3ec7ac60fa Clean up interfaces for control flow graph 2010-05-25 02:16:11 +00:00
Alena Laskavaia
eff03629d6 Interface class should have been in public package 2010-05-12 22:20:25 +00:00
Alena Laskavaia
a39fe6b4b2 Extracted interface for data object of Basic Block in control flow graph 2010-05-09 01:54:29 +00:00
Alena Laskavaia
077398283c - renamed provisional package 2010-04-21 01:41:53 +00:00
Alena Laskavaia
5a5d22c50d - added more tests and support for goto/label statements 2010-04-17 01:58:12 +00:00
Alena Laskavaia
234a20224a - added support for break and continue 2010-04-15 02:22:56 +00:00
Alena Laskavaia
ee3a2444d1 - re-wrote to use labeled node instead of decisionArc 2010-04-14 02:55:44 +00:00
Alena Laskavaia
e1b6394c31 - fixed icons 2010-03-31 00:50:24 +00:00
Alena Laskavaia
2edd020c84 - added support for while loop in cfg 2010-03-30 03:04:48 +00:00
Alena Laskavaia
2449137d04 - fixed action name/icon 2010-03-29 02:39:41 +00:00
Alena Laskavaia
6b922df8c2 - test view to inspect control flow graph 2010-03-29 02:31:04 +00:00