1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-05 08:46:02 +02:00
Commit graph

24518 commits

Author SHA1 Message Date
Sergey Grant
93438cade8 Minor code cleanup.
Change-Id: Id546bda87390aa7501b19ce22b3835858df09e51
Signed-off-by: Sergey Grant <sergey.grant@me.com>
2015-12-03 18:43:41 -05:00
Sergey Grant
8360f715eb Bug 474648 - Wrong arguments are passed to a program in debug mode
Change-Id: Ie9ab74e0142c10ad43891febf910e2fb49b2ec61
Signed-off-by: Sergey Grant <sergey.grant@me.com>
2015-12-03 14:43:31 -08:00
Doug Schaefer
8d898be364 Add command an UI to reload the QML Analyzer.
This is just a temporary thing while we're developing it.

Change-Id: Id83fac1fa22f451ead2de8493a4c7457320b8008
2015-12-03 12:09:47 -05:00
Alexander Kurtakov
2df732fe9a autotools: Custom pde.prefs for autotools.ui.tests.
Main reason is to ignore warning about not exported packages which
doesn't make sense for tests bundles at all.

Change-Id: I99ceeb8e7b5c363e89c697655e7782c7c929405f
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2015-12-03 12:35:51 +02:00
Alexander Kurtakov
77c5c4d13f autotools: Doc bundle shouldn't be Java project.
This removes all kind of warnings regarding BREE and etc.

Change-Id: I62851092e22b135dc2e921a61281f3f2fc0346e7
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2015-12-03 12:31:57 +02:00
Alexander Kurtakov
425a843061 autotools: Saner handlers.
Old IActions were just wrapped in handlers which created insane amount
of interactions. This is one idea better by moving the implementations
in the handlers themselves.

Change-Id: Ieb7fc465c8a23af09cb6a3d809f157289c65d2ae
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2015-12-03 04:25:45 -05:00
Alexander Kurtakov
e01d886f1e autotools: Bin dead code in property pages.
Removing unused code, making methods private to make it obvious when no
longer used (uncovered few cases), delete commented code and remove
methods that were simply one line invoking some method as they don't
create anything more but pollution.

Change-Id: I9aa0feedaedeb6509fe27772b1015ec953efa9e8
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2015-12-03 10:35:51 +02:00
Doug Schaefer
f1a21f5c64 Bug 481126 - Hook up QML content assist to tern.js-based analyzer
Also renames Activator.

Change-Id: I58161a40b0caa2930e4fb2a5b2a70748fbe552ae
2015-12-02 22:23:16 -05:00
mazab
241a60fe8a Bug 438549 Add mechanism for parameter guessing.
Change-Id: Ib348e401932a9119185dbab8ecacaf80fd3e17ff
Signed-off-by: mazab <mohamed_azab@mentor.com>
2015-12-02 19:14:42 -05:00
Alexander Kurtakov
e636b977a9 core.tests: Ensure zipFile is closed.
Try-with-resources to ensure everything is properly closed.

Change-Id: I5c0d286b926a7ff86d48f943347929de03de5f0e
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2015-12-02 22:58:45 +02:00
Alexander Kurtakov
375b162ea2 autotools: Make tests fragments.
This allows direct access to everything in the bundles and doesn't
require exporting the packages.
Update test to directly call methods.

Change-Id: I58ecdb68ba5058caf6c7baaa3ff22eb539d296cd
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2015-12-02 14:03:13 +02:00
Alexander Kurtakov
e061d97881 autotools: Sanitize activators.
Reduce coupling by changing UI bundle to use UI activator and drop UI
getters (e.g. workbench, window, shell) from the core bundle.
Also remove other unused methods.

Change-Id: Ida510d5a0e991c08332a998aefaba5843743172a
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2015-12-02 04:59:32 -05:00
Sergey Prigogin
77c74a26ca Bug 481070 - Improved an error message.
Change-Id: I7f5e18d723b4ba7afeff757252a50b00f48a6ac6
2015-12-01 11:09:34 -08:00
Doug Schaefer
68b8c98473 Start to hook up tern-qml to Java and port some tests.
Change-Id: Ibee411855ffc78e1c183a6c845072ab1eac2b7df
2015-12-01 10:53:43 -05:00
Alexander Kurtakov
7f30fb8efa cosmetics: Autotools core bundle cleanups.
Various improvements:
* Remove useless comments
* Remove unused methods
* Use String.isEmpty
* Multi-catch


