1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 06:32:10 +02:00
Commit graph

13510 commits

Author SHA1 Message Date
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
Nathan Ridge
6c4576281d Bug 506170 - Compute correct associated namespaces for enumeration type
Change-Id: I60ddfd1f98b6f32ad785e8d881704356aff18043
2016-11-04 03:00:47 -04:00
Nathan Ridge
8244bcd33d Bug 506170 - Evaluation of dependent conditional expression
Change-Id: I59355bb40e84662554be76929ba9f9618aec7dba
2016-11-04 03:00:04 -04:00
Doug Schaefer
b6d218a652 Fix no binaries issue with Core Build.
When a second config is added, the binary parsers wasn't getting
reset so the new binary parser wasn't getting called.

Also cleans up the reset to remove the close that happens. Not sure
why it was needed so will keep an eye out for new bad behavior.

Change-Id: I0b4cb628829b138e2ceb3f08833649b90255648c
2016-11-02 16:15:47 -04:00
Sergey Prigogin
6335a5c2ba Revert "Bug 483602 - Implement deletion of elements from Outline view"
The Delete operation doesn't properly call
TextEditorAction.validateEditorInputState() and as a result doesn't work
in version control environments that keep unchanged files read-only.
Another problem is that Ctrl+Z doesn't trigger Undo when the Outline
view is active. When the Delete element action is reintroduced it should
be made to behave the same way as in JDT, e.g, display a prompt before
deletion and be bound to the Delete key.

This reverts commit f034a69fb7.

Change-Id: I6d37f5aaea1770143fbf84288068794430a5b0e0
2016-10-31 14:59:53 -07:00
Marc Khouzam
896eba55c5 Update plugin version and fix @since tag
Change-Id: I60463177469d823d3ce69a4ed0612291ca542fc6
2016-10-31 10:42:13 -04:00
ljyanesm
f034a69fb7 Bug 483602 - Implement deletion of elements from Outline view
Adding the delete refactor to the refactor context menu in the Outline
View.

Change-Id: I208078d2200853389bf4eb114756cf4e9b719134
Signed-off-by: ljyanesm <yanes.luis@gmail.com>
2016-10-30 22:59:32 +00:00
Nathan Ridge
b6bda6636c Bug 506728 - Ref-qualified conversion operator
Change-Id: Ic5e1650bdd1235fd953ab79e44f801c0b52badf3
2016-10-29 00:45:32 -04:00
Sergey Prigogin
4fa9706ea8 Cosmetics.
Change-Id: Ibd8c8ac950c55c02259e9dfacb0649dfca8820dc
2016-10-28 14:52:56 -07:00
Sergey Prigogin
d69b51acc8 Bug 506668 - Name resolution problem with namespace alias in macro
expansion

Change-Id: I15a0198c588cbb0e044392f47367679bb90180a6
2016-10-28 14:01:38 -07:00
Sergey Prigogin
64bd99d429 Improved diagnostic messages in tests.
Change-Id: I031061fa7ce8c7cf5af76f229ff9b93c411d1be3
2016-10-28 10:22:51 -04:00
Nathan Ridge
5da005cf3a Bug 397296 - Add missing keywords to the list of keywords for which completion is offered
Change-Id: I3c08e736ec5ce8ef7a4c8954cd4e9548bf079d25
2016-10-28 03:35:34 -04:00
Nathan Ridge
f229ec9e44 Bug 506170 - Calculate sizeof(double) correctly
Change-Id: Ie0b4767a81ed529e827d1b9decd4d065225e8e5b
2016-10-27 00:52:24 -04:00
Nathan Ridge
e7e66605f2 Bug 395571 - Show name of nesting type when printing names of nested types in completions
Change-Id: I2fc191403a6ead68d30b99e427a005109355baad
2016-10-27 00:52:01 -04:00
Sergey Prigogin
35687baf43 Revert "Bug 402498 - Apply declaredBefore() filtering to index bindings"
This reverts commit fbccef3ff1.

Change-Id: I2b899750815200068dbe27b097f108b237d02447
2016-10-26 22:31:46 -04:00
Joseph Henry
b741fb552a Bug 417193 - Incorrect Symbol <X> could not be found
Fixed bug with mixing #pragma once with standard include guard.

Change-Id: Ic418ab290f9d322d943bab56625ce1f0fe6b2aee
Signed-off-by: Joseph Henry <joseph.henry@sas.com>
2016-10-26 21:18:08 -04:00
Sergey Prigogin
e3fbd7c4ca Removed redundant qualifiers.
Change-Id: Ife57237b66199ac753c804141be1d77b6188caf6
2016-10-26 16:47:17 -07:00