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

12180 commits

Author SHA1 Message Date
Thomas Corbat
875e21efb0 Bug 430342 - Completion of template arguments.
Change-Id: Iaf1c43ce826f6676b941689f39fc81ea5e25daa8
Reviewed-on: https://git.eclipse.org/r/29440
Tested-by: Hudson CI
Reviewed-by: Thomas Corbat <tcorbat@hsr.ch>
Tested-by: Thomas Corbat <tcorbat@hsr.ch>
2014-07-07 03:05:57 -04:00
qdagans
8649b65570 Bug 84144 - [Parser2] GCC: labels as values
Add support for GNU goto label references.

"http://gcc.gnu.org/onlinedocs/gcc-3.3.2/gcc/Labels-as-Values.html#Labels%20as%20Values
GCC extensions to C allow taking the address of labels. These addresses can be used in a goto statement where any expression of type void * is allowed:

foo:
  void* labelPtr = &&foo;
  goto *labelPtr;", comment from Andrew Niefer

Add new classes and necessary changes in existing classes to support the above.

Change-Id: I60b64957af3fdfd5463e89c2a36eea13bd280887
Signed-off-by: qdagans <anders.xb.dahlberg@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/28826
Tested-by: Hudson CI
Reviewed-by: Elena Laskavaia <elaskavaia.cdt@gmail.com>
2014-07-05 20:34:13 -04:00
Sergey Prigogin
fbca073d79 Navigate to template definition by default. 2014-06-25 15:07:34 -07:00
Sergey Prigogin
e6b392ffbc Bug 438114 - Friend function declaration is not reconciled with other
declarations
2014-06-24 20:20:54 -07:00
Sergey Prigogin
820b901b69 Cosmetics. 2014-06-24 20:17:28 -07:00
Marc-Andre Laperle
1f29931ff1 Bug 437067 - Hide read-only references in Search view
Change-Id: I0f6a864342d54dd3bae6563eba6ce72273d99647
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/28287
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Hudson CI
2014-06-24 15:34:59 -04:00
Alena Laskavaia
a287a76c34 Bug 431026 - NPE while checking Assembler resources (*.S - files)
Change-Id: I1a3454ff2592137345c3a40b4acf7b2ec3049724
Signed-off-by: Alena Laskavaia <elaskavaia.cdt@gmail.com>
Reviewed-on: https://git.eclipse.org/r/28724
2014-06-21 10:58:22 -04:00
Sergey Prigogin
852659fa1d Bug 437630 - NPE in Organize Includes with a lambda expression 2014-06-17 15:18:24 -07:00
Sergey Prigogin
2163d2af4c Fixed a ClassCastException. 2014-06-17 15:17:05 -07:00
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
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
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
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
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
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
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
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
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
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
Sergey Prigogin
dc63d60efd Bug 435340 - Add Include inserts an extra blank line 2014-05-20 14:12:41 -07:00
Sergey Prigogin
7e64f6a132 Cosmetics. 2014-05-20 14:12:32 -07:00
Sergey Prigogin
5b6571f5d9 Bug 435235 - Automatically close opening brace of list initializer 2014-05-19 18:52:07 -07:00
Sergey Prigogin
c91dfd42d0 Bug 435233 - Wrong parameter is highlighted in a function call with a
list initializer
2014-05-19 18:51:26 -07:00
Sergey Prigogin
9a96a017e5 Cosmetics. 2014-05-19 17:49:41 -07:00
Sergey Prigogin
6b3e138ff5 Cosmetics. 2014-05-19 11:22:38 -07:00
Martin Schreiber
38863b65d7 Bug 434852: If the original project of the editor input file is a non
accessiable project, it is a project rename scenario and the move can be
handeled.

Change-Id: Ibb718ea3310c3dfc40fa31d79c588371f78d6c91
Signed-off-by: Martin Schreiber <m.schreiber@bachmann.info>
Reviewed-on: https://git.eclipse.org/r/26815
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Hudson CI
2014-05-19 13:38:45 -04:00
Nathan Ridge
17900f3f59 Bug 409882 - Visibility of lambda with class owner
Change-Id: Ia16221cb441de535cad0b22786e2878e084fca3d
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/26783
Tested-by: Hudson CI
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-05-18 15:14:17 -04:00
Nathan Ridge
10f84fd94b Bug 414826 - Avoid NPE caused by null IValue
Change-Id: Ifef0b408c7572ae965de366b7037b6737622bdda
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/26782
Tested-by: Hudson CI
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-05-18 15:13:08 -04:00
Nathan Ridge
438a42b367 Bug 418996 - Guard against infinite recursion in
AbstractCPPClassSpecializationBases.getBases()

Change-Id: I84d56a12d4a2133d93bf54f5a70a1e801b981878
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/26781
Tested-by: Hudson CI
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-05-18 15:12:21 -04:00
Nathan Ridge
92e5739ba6 Bug 434467 - Fix NPE caused by incorrect caching of enumerators
Change-Id: I7b0df5ea7d7b89ac89c42e8dc4091b3d5bf944f2
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/26696
Tested-by: Hudson CI
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-05-16 16:23:35 -04:00
Sergey Prigogin
80c32be4b6 Adjusted selection of the most representative index file variant for
C/C++ editor.
2014-05-16 11:10:53 -07:00
Sergey Prigogin
62776c27d6 Cosmetics. 2014-05-16 10:45:37 -07:00
Nathan Ridge
a7b73d776c Bug 399149 - Syntax-coloring for class-virt-specifier
Change-Id: I13bd4b3fcc82e1ce0339f2a357f0854f9e56bba8
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/26555
Tested-by: Hudson CI
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-05-16 01:16:02 -04:00
Sergey Prigogin
c8b14a3c3e Bug 434917 - Rename refactoring misses macro reference. 2014-05-14 20:48:23 -07:00
Sergey Prigogin
b75e994cb1 Cosmetics. 2014-05-14 20:45:09 -07:00
Nathan Ridge
2664b7c6f7 Bug 432701 - Expose the default value of a function parameter in the AST
and store it in the index

Change-Id: I4e180442bf2f2fe49d71e406a73253c6796e381b
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/26499
Tested-by: Hudson CI
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-05-14 22:49:29 -04:00