1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-07 01:36:01 +02:00
Commit graph

13159 commits

Author SHA1 Message Date
Nathan Ridge
0ade726481 Bug 509833 - Follow-up to fix propagation of the point of instantiation in ClassTypeHelper.findOverriders()
Change-Id: Ia59c361e075874dec5551803d985ed20329245da
2017-01-18 14:59:08 -05:00
Nathan Ridge
8eb4c53571 Bug 509871 - ClassCastException in EvalConstructor.computeForFunctionCall()
Change-Id: If4b7dac7a6665619f80a57ebfe83ce8749b7dd9c
2017-01-17 19:48:05 -05:00
Nathan Ridge
9c3cd51e49 Bug 509833 - Fix unsafe method call in ClassTypeHelper.findOverriders()
Change-Id: I3368d7dd22ce8e207f6363509b6830099a8f0236
2017-01-16 12:04:16 -05:00
Nathan Ridge
2a613abcd2 Bug 509733 - Open Declaration with source and target inside a macro invocation
Change-Id: I1f31a94caa0b48ba07380f28dc11ba74629b202e
2017-01-14 22:35:28 -05:00
Nathan Ridge
a72d9b4198 Bug 497500 - Display per-file indexing time for diagnostic purposes
Controlled by the org.eclipse.cdt.core/debug/indexer/activity debug option.

Change-Id: I9eceb9e72697230b51221db7b0680494fefad154
2017-01-14 22:33:42 -05:00
Nathan Ridge
fbbed5cf82 Bug 509662 - Friend function declared in header included at non-global scope
This fix is a hacky workaround. A proper fix involves fixing bug 315964.

Change-Id: I733064fe3aa0d9416854954ef3e3a8250566dac1
2017-01-10 20:55:18 -05:00
Nathan Ridge
86ab2bdefc Bug 509619 - Highlighting of pointer passed by const reference
Change-Id: Ife414e63ad7076334b7ced9d33aa9b59084caa02
2017-01-06 20:06:15 -05:00
Nathan Ridge
07780470e8 Bug 507138 - Avoid collisions between the keys of CProjectAnnotations used for statement folding
This is mostly to mitigate the effects of a bug in ProjectionViewer
(bug 509559). See the discussion in bug 507138 for details.

Change-Id: Icf36b54d6a11892f02214a168ef1c9c284478710
2017-01-05 22:23:36 -05:00
Nathan Ridge
b850913c5d Bug 509497 - ArrayIndexOutOfBoundsException in EvalCompositeAccess.getType()
Change-Id: I9f72d7b0dcf1436c2b1e0f7780556906266a11a5
2017-01-05 22:23:19 -05:00
Nathan Ridge
9cfde14e8f Bug 509496 - ClassCastException in CPPASTInitializerList.createEvaluation()
Change-Id: I9008c56a5489b6e4dbf114eddcf1900d8447bff9
2017-01-05 22:23:08 -05:00
Jonah Graham
e49517eb7c Bug 509320: Increase version dependency to current o.e.cdt.core.native
Change-Id: Ifc5af78ff92f6bf8b6b06b34fe22295aa10eb37e
2017-01-03 12:52:28 +00:00
Nathan Ridge
3f8b3f0870 Bug 508254 - Gracefully handle ProblemBinding arising during instantiation of EvalConstructor
Change-Id: Ib5c5ce10e32cb0e7b42ccf0283709295da311931
2017-01-01 18:56:51 -05:00
Nathan Ridge
94f4b03a06 Bug 508254 - Have adapter bindings for anonymous AST bindings implement ICPPInternalBinding
Change-Id: I02f035e6746aec4a937a325982033d70d711ffc7
2016-12-31 13:29:36 -05:00
Nathan Ridge
d45c9b4851 Bug 491343 - Find references with only polymorphic results
This commit also adds infrastructure for testing 'Find References'.

Change-Id: Ibe33dd00dd178587b202a9ebb1dd29315711f6fb
2016-12-26 19:43:44 -05:00
Nathan Ridge
ade410bbe9 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-26 19:43:35 -05:00
Nathan Ridge
9b3a28f334 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-21 20:16:46 -04:00
Nathan Ridge
2155b119ea Bug 470726 - Avoid name resolution resulting in PDOM bindings for class template partial specializations defined in the AST
Change-Id: I1e08c7430dd0478357867266648e02cc45eaa888
2016-12-21 20:15:21 -04:00
Nathan Ridge
5805a97600 Bug 508254 - Do not assume every field has an initializer
Change-Id: I9d6a3ba13606c8bb514598906e42cc0cc4d4d2c5
2016-12-21 20:13:45 -04:00
Nathan Ridge
1a7d4622e2 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-21 19:44:05 -04:00
Nathan Ridge
6ede80fd95 Bug 508254 - Improve handling of braced-init-lists
Also avoid several exceptions in related codepaths.

Change-Id: I528a123daff090033285f0ed930ac5b822100974
2016-12-21 19:43:03 -04:00
Nathan Ridge
36feebd088 Bug 508254 - Variable initializer that references the variable
Change-Id: Ic5b0692db297dead087e4c8479fa0c0f134554da
2016-12-21 19:41:29 -04:00
Nathan Ridge
a067fa4afb Bug 508254 - Do not allow instantiation of template with invalid non-type template argument
Change-Id: I29472ddda96631147022c4302f9e9b96a1e3d9e6
2016-12-20 20:41:30 -04:00
Nathan Ridge
94734f0fd1 Bug 508254 - Instantiation of id-expression naming static field
Change-Id: I97732a3f1ceba560e762e5f61c68a052ebceb7b5
2016-12-20 17:45:26 -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
Sergey Prigogin
52f4104080 Fixed an NPE.
Change-Id: I20e5a2c2a452159224cd8af5a3e0c434801b67cc
2016-10-26 16:46:36 -07:00