1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-18 14:35:23 +02:00
Commit graph

13182 commits

Author SHA1 Message Date
Nathan Ridge
bbbf9c7059 Bug 511108 - Do not attempt to resolve the name in an EvalID if the name owner is still dependent
Change-Id: I63dcfa4413569554f30be0c6a94c2b1691515aa4
2017-02-09 17:35:13 -05:00
Nathan Ridge
0eb29c397d Bug 510834 - Propagate substitute failure in EvalID.instantiate() with field owner
Change-Id: I27088b7da18f7fe52d77bd669e32b225a1e99d21
2017-02-09 15:02:52 -05:00
Sergey Prigogin
810257caee Bug 511871 - CContentAssistProcessor.createContext may leak index lock
Change-Id: I828c94484c7b1594ba72551b80cd5ed6e6a8576c
2017-02-07 18:52:14 -04:00
Nathan Ridge
01ead0227a Bug 510788 - Syntax coloring for template arguments in function template specialization
Previously, the arguments shared the color of the template-name.
Now, the arguments get their own colors.

Change-Id: I27af4146717a19095f1ac22188eedb8a71d9466c
2017-02-04 14:34:50 -05:00
Nathan Ridge
aeb39d6352 Bug 510706 - Handle UniqueType in SignatureBuilder.marshalType()
Change-Id: I3686e3c32cacbcbad299de333eee32241a4697a5
2017-02-04 14:34:29 -05:00
Nathan Ridge
4e0e816a6a Bug 510665 - User-defined literal operator in namespace
Change-Id: Idb93eac23caa16870040cd4092f24a4a02563251
2017-02-02 23:51:00 -05:00
Nathan Ridge
cbe8e1f3cf Bug 497190 - Do not use ParameterGuessingProposal at all when parameter guessing is disabled
Change-Id: I9feda3d365eeb935296adbc7144b0f504017f87a
2017-02-01 11:57:04 -05:00
Nathan Ridge
759a5d9a8e Improve the propagation of the point of instantiation in CompositeValue
Change-Id: Ie874513e0dd9f22b20d40756b895303bd89a8ad1
2017-01-31 20:51:30 -05:00
Nathan Ridge
db59f80812 Bug 483824 - Inline namespace reopened without inline keyword
Change-Id: I48a066e6572e92b4fee90a8faa532469ea3c12e2
2017-01-31 20:51:18 -05:00
Nathan Ridge
1703112285 Bug 510722 - Handle a null AST in ExpandSelectionJob and ControlFlowGraphView
Change-Id: Iafd1b9a32833fb67554902d13955023c149a132e
(cherry picked from commit d45ff124e3)
2017-01-28 14:42:11 -05:00
Nathan Ridge
0dd5bb0f65 Bug 510484 - Restore the recursion protection set in CPPVariable.getInitialValue()
The set was moved to EvalUtil.getVariableValue() in bug 508254, but this
left some paths unprotected. This restores the set to
CPPVariable.getInitialValue() (while keeping the EvalUtil one too).

Change-Id: I4a579720f4bc23d41e50c484649a73c29698373d
2017-01-27 18:45:10 -04:00
Nathan Ridge
1b164b5d87 Bug 509186 - Require an exact match for help proposals when providing context information
Change-Id: I06ccd65a0304921ebf2adbd556a89c8685237a8a
2017-01-25 20:03:49 -04:00
Nathan Ridge
07ca5174d5 Bug 72391 - When completing a function, do not insert parentheses if they are already present
Change-Id: Ia4beb5e7ee288c48f2dbde45b1f34a562b939cab
2017-01-25 20:03:25 -04:00
Nathan Ridge
81cbe87666 Bug 391439 - Do not do replacement for help proposal with context information style
Change-Id: I4d8988e9601e1f1b9722830b61cbf2d4c564a4cd
2017-01-25 16:50:46 -05:00
Doug Schaefer
14b07f490c Bug 510987 - Properly support PIE executables as build output
When checking whether gathering the build output from a
CBuildConfiguration, if a binary is a shared library and is an
ELF file, dig deeper and see if it has an INTERP section in the
program header. That tells us it's actually a PIE executable and
add it to the list.

As a rider to this bill, improve the error message when a Qt install
can't be found for a given toolchain/target.

Change-Id: I8fd0bf2d204e9425b02916d7b17f4309a5ad9dd5
2017-01-25 09:45:36 -05:00
Nathan Ridge
7023f59741 Bug 456293 - Completion of destructor name
Change-Id: I53422b1daf693e8ab6c0ad64857e8b07c970444c
2017-01-24 16:23:53 -05:00
Nathan Ridge
0a23da7e56 Bug 509182 - Completion of class type in using-declaration
Change-Id: Iacd0ab4bfead2df31cddc78840853eb697139b02
2017-01-24 16:10:07 -05:00
Nathan Ridge
d02a030f03 Bug 509191 - Do not create parameter guessing proposal if we know we are not calling the function
Change-Id: I7e45501707e0f58ed6d8745506a3519e29c0763a
2017-01-24 16:05:32 -05:00
Nathan Ridge
72fe8bfa97 Bug 510010 - Uniform initialization in template argument
Change-Id: I55853735e44fdf6240bebb53f2e7ab1a6885b273
2017-01-24 11:04:14 -05:00
Nathan Ridge
1a627cc928 Bug 509734 - Cross-project references to template instances
Change-Id: I14ed61d2f709f615ba74501e70ac4ddc0db3d05a
2017-01-23 23:44:49 -05:00
Doug Schaefer
f810db333f Bug 510885 Fix case where two env vars try to prepend
The env var operation processer always turned the resulting operation
into a replace, even if it was two prepends. That kills the actual
prepend operation. In this case, keep it as a prepend. Also fix the
append case this way.

Unfortunately this is still broken in other multiple operation
cases, like appending then prepending.

Change-Id: Ib158317f16d025a479201745159a2aa3c1335e25
2017-01-23 16:45:58 -05:00
Nathan Ridge
9c8ec378db Bug 509731 - Completion between empty parentheses in simple-type-constructor-expression
Change-Id: Ibe87a0fdfb0e7c8dd1a1392bc9643bc03ac73c38
2017-01-22 13:46:13 -05:00
Joseph Henry
785f442ee1 Bug 495423 - Indexer produces a erroneous "Symbol could not be found"
Added catch all condition to ConditionalExpression type evaluation where
both positive and negative types are the same.

Change-Id: I990b502dfce8ef71c753ac188e072de312b7ea9f
Signed-off-by: Joseph Henry <joseph.henry@sas.com>
2017-01-21 15:19:14 -05:00
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