Change-Id: I5d4e6ca5d4bcc925aad4db5c47f82d5d51d24522
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2015-12-01 08:08:05 -05:00
Alexander Kurtakov
ca3aa5de95 autotools: Cosmetics.
Various small readability improvements in autotools.ui bundle:
* Remove useless comments
* Remove methods merely calling super().
* Use SelectionAdapter when only one method of SelectionListener
implemented
* Multi-catch exceptions
* Specialize return types to reduce casting after that
* Remove commented code
* Remove unused methods
* Use String.isEmpty



Change-Id: Iacda4094ee8b3bf80e1509cc3b39f55b6fcb96c9
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2015-12-01 13:09:03 +02:00
Sergey Grant
85b481a99a Bug 481070 - Parameter completion doesn't work inside lambda
Change-Id: I32b0cf54dd349e04fddca17f4141e7fee06f2562
Signed-off-by: Sergey Grant <sergey.grant@me.com>
2015-11-30 20:03:46 -08:00
Matthew Bastien
31150e4af1 Bug 481126 - QML Scoping Issues
Fixed the following issues with QML:
  -The parent scope of a QML Object is the file's root Object scope
  -Content assist for an Object Property should only display the
immediate Object's properties, not it's parent(s)
  -Content assist for an incomplete property binding should display
JavaScript hints as well

Added missing license headers and new tests.  Had to modify the
acorn-qml parser plugin in order to make some of the changes.  Added
tests for those as well.

Change-Id: I289167cbaacd8088f87dfafc689e67c0110d942f
Signed-off-by: Matthew Bastien <mbastien@blackberry.com>
2015-11-30 16:29:58 -05:00
Nathan Ridge
069d106ab4 Bug 479138 - Impose a global template instantiation depth limit
This protects against rogue template metaprograms that don't terminate.

Change-Id: I9558ceaaed17baddbed84aac67a3c72397b62b64
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2015-11-29 19:40:28 -05:00
Nathan Ridge
9bcb71b26a Bug 479138 - Allow index tests to specify that recursion resolving
bindings are allowed

Change-Id: I3a55cbb1062e8edf4b84920738c9d1cca02b65d6
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2015-11-29 19:39:38 -05:00
Nathan Ridge
c531b2d5e6 Bug 479138 - Make template instantiation fail if a non-type argument has
Value.ERROR as its value

This avoids infinite recursion in metaprograms whose termination depends
on the inputs being known.

Change-Id: Ic6972188f69bf324431ce1331ad079fbf2c9039e
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2015-11-29 16:28:30 -08:00
Nathan Ridge
28c22cca09 Bug 477359 - Completion node inside attribute specifier
Change-Id: I54902dc41834943a3fcfcca60ebbc2944fa0a68a
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2015-11-29 19:26:05 -05:00
Nathan Ridge
f5707a4d62 Bug 479528 - Make an indexer error message more informative
Change-Id: If58c3aa66ebcf15d0a21fd765b64e75bc1137b86
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2015-11-29 19:23:58 -05:00
Nathan Ridge
e9800bd4a1 Bug 480892 - Compare bindings by value equality during final overrider
analysis

Change-Id: I6a530710bdd5ea029726f8ed42e8a3c11f39996b
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2015-11-29 17:55:12 -05:00
Nathan Ridge
927dd7502d Bug 482421 - Ensure enumerations stored in the index return their
enumerators in the order of declaration

Change-Id: I49eec356a1b241b1dbe3eb9b7744adce5816a7c5
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2015-11-29 17:50:37 -05:00
Nathan Ridge
5cd555717b Bug 479638 - Cache the result of EvalBinding.isConstantExpression()
This helps avoid infinite recursion when a variable's initializer
references itself.

