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
f247b3141c Bug 509798 - Use CElementHyperlinkDetector for assembly editors
Change-Id: Ie9bf16f00f8ae8c3f5cd1a51c441392fed4fc491
2017-01-06 21:03:49 -04:00
Nathan Ridge
6cbac5a454 Bug 509797 - Have CElementIncludeResolver.resolveInclude() leave error handling and disambiguation to the caller
Change-Id: Iacb4bf8de13fcdd0736470676ac3c15f9628fc71
2017-01-06 21:00:54 -04:00
Sergey Prigogin
7bfdf9a591 Bug 510054 - Unrecoverable index file corruption
Change-Id: Iba386baf2c62f10044c4ffc1f399823a94aacf84
2017-01-06 13:58:46 -08:00
Sergey Prigogin
fe3a787663 Bug 510054 - Unrecoverable index file corruption
Change-Id: I5ee83d637afd28388724a7402371fddb41e12c98
2017-01-06 16:08:23 -05:00
Sergey Prigogin
b63342f10e Generification.
Change-Id: I0bed457d9be84d7585bc7eca8e2d591464b26246
2017-01-05 12:15:54 -08:00
Thomas Corbat
0514094d09 Bug 292236 Fix since tags
Change-Id: I8c61ef66dd2c5b22cd74934240fabdcad66ca91a
Signed-off-by: Thomas Corbat <tcorbat@hsr.ch>
2017-01-05 11:20:28 -05:00
Thomas Corbat
b218771722 Bug 464498 - sizeof...() operator formatting exception
Fix for exception when formatting sizeof...

Change-Id: Ibe228ee5566b9155e1e86853506f3ee516d05e7a
Signed-off-by: Thomas Corbat <tcorbat@hsr.ch>
2017-01-05 14:43:49 +01:00
Sergey Prigogin
473c5c8ff1 Bug 509898 - CPPSemantics.isReachableFromAst is slow and is causing UI
freezes

Added caching to the isReachableFromAst method.

Change-Id: Ifb321f0ffde5a3068001711be222d8dadc0990cc
2017-01-04 19:37:27 -08:00
Sergey Prigogin
484895faea Cosmetics.
Change-Id: I5a00dc0fcab3920f190804a37ed9cab5162a437c
2017-01-04 17:24:06 -08:00
Nathan Ridge
ecc4a6766e 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-03 16:29:44 -05:00
Nathan Ridge
cc59253516 Bug 292236 - Consider using-declarations when determining accessibility for content assist
Change-Id: Id6d04b67f3c2c7e3392ba09222f4242fbb66b342
2017-01-03 17:28:08 -04:00
Thomas Corbat
b9baf5b478 Bug 509150 - Formatter fails on nested template IDs
Fix for exception in deeply nested template IDs
+ test

Change-Id: I0c158599c5b8c974823a400251d76ff441b795f3
Signed-off-by: Thomas Corbat <tcorbat@hsr.ch>
2017-01-03 08:31:23 -04:00
Jonah Graham
425e72de58 Bug 509320: Increase version dependency to current o.e.cdt.core.native
Change-Id: Ifc5af78ff92f6bf8b6b06b34fe22295aa10eb37e
2017-01-03 07:30:40 -04:00
Nathan Ridge
768354b4d4 Bug 509619 - Highlighting of pointer passed by const reference
Change-Id: Ife414e63ad7076334b7ced9d33aa9b59084caa02
2016-12-30 14:00:14 -04:00
Sergey Prigogin
b6c2d930f4 Bug 509774 - StackOverflowError in IndexCPPSignatureUtil.getSignature
Change-Id: Ied4755f3bb3013460aae2584c3941b606102e55b
2016-12-29 20:06:08 -08:00
Nathan Ridge
526f11aabd Bug 509497 - ArrayIndexOutOfBoundsException in EvalCompositeAccess.getType()
Change-Id: I9f72d7b0dcf1436c2b1e0f7780556906266a11a5
2016-12-29 19:22:17 -04:00
Nathan Ridge
74850afc13 Bug 509496 - ClassCastException in CPPASTInitializerList.createEvaluation()
Change-Id: I9008c56a5489b6e4dbf114eddcf1900d8447bff9
2016-12-29 18:21:03 -05:00
Nathan Ridge
19ce7cc137 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
2016-12-29 19:17:08 -04:00
Sergey Prigogin
a5fb52baa3 Bug 509769 - ASTInternal.getDefinitionOfBinding() called for binding of
type ... errors in the log

