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

13276 commits

Author SHA1 Message Date
Nathan Ridge
917eecca42 Bug 455797 - Use typedef icon for alias template completions
Change-Id: Ib1448c0a94b15008e417167e75f44a54fa32b3b0
2016-12-19 14:35:59 -04:00
Nathan Ridge
9640ac4917 Bug 455797 - Show template parameter list for alias template completions
Change-Id: I138861d305a02927014eebe882065e9c7fa877c8
2016-12-19 14:35:39 -04:00
Nathan Ridge
2706699543 Bug 399147 - Make 'Find Reference' find using-declarations
Change-Id: I0183dfb9a19efdadd127e5014f101a38ad04ff92
2016-12-19 14:34:10 -04:00
Nathan Ridge
e252be5dd5 Bug 495098 - Avoid & character in function signature being treated as SWT mnemonic
In an SWT label, '&' characters are treated as mnemonics.
Some labels can contain this character as their content
(e.g. if they represent the signature of a function with
arguments of C++ reference type), so they need to be
escaped.

Change-Id: I8ca57308f5dc3fa06648ce7f76df003e76fac3b6
2016-12-19 14:29:44 -04:00
Nathan Ridge
4e7f132020 Bug 379623 - Follow includes in inactive code paths
Change-Id: Iafc03eea7443b1d58a1521071783c39bbf3cdbcb
2016-12-19 14:27:58 -04:00
Nathan Ridge
cf46cbf117 Bug 508216 - Enclosing definition for macro reference name
Compute and store in the index an enclosing definition for
macro reference names. This allows showing the enclosing
definition when such a name appears in a search result.

Change-Id: I91eee4ad80c86d7ef90c69c1436387393fca2a19
2016-12-19 14:25:22 -04:00
Nathan Ridge
e31d51988d Bug 491343 - Find references with only polymorphic results
This commit also adds infrastructure for testing 'Find References'.

Change-Id: Ibe33dd00dd178587b202a9ebb1dd29315711f6fb
2016-12-19 14:21:21 -04:00
Nathan Ridge
b4ffef7cbb Bug 508254 - Static field of enclosing class type
We previously guarded against recursion in this case, but the
result was an invalid composite value that could cause problems
down the line.

This patch avoids getting into the recursion to begin with by
skipping the processing of static fields in a case where it's
not necessary to begin with.

Change-Id: Ic3a346092bb7ad5c94cd15871110dd17ecd64886
2016-12-19 14:14:21 -04:00
Sergey Prigogin
03bcd35cdf Cosmetics
Change-Id: Id86b562ee7b2b2b2944dd25e0178d4ecb452f5a8
2016-12-17 21:49:54 -08:00
Sergey Prigogin
aca869c045 Fixed a ClassCastException.
Change-Id: Ib221d863650b5174f00e25e9dc9ff30c5870047f
2016-12-17 16:13:19 -04:00
Sergey Prigogin
0b6dfff78c Revert "Added stack trace to diagnostic messages."
This reverts commit 5f1c234b77.

Change-Id: Ic821628d828ca3b9eeed1a723f97b48a17767419
2016-12-16 21:11:44 -04:00
Sergey Prigogin
5f1c234b77 Added stack trace to diagnostic messages.
Change-Id: I4d4bc1bb6f51ec3f0cf88b13d77e6bb697146e8b
2016-12-16 20:56:14 -04:00
Sergey Prigogin
432524a9a8 Cosmetics
Change-Id: Iad960581c97caeff0e486020ee7e18fa1eb06bd4
2016-12-16 20:55:41 -04:00
Sergey Prigogin
d9a08b007e Minor performance optimization.
Change-Id: I9274509f013abda8a7e7950caf204c7398a7476c
2016-12-16 20:54:55 -04:00
Sergey Prigogin
24c71972ba Removed an obsolete TODO.
Change-Id: Ib3a7a3294d5bf5d76a91910a0cfb840fb82a797e
2016-12-15 18:06:52 -08:00
Marc Khouzam
117613d569 Update o.e.cdt.ui version for the 9.3 release.
Change-Id: Ic71e4e32d44d07c4546fa897b4a1439da22af302
2016-12-14 14:47:01 -04:00
Nathan Ridge
cee87b1757 Bug 483048 - Navigation to forward declaration of class template
Change-Id: I611b50acf1ed80f02f7ee3edae4f8f80c4dfb313
2016-12-14 13:37:23 -04:00
Nathan Ridge
e3017e7656 Bug 507974 - Open Declaration on identifier in assembly file
Since we don't have a semantic model of assembly code, just look
for a CElement with a name matching the selected identifier in the
assembly file, and search for the selected identifier in the index.

