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

23413 commits

Author SHA1 Message Date
Sergey Prigogin
246d2eb69b Added editing of include guard style preference. 2014-06-17 15:15:50 -07:00
Sergey Prigogin
d962e2eee7 Automatic update of include statements and include guards when header
files are renamed or moved.
2014-06-17 15:14:50 -07:00
Sergey Prigogin
cf4556f05f Cosmetics. 2014-06-17 15:12:01 -07:00
Marc Khouzam
ce9b270a38 Bug 435998 - Get rid of all "eclipse_update_120.jpg" files in CDT
features

Change-Id: I52a71e62f8161990657e96ef52403fd7f69698a2
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/27499
2014-06-17 11:33:37 -04:00
Alena Laskavaia
16037a5f38 Bug 350168 - Return checker won't report errors in dead code
Also Bug 356908, Bug 348386

Change-Id: I48d2f74e05d2d6d7a7bf0589408ca90bc07a6922
Reviewed-on: https://git.eclipse.org/r/28527
Tested-by: Hudson CI
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
2014-06-16 10:26:43 -04:00
Jeff Johnston
45a165b37d Bug 436892 - Standalone Debugger should not delete launch while it is still running
- distinguish between specifying an executable on command line or from the
  New Executable Dialog
- remove all launch configurations for the Executables project before
  deleting the project
- tell the configurer to not save and restore
- perform super.postWindowClose() after we have saved workspace

Change-Id: I1f02f3e033e5abf6c3c90a096312de2f134f7d8c
Reviewed-on: https://git.eclipse.org/r/28175
Tested-by: Hudson CI
Reviewed-by: Jeff Johnston <jjohnstn@redhat.com>
Tested-by: Jeff Johnston <jjohnstn@redhat.com>
(cherry picked from commit 0e6641c128)
Reviewed-on: https://git.eclipse.org/r/28206
2014-06-13 16:39:55 -04:00
Jeff Johnston
19e643f373 Bug 437302 - -e requires full path
- Add support to replace paths with absolute canonical paths before
  creating links within project or creating debug launch configs

Change-Id: I253978a973a4e583bc5e63b751e5184e7b085db1
Reviewed-on: https://git.eclipse.org/r/28448
Tested-by: Hudson CI
Reviewed-by: Jeff Johnston <jjohnstn@redhat.com>
Tested-by: Jeff Johnston <jjohnstn@redhat.com>
2014-06-13 15:49:57 -04:00
Simon Marchi
87ffdc164c Bug 437182: Display as array: make error messages match field names
It seems that the fields were previously named "first index" and "last index".
Now they are named "start index" and "length".

Change-Id: Ic913f3df8b542395a73074f0803875a11fdc8450
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
Reviewed-on: https://git.eclipse.org/r/28286
Tested-by: Hudson CI
Reviewed-by: Alvaro Sanchez-Leon <alvsan09@gmail.com>
Tested-by: Alvaro Sanchez-Leon <alvsan09@gmail.com>
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2014-06-12 22:03:31 -04:00
Marc Dumais
d642797a86 Bug 436879 - 'connect' button sometimes disabled when it shouldn't be
Change-Id: I1912ed6fa5fe7930b8af075e92aa3acf66645eb6
Reviewed-on: https://git.eclipse.org/r/28341
Reviewed-by: Anton Leherbauer <anton.leherbauer@windriver.com>
Tested-by: Hudson CI
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
(cherry picked from commit 43e5ce87e6)
Reviewed-on: https://git.eclipse.org/r/28359
Reviewed-by: Marc Dumais <marc.dumais@ericsson.com>
Tested-by: Marc Dumais <marc.dumais@ericsson.com>
2014-06-11 10:34:30 -04:00
Christian Walther
7672ba3b84 Bug 436060 - Race condition in updateProjectDescriptions()
Before calling setProjectDescription() with a description that was
obtained earlier without contiguous protection by an appropriate
scheduling rule, check whether it is still current, otherwise changes to
the project made by others in the meantime may get overwritten.