Change-Id: I4667536ebbefd2008afe9003617092a0a5693db0
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2015-11-29 17:48:21 -05:00
Marc Khouzam
56635a1b57 Move @since 4.9 to @since 5.0
Change-Id: I78e8a5652c10e3bf773f6cf92874b121891df4b1
2015-11-27 11:18:33 -05:00
Doug Schaefer
3dd8f57dcf Bug 481978 - Lots of clean-up to the Qt Build and Launch.
Especially launch. Now have local and QNX launches (which are 
in our internal repo) working.

Change-Id: I97bacc520cc6806fe9622700b2bb3f544e4aad94
2015-11-27 09:41:40 -05:00
Marc-Andre Laperle
5656acd253 Bug 481971 - Detect cc compiler in the build output parser
Change-Id: If667583eb3f720aa9ad7907af4673da8437d15d7
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2015-11-26 09:01:33 -05:00
Alena Laskavaia
9e38beb510 incorrect source lookup fallback when file is not in workspace
Change-Id: I9f7c5f3c46a26053123d28f30a7b8712eb8c9254
2015-11-25 20:46:02 -05:00
Nathan Ridge
04bf520618 Bug 480825 - Raise CPPSemantics.MAX_INHERITANCE_DEPTH to accommodate
patterns used by some commonly-used libraries

In particular, Boost.MPL supports compile-time computations with type
lists of up to 20 elements, which require a depth of 40 to support

Change-Id: I89b33205837f0acdb84e2d79cef53ec636a6bc8a
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2015-11-25 18:50:00 -05:00
Marc Khouzam
1551e5d787 Missing rm.done()
Change-Id: Ica2962eeb10d56a12dce7960106426a37429211d
2015-11-25 15:17:05 -05:00
Marc Khouzam
3eb8e4146f Remove deprecated constructor.
The constructor MIThreadGroupExitedEvent(IProcessDMContext, int, String)
has been removed.  MIThreadGroupExitedEvent(IProcessDMContext ctx, int,
MIResult[]) instead.

Change-Id: I1314f63e98b654daab81e30602c14b3e44c7a128
2015-11-25 15:15:41 -05:00
Marc Khouzam
89742720d0 Remove deprecated constructor.
The constructor MITargetAttach(ICommandControlDMContext, String) has be
removed.  MITargetAttach(IMIContainerDMContext, String) or
MITargetAttach(IMIContainerDMContext, String, boolean) should be used
instead.

Correspondingly, the method
CommandFactory.createMITargetAttach(ICommandControlDMContext, String)
was removed.  CommandFactory.createMITargetAttach(IMIContainerDMContext,
String) or CommandFactory.createMITargetAttach(IMIContainerDMContext,
String, boolean) should be used instead.
Change-Id: I2c35f0a7817d135511a851c400d3ad71781afd0c
2015-11-25 15:15:13 -05:00
Marc Khouzam
664185f14a Remove deprecated constructors.
The constructors MIFileExecAndSymbols(ICommandControlDMContext) and
MIFileExecAndSymbols(ICommandControlDMContext, String) where removed.
MIFileExecAndSymbols(IMIContainerDMContext) and
MIFileExecAndSymbols(IMIContainerDMContext, String) should be used
instead.

Change-Id: I1c54599f930430c9640833420256691d01184e76
2015-11-25 15:14:41 -05:00
Marc Khouzam
bf1083842e Remove deprecated classes.
In GDBControl_7_0, the classes InitializationShutdownStep,
CommandMonitoringStep, CommandProcessorsStep, RegisterStep have been
removed; their counterparts, defined in GDBControl, should be used
instead.

Also, the class GDBControl_7_0.ListFeaturesStep now extends
GDBControl.InitializationShutdownStep instead of the removed
GDBControl_7_0.InitializationShutdownStep.

Change-Id: I9365e746ac3cee67abcdc9507dd15e45337a1396
2015-11-25 15:12:26 -05:00
Marc Khouzam
939f543688 Remove deprecated method.
MIVariableManager.MIVariableObject.setExpressionData(String,String,int)
which has been deprecated for over 4 years has been removed.  The method
MIVariableManager.MIVariableObject.setExpressionData(ExpressionInfo,String,int,boolean)
should be used instead.