Change-Id: Ifae8e7f608ca27b06fdb4d1d9d1797c88469a6c5
2016-12-14 13:35:42 -04:00
Nathan Ridge
5b86da58ad Bug 507285 - Open Declaration for assembly editors
Currently, it only does something useful for include statements.
It uses the C model to resolve the include, much like clicking
on the include in the Outline view.

Change-Id: I4c50ff4b477721795d58f44acc5c0389c05d4768
2016-12-14 13:23:47 -04:00
Nathan Ridge
5d0e9dc625 Bug 507285 - Factor out the core logic in OpenIncludeAction into a separate class CElementIncludeResolver
Change-Id: I07e78c3bbb39e24ec7684b32177a5b4c7881b1d2
2016-12-14 13:22:41 -04:00
Nathan Ridge
56512e5af4 Bug 491298 - Include indexer markers in next/previous annotation navigation
Change-Id: I774903b894ac55b6a2721c74078466ae1d1cff3c
2016-12-13 16:38:10 -04:00
Jonah Graham
f0ba639995 Cosmetics.
Change-Id: I32e482e24ed992d8a4939f0447e540e039eb9e04
2016-12-12 23:48:16 -04:00
Nathan Ridge
ffad1908b0 Bug 508254 - Fix some more indexer exceptions
- Avoid a ClassCastException in CPPConstructor.getMemberEvaluation()
  - Fix an unsafe method call in EvalCompositeAccess.getType()
  - Emit a log message in an error case in ASTInternal.getDefinitionOfBinding()
  - Emit a log message in an error case in CompositeValue.setSubValue()

Change-Id: I5932c8b661e31eff32c2bb138efdb3029894d0ab
2016-12-11 16:14:53 -05:00
Nathan Ridge
f47edd44e3 Bug 470726 - Avoid name resolution resulting in PDOM bindings for class template partial specializations defined in the AST
Change-Id: I1e08c7430dd0478357867266648e02cc45eaa888
2016-12-11 04:16:12 -05:00
Nathan Ridge
688b358746 Bug 508254 - Do not assume every field has an initializer
Change-Id: I9d6a3ba13606c8bb514598906e42cc0cc4d4d2c5
2016-12-11 05:12:15 -04:00
Nathan Ridge
db9dea4408 BUg 508254 - Move the recursion protection set in CPPVariable.getInitialValue() to EvalUtil.getVariableValue()
This catches recursion along paths in EvalUtil.getVariableValue() that don't
go through CPPVariabble.getInitialValue().

The patch also improves caching in EvalInitList.

Change-Id: I343bbf1bb7493b2c83771de3659209e5d512fd80
2016-12-11 05:11:47 -04:00
Nathan Ridge
cf6c25ae47 Bug 508254 - Improve handling of braced-init-lists
Also avoid several exceptions in related codepaths.

Change-Id: I528a123daff090033285f0ed930ac5b822100974
2016-12-08 15:13:33 -04:00
Nathan Ridge
63e6688940 Bug 508254 - Variable initializer that references the variable
Change-Id: Ic5b0692db297dead087e4c8479fa0c0f134554da
2016-12-08 15:12:54 -04:00
Nathan Ridge
0d02aea069 Bug 508254 - Do not allow instantiation of template with invalid non-type template argument
Change-Id: I29472ddda96631147022c4302f9e9b96a1e3d9e6
2016-12-07 17:25:40 -04:00
Nathan Ridge
a93b94b822 Bug 508254 - Instantiation of id-expression naming static field
Change-Id: I97732a3f1ceba560e762e5f61c68a052ebceb7b5
2016-12-06 20:41:42 -04:00
Nathan Ridge
3a4f8c1ac7 Bug 506672 - Use ICPPEvaluation to evaluate all unary and binary C++ expressions
We were already using it for expressions whose operands didn't evaluate
to a number, but that missed expressions with enumeration operands (which
can call an overloaded operator).

Change-Id: I6f6e4ff3ba3c72db70ac6f8929473b065f2d758f
2016-12-03 21:21:50 -04:00
Nathan Ridge
d48ebf5d25 Support aggregate initialization in EvalTypeId
The patch also improves the propagation of the point of instantiation
in CompositeValue.

Change-Id: I01d508ab901efeb18a5e6fdb144853b70e1fc829
2016-12-03 21:20:48 -04:00
Sergey Prigogin
dccd99c843 Code cleanup
Change-Id: If94553894586f8745fff9952f3648160110ba609
2016-11-29 20:16:01 -05:00
Sergey Prigogin
83bd6f7ed4 Bug 508338 - Friend class declaration hides the real one in outer
namespace

