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

24399 commits

Author SHA1 Message Date
mazab
c6dc02c94d Bug 438549 - Fixed a regression for parameterless functions and
re-enabled parameter guessing.

Change-Id: I4b6347999d675335c8e88f4bffed37fcef2e0bc3
Signed-off-by: mazab <mohamed_azab@mentor.com>
2015-12-14 19:38:06 -05:00
Sergey Prigogin
01589f6297 Cosmetics. 2015-12-14 15:51:08 -08:00
Matthew Bastien
84b5f4bfd2 Bug 480238 - QML AST in Java
Created a set of Interfaces to represent the JavaScript and QML Ast in
plain Java.  Updated acorn-qml to be able to parse the entirety of QML
syntax as specified by the QML grammar.  Also modified the QML AST to
represent the added syntax and modified tern-qml to handle the new AST
elements.

Changed the way that the QMLAnalyzer handles path resolution.  Paths are
now relative to the local file system.

Note: the normal acorn-qml parser cannot parse the full range of QML
syntax due to ambiguities.  However, the loose parser can.  We're still
waiting on Acorn to bring lookahead to the normal parser in order to
resolve this.

Change-Id: I77c820ad46301975b2a91969a656d428ad9409c1
Signed-off-by: Matthew Bastien <mbastien@blackberry.com>
2015-12-14 11:13:52 -05:00
John Dallaway
e62e2772fe Bug 366039: Internal Builder reduced build step input resource count
Change-Id: I7c7c8ba5d1bf7b96bbef66449ea6470f3c266f98
Signed-off-by: John Dallaway <john@dallaway.org.uk>
2015-12-14 10:30:43 -05:00
Marc Khouzam
5892f19747 Update GDB download script for 7.10.1
Also fix a bug where the script was
not ready for a two digit version.

Change-Id: Idd3322c46806705e33898a47c79d3ec3c9fc1685
2015-12-14 07:13:30 -05:00
Alexander Kurtakov
8a834d5970 Cleanups.
Remove useless:
* casts.
* suppress warnings unchecked.
* @see comments 

Change-Id: I4713e9ddf90195cf1e465b3743f5f0bc7e41d338
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2015-12-14 11:06:00 +02:00
Alexander Kurtakov
34281a96e0 autotools: Additional generification.
Properly generify now that o.e.text is generified. This alows removing a
number of suppressed warnings. In a few places it is better to use
wildcard than suppressing warnings.
Also remove DefaultNoDependencyCalculator as it was suppressing warnings
but better to remove directly as it's not use anywhere.

Change-Id: I70c4ac073ce5b6c2a45443372037fa61b7c36c76
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2015-12-14 08:49:09 +02:00
Alexander Kurtakov
af49d7701a Fix compilation with Neon M4.
Change-Id: Ia7f862540b14a2eec37804049d4cfb27e9f028e0
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2015-12-13 20:32:35 +02:00
Sergey Prigogin
871e7abcd0 Cosmetics.
Change-Id: I3bdff42323e40f5440b20bfde2efa7658f0d680b
2015-12-10 18:53:15 -08:00
Sergey Prigogin
992e4b61eb Cosmetics. 2015-12-10 18:42:06 -08:00
Nathan Ridge
1491ec0293 Bug 393717 - Have constructor definitions reference implicitly called
base constructors via implicit names

This reverts commit f6828f8daf and
restores the original change by Nathan Ridge

Change-Id: Ib00d5dc56f96b9c3a9d52b08b00f0d238de58e94
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2015-12-10 15:53:53 -08:00
Matthew Bastien
e91dc6f389 Bug 480238 - Acorn-QML Parse QML Types File
Added the 'mode' option to acorn-qml that, when set to "qmltypes", will
allow it to parse the slightly different syntax that qmltypes files
have.  Added a few tests to check this functionality.

Change-Id: Ica240c33ad9a153953f099845cdcb71e241c3a8d
Signed-off-by: Matthew Bastien <mbastien@blackberry.com>
2015-12-09 17:12:15 -05:00
Matthew Bastien
1d36f36ef8 Bug 481126 - QML Directory File Parsing
Added a new parser that is able to construct an AST for a given qmldir
file.  Added tests to ensure the parser works for standard qmldir files.

Change-Id: I292aace3cdec8b4a544033f80812df965fef50b8
Signed-off-by: Matthew Bastien <mbastien@blackberry.com>
2015-12-09 14:58:22 -05:00
Sergey Prigogin
c5d03dddb6 Cosmetics. 2015-12-08 11:59:39 -08:00
Sergey Prigogin
4ac6657792 Bug 438549 - Disabled parameter guessing since it caused a regression
Change-Id: Ie59177428d624196aee9bfc0573da969b15e80fe
2015-12-08 14:58:27 -05:00
Alexander Kurtakov
81ff40486e autotools: Revive sorting action in automake/conf editor.
Remove the sorting action from the MakefileContentOutlinePage because
the action was changed in a way to be addable in init method instead of
deprecated setActionBars. 
Hooked it properly in AutomakefileContentOutlinePage.
Bonus point - hooked into AutoconfContentOutlinePage as it was just too
easy to get it there too.

Change-Id: I873864f3978ae7cb1d8aa4143edf604244c0a4bc
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2015-12-08 21:04:15 +02:00
Doug Schaefer
6ba6157708 Bug 481126 - Add hyperlink support to open decl in QML editor.
Also moved the text package contents to the editor package.

Change-Id: I352f8cfa78e937fb4046f86df8c7767df6c5eff2
2015-12-08 11:27:15 -05:00
Alexander Kurtakov
48f520d54c autotools: Make automake editor use make.[core|ui] interfaces.
Duplicating this interfaces just creates confusion due to interfaces in
autotools were copied from make bundles but staled in the years.
Implementation is kept as it is but at least the door is open for some
interoperability. 

Change-Id: I1eb4a7c7dc7511aa6cb15ec0716d0bae8a64389c
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2015-12-08 10:38:34 -05:00
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