Have CPPAliasTemplate and CPPAliasTemplateInstance implement
ICPPInternalBinding.

Change-Id: Ibffe6d1baa29dcfe6566de42ec51a3274b893957
2016-12-29 10:52:27 -08:00
Sergey Prigogin
216bc162a4 Bug 509749 - Find References doesn't find a reference to a function
Change-Id: Id90a80e234638b590266a8671dd1bf13178e0f94
2016-12-29 09:59:36 -08:00
Sergey Prigogin
63d3ab9cbe Cosmetics
Change-Id: I098a9c0187c09a203d009a44d73338fdb6308568
2016-12-29 02:52:17 -04:00
Sergey Prigogin
5003622cbf Cosmetics
Change-Id: I32405afb8267377b8bf0465bbd8bdd46c8e8839d
2016-12-29 02:51:24 -04:00
Sergey Prigogin
a43f45e711 Fixed an NPE.
Change-Id: Idf90e24c4ca2ac0f63c8ae7a1cc1531f42f6e566
2016-12-28 11:43:52 -08:00
Sergey Prigogin
88f0688276 Cosmetics
Change-Id: Iff79df38f9281dcfed474f67d576de9d1e0ee6f4
2016-12-27 19:23:42 -08:00
Sergey Prigogin
d8ee90b27b Added a missing isStatic check
Change-Id: I7d66802dbd9141328c555141e97fde1083c1e0e1
2016-12-27 19:22:49 -08:00
Sergey Prigogin
6fbe7991c2 Fixed Organize Includes to not insert a large number of system headers
for "using std::swap;"

Change-Id: I28646c7dbca2c9f0ad5ba1e9b670d07bad3499c6
2016-12-25 01:14:25 -05:00
Nathan Ridge
88e62433f5 Bug 508254 - Gracefully handle ProblemBinding arising during instantiation of EvalConstructor
Change-Id: Ib5c5ce10e32cb0e7b42ccf0283709295da311931
2016-12-23 14:05:36 -04:00
Nathan Ridge
64033dea4c Bug 508254 - Have adapter bindings for anonymous AST bindings implement ICPPInternalBinding
Change-Id: I02f035e6746aec4a937a325982033d70d711ffc7
2016-12-22 19:00:18 -04:00
Sergey Prigogin
19d356b95e Cosmetics
Change-Id: I2bb2c3a4d9621491da5f1b51b7f0c416713e262b
2016-12-20 11:56:10 -08:00
Nathan Ridge
659ff8c4a7 Avoid EvalFunctionCall storing the evaluation for the implicit 'this' twice
In cases where the function argument was an EvalMemberAccess with an
ownerEval storing the evaluation for the implicit 'this', the field
EvalFunctionCall.fImplicitThis was duplicating this storage, leading
to exponential space usage in chained method calls.

Change-Id: I56e775143b47a3a7f986c2d86312f122c2d4bcff
2016-12-19 14:41:38 -04:00
Nathan Ridge
3f3b8b2ee7 Remove the redundant ISerializableExecution interface
Change-Id: If7b2fdcf372685c9a251d92e6e24ed40188e449a
2016-12-19 14:41:20 -04:00
Nathan Ridge
4405ae2580 Remove the redundant ISerializableEvaluation interface
Change-Id: Ia5927b91f8aedd9f24edfa619474ca5e556050da
2016-12-19 14:40:41 -04:00
Nathan Ridge
05625c43cf Fix a bug in the indexer's post-process
Some of the PDOMNode initData() methods clobbered each other
by overriding each other. Fixed by renaming relevant ones
to initConstructorData().

Change-Id: Ib290dcd861d6aff5466520886bc3c5433b4a269b
2016-12-19 14:40:07 -04:00
Nathan Ridge
1628d11e7e Bug 395562 - Completion of static members after class qualifier
Change-Id: I0142547adae9cca8245dfeead065f45ff30a878e
2016-12-19 14:37:14 -04:00
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