Change-Id: I3808c74b5b64505b07b8bb1e1a482d7a4c292dfe
2016-11-29 08:32:21 -08:00
Sergey Prigogin
2236ada9fd Made some methods final.
Change-Id: I2100ee93f41df7f4815c22a348a22f823422031d
2016-11-29 10:47:09 -05:00
Sergey Prigogin
83cac8d70e Cosmetics
Change-Id: Iafd277ea476c66fd0639364e4040a3b91cda7a2a
2016-11-29 02:30:32 -04:00
Sergey Prigogin
64cf0c8c51 Cosmetics
Change-Id: I25ee17f987444b59fab219ca05d46a6fa0bf0ed3
2016-11-28 17:42:00 -08:00
Sergey Prigogin
352f47bc82 Improved Remove Unused Declarations code reducer
Change-Id: I6d7cdea0fe85df14fe64ea7bd57b88ac27f4f9df
2016-11-20 12:42:15 -08:00
Sergey Prigogin
a0a959db9d Fixed a misleading dialog title
Change-Id: Icb35ec6128d0b961ab2dc0f8b080466b6a739d10
2016-11-18 13:00:30 -05:00
Marc Khouzam
8cf5ed53f2 Update version to 9.3.0
Change-Id: Ic953ccc5d38ff3661ca44de21ed8c4b7dad5b246
2016-11-15 20:32:51 -05:00
Marc Khouzam
bece8fc16c Revert "Update plugin version and fix @since tag"
Commit 6335a5c2ba reverted
a previous commit which made the changes being reverted
here unecessary.

This reverts commit 896eba55c5.

Change-Id: I890a67513b35df7708f9fc33c0be3e879fdb9e0e
2016-11-15 21:05:03 -04:00
Jonah Graham
03b701c9a5 Bug 494246: prepare command line arguments properly for Windows GDB
Includes splitting out and expanding CommandLineArgsTest
from LaunchConfigurationAndRestartTest.

Change-Id: I19fa97a847d908c1c780ca767cf688f26a51d684
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
2016-11-15 16:59:57 -04:00
Jonah Graham
b4cc24e31e Cosmetics
Change-Id: I8036046d2e755de2e77ef5bf6502008d4ada0e49
2016-11-15 04:17:06 -04:00
Marc Khouzam
334777eb6e Update version to 9.2.0
Change-Id: I36ad4218b20b8ea70584c89f5be45c757bf4c714
2016-11-14 23:50:05 -05:00
Sergey Prigogin
3797ebcc83 Made template argument classes final.
Change-Id: I06d532e6b4be8f3684e7d3e1470d10df1985db57
2016-11-14 20:28:53 -08:00
Sergey Prigogin
08eb54b46d Bug 507511 - Template function resolution problem when using index
Change-Id: I7e75a188f8902c6b21f2c96660cc68fcebfdd0db
2016-11-14 20:24:15 -08:00
Marc Khouzam
39c781f81a Bug 497166: Support the user using the 'run' command in the gdb console
This commit introduces a PersistentPTY.  By using it, we now allow the
user to restart the process from the GDB console (by pressing 'run').
In this case, the I/O will continue using the PersistentPTY.

Previously, the PTY would have been closed, and GDB would fail to
restart the process because it would fail to use the closed PTY.

Change-Id: I395b402e297a2043af8fce33df163eddef9e6c7a
2016-11-14 15:30:23 -05:00
Marc Khouzam
2cbf669a38 Adding API filter for default method
Change-Id: I3a7441ce7820976b663ba5711e848761c8d41f66
2016-11-13 22:10:24 -05:00
Doug Schaefer
03051c91ab Implement Qt build tab for the launch config dialog.
Make sure Core Build handles the properties set by these tabs
correctly. A bunch of string externalization too.

Change-Id: I54a61b4d2520a0952c43608169747e792826062e
2016-11-11 16:24:40 -05:00
Dominic Scharfe
56c496ba5a Bug 507148. Fixed opening/switching to editor.
- Reuse the TU from the open editor if present, otherwise load it from
workspace
- Added test plugin org.eclipse.cdt.codan.checkers.ui.test

Change-Id: I725b7b8e462ffba39dd6c9a828ab72dd58f86b1f
Signed-off-by: Dominic Scharfe <dominic.scharfe@coseda-tech.com>
2016-11-11 11:18:55 +01:00