Change-Id: I5d739116f2b83525a19187b3cc396e857865440a
Signed-off-by: Christian Walther <walther@indel.ch>
Reviewed-on: https://git.eclipse.org/r/27463
Tested-by: Hudson CI
Reviewed-by: Andrew Gvozdev <angvoz.dev@gmail.com>
Tested-by: Andrew Gvozdev <angvoz.dev@gmail.com>
2014-06-10 17:30:41 -04:00
Jeff Johnston
333128a63a Bug 436893 - workspace should be renamed for Standalone Debugger
- workspace is now workspace-cdtdebug

Change-Id: I04e9285a385308c5b3911c64bb175b07f8ed407d
Reviewed-on: https://git.eclipse.org/r/28207
Tested-by: Hudson CI
Reviewed-by: Jeff Johnston <jjohnstn@redhat.com>
Tested-by: Jeff Johnston <jjohnstn@redhat.com>
2014-06-09 15:30:52 -04:00
Jeff Johnston
a02bedd48e Bug 436554 - standalone debugger cannot find pushd/popd on Ubuntu
- Fix cdtdebug.sh to not use pushd/popd
- Fix install.sh script to do proper sed now that pushd is not used

Change-Id: I466af0b0b6e09a53eb11505ce480138b5b538378
Reviewed-on: https://git.eclipse.org/r/28070
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Hudson CI
Reviewed-by: Jeff Johnston <jjohnstn@redhat.com>
Tested-by: Jeff Johnston <jjohnstn@redhat.com>
2014-06-07 15:04:42 -04:00
Sergey Prigogin
25e5cffbdc Bug 436748 - Preference option missing in OrganizeIncludesBlock 2014-06-05 13:23:24 -07:00
Sergey Prigogin
e9efc2eac0 Cosmetics. 2014-06-04 20:30:44 -07:00
Sergey Prigogin
68d17bbd55 Cosmetics. 2014-06-04 20:30:16 -07:00
Jeff Johnston
dd77e62e1a Bug 436260 - Standalone Debugger not starting
- Fix config.ini to contain missing bundles such as
  org.eclipse.cdt.native and org.eclipse.core.net
- Remove missing compat bundle

Change-Id: I440be50144e5e081f295f8535e616b4fc0f94692
Reviewed-on: https://git.eclipse.org/r/27613
Tested-by: Hudson CI
Reviewed-by: Jeff Johnston <jjohnstn@redhat.com>
Tested-by: Jeff Johnston <jjohnstn@redhat.com>
(cherry picked from commit 473fe58a28)
Reviewed-on: https://git.eclipse.org/r/27992
2014-06-04 16:52:15 -04:00
Sergey Prigogin
a74fec3491 Adjusted test expectations to the modified treatment of unused includes. 2014-06-04 11:56:04 -07:00
Sergey Prigogin
c50e715749 Changed the Organize Includes default behhavior to remove unused
comments. Organize Includes is mature enough for that.
2014-06-04 10:52:49 -07:00
Sergey Prigogin
0aa493f3d8 Bug 436616 - NPE in ASTCommenter$PreprocessorRangeChecker.checkOffsets 2014-06-04 10:41:22 -07:00
Jeff Johnston
aa70cfe5d7 Fix native feature to have sourceTemplateFeature directory.
Change-Id: Ia3a51757191a1b168cf47397d47d3a1375ce2f9c
Reviewed-on: https://git.eclipse.org/r/27875
Tested-by: Hudson CI
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-06-04 09:29:29 -07:00
Marc Khouzam
9c98d58561 Update Debug JUnit tests to allow running tests for all GDB versions.
Change-Id: Ied36d9eb7e31ca33f04e6744f670e77dfec36f36
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/27872
Tested-by: Hudson CI
2014-06-03 20:49:45 -04:00
Marc Dumais
7204746924 Bug 436453 - [visualizer] Load meters no longer have numerical overlay
Change-Id: I456158f1a8bae8a18f4df5bd2081bcee6e8c75ae
Reviewed-on: https://git.eclipse.org/r/27829
Tested-by: Hudson CI
Reviewed-by: Marc Khouzam <marc.khouzam@ericsson.com>
(cherry picked from commit c7d2218acc)
Reviewed-on: https://git.eclipse.org/r/27837
Reviewed-by: Marc Dumais <marc.dumais@ericsson.com>
Tested-by: Marc Dumais <marc.dumais@ericsson.com>
2014-06-03 14:03:42 -04:00
Marc-Andre Laperle
1cc6d6ab8e Build with 4.4 and use target definition file for maven build
Change-Id: I1044751c600e7725fd2cb02578c28d5f45de1854
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/27631
Tested-by: Hudson CI
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
2014-06-03 11:52:57 -04:00
Marc Khouzam
8c15651c03 Bug 436349 - JUnit test for step-return for a method returning void
Change-Id: Ia449c9f599e6c5c3af9e26b4014ade6a12ae58c3
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/27735
Tested-by: Hudson CI
2014-06-02 13:12:57 -04:00
Marc Khouzam
93fe0e78c3 Bug 436349 - Local variables incorrectly show as "returned" in variables
view

