1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00
Commit graph

24531 commits

Author SHA1 Message Date
Alexander Kurtakov
422b68793d Revert "Revert "autotools: Make tests fragments.""
This reverts commit c41d0e50f3.

Change-Id: I22ed3b63530107e442b6bf16f2cbbb67f018ac15
2015-12-08 02:23:55 -05:00
Matthew Bastien
d6bba126d8 Bug 481126 - QML Parse Query Type
Added two new query types to tern-qml: 'parseFile' and 'parseString'
which will return an AST for the given file or string respectively.

Change-Id: I4608866c002d43defb4d462c4a981282ed97e1c6
Signed-off-by: Matthew Bastien <mbastien@blackberry.com>
2015-12-07 12:08:33 -05:00
Matthew Bastien
42e3859b68 Bug 481126 - QML Imports Working in Editor
Hooked up the extra logic needed to get Tern-QML's imports to work in
the QML File Editor.

Change-Id: I6fa222223ca8b6b177e4004e48f2f1863ab4d7b4
Signed-off-by: Matthew Bastien <mbastien@blackberry.com>
2015-12-06 15:05:41 -05:00
Marc-Andre Laperle
3a2cb0431e Remove alltests plugin
- The plugin was not being as useful anymore (we can run all tests in maven)
- The plugin was not being built by the maven build so it would break
without people knowing after the fact
- The suite of tests it was running was rather incomplete

Change-Id: I6c4037eb2bc236ccbc0852d1c08b2647f9c407fd
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2015-12-06 13:52:12 -05:00
Alexander Kurtakov
06208afa79 autotools: Convert the last JUnit 3.x style test.
And hook it in the test suite.

Change-Id: I4a9b533ff3122e667dbad65655189afcca8dc28e
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2015-12-05 01:29:57 -05:00
Doug Schaefer
6f36a51b5b Bug 174176 - initial contrib of CMake support.
Change-Id: I7f0417bd92415aa9abb24ebabe849d9e4f75cea5
2015-12-04 20:30:44 -05:00
Sergey Prigogin
6ba479a6f2 Cosmetics
Change-Id: I375dfe970de30bf660d7783c52fb809ecdfd84fe
2015-12-04 10:48:21 -08:00
Sergey Prigogin
2df93034f3 Reverted an erroneous change.
This reverts commit 93438cade8.

Change-Id: I98d351ef120960b79cf969fd63c861cc5dc83825
2015-12-04 12:46:26 -05:00
Matthew Bastien
dd3815bb91 Bug 481126 - Tern-QML Directory Imports
Added functionality to tern-qml that allows it to recognize directory
imports of the form:  import "<directory>" [as <Qualifier>].  Content
assist and find definitions also work for these new imports.  Moreover,
fixed the QML Scoping to be easier to handle in the future by defining
new Scope Objects specifically for QML.  Finally, used JS Hint and
Beautify to have a more uniform coding style between all the files of
acorn-qml and tern-qml.

Also fixed up the HTML Demo to allow editing of multiple files to show
the new imports.

Change-Id: I2cdd18b1b8765400f6b24145f0677127a221fe10
Signed-off-by: Matthew Bastien <mbastien@blackberry.com>
2015-12-04 11:18:00 -05:00
Doug Schaefer
3ec33023c3 Hide the exception on QML load from the UI.
Change-Id: Ib4bb21f5e7ec7e4d53d6dfe4f9098dd45575089a
2015-12-04 10:03:56 -05:00
Alexander Kurtakov
c41d0e50f3 Revert "autotools: Make tests fragments."
This reverts commit 375b162ea2.

Change-Id: I3638f4baebd0b7975da77f95af8c436bec9d9af2
2015-12-04 03:23:03 -05:00
Sergey Prigogin
226dd80cf6 Testing infrastructure improvements.
Change-Id: I495c336f60605a64fd02c243a884ed6c2415ee81
2015-12-03 21:48:31 -08:00
Sergey Prigogin
e2f375fc86 Code cleanup.
Change-Id: I8425c6995bad38758234a2bdb43f5bab8cb244d7
2015-12-03 18:59:45 -08:00
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