Change-Id: I3ac346eddd8dc119e725d475481836aa5fbd7d79
2015-11-25 15:11:29 -05:00
Marc Khouzam
65f9144e0f Deprecate method
The method AbstractMIControl.getControlDMContext() has been deprecated.
I has been replaced by ICommandControlService.getContext().  It should
have been deprecated at the same time as when
GDBControl.getControlDMContext() was deprecated, but was forgotten.

Change-Id: Ib568fce51b29455281a3d26b5ace914b9f4dece8
2015-11-25 15:07:20 -05:00
Doug Schaefer
e3496e1246 Bug 481978 - Big overhaul of new build system to work with Qt.
Moved new build system to it's own plug-ins. Cleaned up the root
build configuration and toolchain classes and use them for Qt local
run builds. Also hooks Qt local run launch delegate to launch target
manager and associated delegate interface.

Change-Id: I0c0f711ee53005edd399f6d24ba96658d606e1e5
2015-11-24 22:11:33 -05:00
Alexander Kurtakov
ef76cdac14 Use varargs MessageFormat.format method.
Removes few warnings from codebase.

Change-Id: I432bda487b7eed9adfdbe10086776a54fd37b7b8
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2015-11-21 03:05:38 -05:00
Alexander Kurtakov
ba862975c1 autotools: Fix dialogs run from Actions to have proper parent.
Creating new Shell as parent of every dialog is waste of resources,
complicates window management and have negative effects in terms of
positioning and stacking of dialogs.
While at it remove dead/unused code from these classes.

Change-Id: I62f9a6430f230e18e5b2f949afe97b46fb9e4ac1
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2015-11-21 00:43:00 -05:00
Marc-Andre Laperle
388d94a963 Bug 402313 - [Keybindings] With MS Visual Studio bindings, F5 should be Resume
Change-Id: I928e1a9cb22a535f3c4dd5800c5d364c5a8d2b67
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2015-11-20 23:03:59 -05:00
Marc-Andre Laperle
e59d20f0ba Bug 478462 - LLVM feature description is copied from CDT p2 feature
Change-Id: I3a5351a6997633b768eea9dc52a826b3a33e2702
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2015-11-20 22:18:55 -05:00
Sergey Prigogin
2af5429bdb Bug 406462 - Fixed a regression in parsing of lambda expressions.
The regression was triggered by the change that introduced support for
designated initializers in C++.

Change-Id: I8e78a8818b8365cce0b878cd4a2c19116b3682d4
2015-11-19 17:52:42 -08:00
Sergey Prigogin
f0bd13a754 Bug 406462 - Allow designated initializers for C++
Change-Id: Iafadba03e6a54b679b4c10ea693a5f8a84ddf839
2015-11-18 21:03:49 -08:00
Sergey Prigogin
49a9b0c3f6 Cosmetics. 2015-11-18 20:25:08 -08:00
Marc Khouzam
c7a94541e5 Bug 336876: Simplify GDBRunControl_7_2
This will help extend the class for the grouping patch.

Change-Id: I67f392833d6391a97850b184f5c866337dff0aba
2015-11-17 15:12:21 -05:00
Matthew Bastien
b5606e115f Bug 481126 - Tern QML Tests
Added a testing framework similar to acorn-qml's for tern-qml and began
adding tests.  Updated acorn-qml and tern-qml to use acorn v2.6.4 which
includes the changes to acorn_loose that enable loose parser plugins.

Change-Id: Ib6af4b476321fde4b3f15aac8342764a45985dfa
Signed-off-by: Matthew Bastien <mbastien@blackberry.com>
2015-11-17 10:23:31 -05:00
Sergey Prigogin
4316da89b5 Cosmetics. 2015-11-16 19:55:36 -08:00
Nathan Ridge
3e81f0437c Bug 475894 - Forward declaration of enum at class scope
Change-Id: I51e9bc36350dd403514ce5ec3d48ddb4f456102b
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2015-11-16 15:37:11 -05:00