Change-Id: I916ed600f31da1c1f7da0215bac02c58ebfefb0a
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/27721
2014-06-02 10:50:08 -04:00
Sergey Prigogin
27c6327cdf Cosmetics. 2014-05-30 18:18:17 -07:00
Sergey Prigogin
2cada0fe18 Revert "WIP"
This reverts commit 9bc829ac73.
2014-05-30 18:11:12 -07:00
Sergey Prigogin
9bc829ac73 WIP 2014-05-30 17:54:09 -07:00
Sergey Prigogin
789a49dc70 Bug 436021 - [Organize includes] Both include and forward declarations
are added
2014-05-30 17:49:35 -07:00
Sergey Prigogin
85d96aa41d Fixed the id of the renameParticipant extension. 2014-05-30 17:22:34 -07:00
Sergey Prigogin
48b9c2e5ad Cosmetics. 2014-05-30 17:21:31 -07:00
Marc Khouzam
580b3a892a Point Debug tests to the instance of GDB on CDT's HIPP
Change-Id: Ib4e84a3c7c0717b458fd7cffe3ff70b1a1d3bcc5
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2014-05-30 16:03:06 -04:00
Martin Oberhuber
1333d6b53a Bug 303083 - Fix MANIFEST.MF split package and BREE for native plugin
After studying in more detail how the org.eclipse.core.runtime /
org.eclipse.equinox.common bundles deal with the split package
situation, I believe that our split package declaration must be
fixed in MANIFEST.MF or there is risk that an "import-package" client
would be wired by OSGi against the wrong bundle.

Also reduced the minimum execution environment of the native bundle
to J2SE-1.5 such that it is more widely usable across a broader range
of possible aadopters.

Change-Id: I6dfc0c67987203810a3fd75d49a5f26bb7ee30c1
Signed-off-by: Martin Oberhuber <martin.oberhuber@windriver.com>
Reviewed-on: https://git.eclipse.org/r/27581
Tested-by: Hudson CI
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
2014-05-30 11:48:34 -04:00
Doug Schaefer
523a74a56c CDT master builds got to master directory on downloads page. 2014-05-29 15:56:07 -04:00
Martin Oberhuber
ca8cc6e1e3 Bug 435887 - Update cdt.doc.isv
The org.eclipse.cdt.doc.isv bundle had not been updated since Juno.
This commit adapts to the changes from bug 303083, and does some more
updates to comply with CDT 8.4 Luna:

1. Update the doc.isv bundle version number - I deliberately jumped
   from 5.2.0 to 5.4.0 in order to leave room for a Kepler version
   (not sure if it is a good idea to leave out a version)
2. Update CDT Release name to "8.4 (Luna)" and Coppyright Date (2014)
3. Update link to Oracle Java Docs since BREE is now Java 7
4. Add org.eclipse.cdt.core.native to the sourcepath for Javadocs
5. Add o.e.cdt.util.spawner and o.e.cdt.util.pty packages to API docs
6. Remove org.eclipse.cdt.core/search from the source path list
   That source folder had been removed 8 years ago when PDOM came :)
7. Fix an XHTML validation error in about.html that made it not
   possible to view Legal Notices from the docs link

There might be more CDT API packages that our community currently
uses and that are not yet generated into the API docs. Adding them
should be easy if that's desired, but I noticed that in many cases
the Javadocs themselves are somewhat weak so I didn't want to expose
them without the code owner's approval.

Change-Id: I6c16aed4408d83994075a9b0505bc7d3e68b11d1
Signed-off-by: Martin Oberhuber <martin.oberhuber@windriver.com>
Reviewed-on: https://git.eclipse.org/r/27401
Tested-by: Hudson CI
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
2014-05-29 11:10:56 -04:00
Marc Khouzam
6996d3f93c Bug 435142 - Duplicate *running events cause UI slowness
Change-Id: I4b30e6cd62b7cc822442ddd14c3c1440f6bab376
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/26780
Tested-by: Hudson CI
Reviewed-by: Mikhail Khodjaiants <mikhailkhod@googlemail.com>
Reviewed-by: Alvaro Sanchez-Leon <alvsan09@gmail.com>
2014-05-29 10:56:26 -04:00
John Eblen
44d66b4750 Bug 416658. Remote indexing in C does not work completely for Windows
Change-Id: I75c296a13d11cd20f13bfa790c3c767c8b71f9f0
Signed-off-by: John Eblen <jeblen@acm.org>
Reviewed-on: https://git.eclipse.org/r/23220
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-05-28 14:11:13 -04:00
Doug Schaefer
321d380e76 Fix copyright on the dark theme. 2014-05-28 12:31:36 -04:00
Teodor Madan
0cb5a29ef3 Update contributors list to match Bug 435606
Signed-off-by: Teodor Madan <teodor.madan@freescale.com>
2014-05-28 14:07:19 +03:00
Martin Oberhuber
2b9bbdec61 Bug 303083 - Make cdt.core.native plugin consistent after rename
The org.eclipse.cdt.core.native plugin has been renamed from 
org.eclipse.cdt.core.spawner but that has left a couple inconsistencies
which are fixed with this commit:

1. Rename o.e.cdt.internal.core.spawner package -> natives package
   Note that renaming the package to "native" was not possible since
   "native" is a Java keyword, thus I chose "natives"
2. Rename CSpawnerPlugin -> CNativePlugin, update win32 fragment
3. Fix PLUGIN_ID for proper logging with IStatus
4. Fix MANIFEST.MF export-package;split declaration
5. Add "version" spec on "export-package" for pty and spawner packages
6. Rename "utils" source folder to "src" as this is standard practice
7. Remove "spawner" from the list of Javadoc plugins in cdt.core

Change-Id: Ie5d1112d3f2da120dd5b1446cb6a137382226f0f
Signed-off-by: Martin Oberhuber <martin.oberhuber@windriver.com>
Reviewed-on: https://git.eclipse.org/r/27346
Tested-by: Hudson CI
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
2014-05-27 12:04:41 -04:00
Doug Schaefer
451cdd5787 Bug 303083 - Rename spawner bundle to 'native'
Native more accurately reflects what we've put there. They're native
utilities that can be reused by other Eclipse bundles to access
native services.

Also fixed up the cdt 4.4 target which had fixed version numbers for
some of the dependencies and used RSE out of the Luna repo instead
of their latest milestones.

Change-Id: I259aa9e92212409378679a8c61bf2fffd05c67a2
Reviewed-on: https://git.eclipse.org/r/27304
Tested-by: Hudson CI
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
2014-05-26 14:38:12 -04:00
Marc Khouzam
46b8b34661 Bug 435309 - Update new spawner features to use shared license plugin
Change-Id: I536ec0d92bb200eed95877ea8549190508536ec9
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/27288
Tested-by: Hudson CI
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
2014-05-26 12:03:12 -04:00
Marc Khouzam
2c22479c9e Bug 435309 - Use the shared license file scheme for CDT
This means that:
- feature.xml files now make a reference to the shared license plugin
      using version 0.0.0
- feature.properties files no longer have the text for the license
- license.html and epl-v10.html files are removed as they are part
      of the shared license plugin
- build.properties files no longer reference removed files
- the main pom.xml file references the license repository

Change-Id: Ibd880480de3a07597084d44cce7b822903509079
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/27250
2014-05-26 10:03:45 -04:00
Andrew Eidsness
e0682a2412 Shouldn't use new SWT.Shell()
I noticed that one case in the template engine is creating a dialog that
uses it's own instance of SWT Shell (i.e., the code contains "new
Shell()".

This patch modifies that case to use the display's active shell instead.

Change-Id: I253d6540899ce4dfef033924e27e2ddcd62ded19
Signed-off-by: Andrew Eidsness <eclipse@jfront.com>
Reviewed-on: https://git.eclipse.org/r/27278
Tested-by: Hudson CI
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
2014-05-26 09:47:24 -04:00
Martin Oberhuber
251d54056e Bug 303083 - Split out the CDT Spawner into a separate feature
This commit creates a new feature "org.eclipse.cdt.spawner"
which is included by the cdt.platform feature and only holds the
CDT native code fragments along with a new bundle named
"org.eclipse.cdt.core.spawner" as their new fragment host.

This new feature and bundle provide access to the CDT PTY, Spawner,
Windows Registry Accesss and Tasklist capabilities without having to
depend on the full cdt.core bundle.

Nothing changes for existing consumers of the cdt.platform feature, or
cdt.sdk feature (the new feature and bundle are installed and pulled
in automatically). Consumers who only installed the org.eclipse.cdt
bundle in the past will now also need the new spawner bundle.

Change-Id: I3943b35948d1bba4771f715c5e700570aa2ae125
Signed-off-by: Martin Oberhuber <martin.oberhuber@windriver.com>
Reviewed-on: https://git.eclipse.org/r/27225
Tested-by: Hudson CI
Reviewed-by: Anton Leherbauer <anton.leherbauer@windriver.com>
Tested-by: Anton Leherbauer <anton.leherbauer@windriver.com>
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
2014-05-26 09:38:09 -04:00
Martin Schreiber
0f6719cc71 Bug 435606: Using BigInteger instead of Integer makes it possible to
write unsigned variables (UINT32 and UINT64) in the binary format.

Change-Id: Ic9de8470cef10469eae28b3c99ced1d9d3027685
Signed-off-by: Martin Schreiber <m.schreiber@bachmann.info>
Reviewed-on: https://git.eclipse.org/r/27252
Reviewed-by: Teodor Madan <teodor.madan@freescale.com>
Tested-by: Teodor Madan <teodor.madan@freescale.com>
2014-05-26 04:30:47 -04:00
Marc Khouzam
5c919ac834 about.html does not get included due to missing backslash
Change-Id: I27bb60faf0b50733c3fc0cc830a081dcb10816e7
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/27116
Tested-by: Hudson CI
Reviewed-by: Jeff Johnston <jjohnstn@redhat.com>
Tested-by: Jeff Johnston <jjohnstn@redhat.com>
2014-05-22 11:57:01 -04:00
Marc Khouzam
60f83b7522 Unnecessary Bundle-RequiredExecutionEnvironment for documentation plugin
Change-Id: If3fa4a9a134284d53f502b89cde7b8e84502196a
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/27119
Reviewed-by: Jeff Johnston <jjohnstn@redhat.com>
Tested-by: Jeff Johnston <jjohnstn@redhat.com>
2014-05-22 11:55:23 -04:00
Teodor Madan
d798bd1e53 Bug 386226 - Activate "HEX integer" rendering for DSF-GDB
Change-Id: I826902e05e186c9d96ea0a72bcda44e16339f40f
Signed-off-by: Teodor Madan <teodor.madan@freescale.com>
Reviewed-on: https://git.eclipse.org/r/27024
Reviewed-by: Marc Khouzam <marc.khouzam@ericsson.com>
Tested-by: Marc Khouzam <marc.khouzam@ericsson.com>
Tested-by: Hudson CI
Reviewed-by: Alvaro Sanchez-Leon <alvsan09@gmail.com>
Tested-by: Alvaro Sanchez-Leon <alvsan09@gmail.com>
2014-05-22 03:19:10 -04:00
Marc-Andre Laperle
18ff3be8fa Bug 430966 - Prevent StackOverflowError in Makefile editor
Change-Id: I4c9d04290d047f52d56e3f1e5bf874efc55c51cb
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/25707
Tested-by: Hudson CI
Reviewed-by: Andrew Gvozdev <angvoz.dev@gmail.com>
Tested-by: Andrew Gvozdev <angvoz.dev@gmail.com>
2014-05-21 16:40:30 -04:00