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

25818 commits

Author SHA1 Message Date
Jeff Johnston
a3211e7cf6 Bug 533888 - Simplify Meson Core Build to use startBuildProcess
- fix MesonBuildConfiguration to use startBuildProcess instead
  of CommandLauncherManager
- change CBuildConfiguration startBuildProcess() method to accept
  a build directory and to replace environment variables based
  on input parameter
- fix CBuildConfiguration watchProcess routines to ensure that the
  ReaderThreads have completed processing output to the console
- change StandardBuildConfiguration and CMakeBuildConfiguration to
  pass the working directory to startBuildProcess

Change-Id: Icb4f2d076f0e6bb1513b20f6f198f720eae07e51
2018-04-26 14:48:50 -04:00
Vlad Ivanov
7d9e0b0ddd Bug 519062: add support for digit separators
Change-Id: I6fa990c76395dcc6f9b0e5e05707cff03a34b8db
Signed-off-by: Vlad Ivanov <vlad@ivanov.email>
2018-04-25 22:06:39 -04:00
Alexander Kurtakov
b9bac6912e Update build machinery.
Move to latest CBI plugins 1.1.5.
Use mylyn docs 3.0.24 in autotools docs generation.

Change-Id: I077afde458c654e40db44bec77b3049efe9715af
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2018-04-24 11:31:56 -04:00
John Dallaway
60d95da97b Bug 399460: Resolve variables using launch context
Resolve project-related string variables within the GDB command, based
on the launch configuration rather than the current selection.

Change-Id: I6fc5d2f1de515624aff59397de60d0c394acf72f
Signed-off-by: John Dallaway <john@dallaway.org.uk>
2018-04-21 01:15:16 -04:00
Jeff Johnston
b56078ed96 Bug 533842 - Fix Launchbar for enabled/disabled Docker Connections
- fix CMakeBuildConfigurationProvider to not verify if a toolchain
  file exists which doesn't occur for Container Build configurations
- add new ICBuildConfigurationManager2 interface that adds new
  recheckConfigs() method, make CBuildConfigurationManager
  implement this new interface
- add new recheckConfigs() method to CBuildConfigurationManager so
  that if a Docker Connection is enabled, the list of invalid configs
  can be rechecked and those that are now valid can be removed from
  the noconfigs list
- have ContainerGCCToolChainProvider implement
  IDockerConnectionManagerListener and register itself as a listener
  during init
- add new changeEvent() method as part of a listener that will add
  toolchains for connections that are added/enabled and similarly
  will delete toolchains for connections that are removed/disabled
- do the same with ContainerTargetTypeProvider (making it be an
  IDockerConnectionManagerListener and adding/deleting targets based
  on whether a Docker Connection is added/enabled or deleted/disabled
- as well during the init process of ContainerTargetTypeProvider
  remove any targets for Connections that aren't established

Change-Id: Id5e9415eaa770ef7f6ba1ddd11312ed003585391
2018-04-20 12:44:27 -04:00
Samuel Hultgren
ec9361bd45 Bug 533771 - Allow limit scope of MIStackListArguments
Change-Id: Ibe63ea352fa4daae0d91989595d79b39c3ef92f0
Signed-off-by: Samuel Hultgren <samuel.hultgren@st.com>
2018-04-20 07:14:46 -04:00
Samuel Hultgren
4dd0d4ec05 Bug 533769 - Show error messages directly
Include the error message in the message shown directly in the error
dialog.

Change-Id: I8d6e65353750ee59966ede59b75ebc6256658cb6
Signed-off-by: Samuel Hultgren <samuel.hultgren@st.com>
2018-04-20 07:12:18 -04:00
Torbjörn Svensson
72a51e79d9 Bug 533766 - Deadlock at IDE shutdown with active debug session
When shutting down eclipse and there is an active debug session, eclipse
might deadlock if it can't destroy the debug session and would normally
leave a zombie process for the eclipse instance.  This fix allows
eclipse to properly shutdown if the debug session is destroyed in less
than 1 minute, else the IDE will simply be terminated.

Change-Id: Icb9b019c7ff2ec9cdc9870a392a657fe0dfde81b
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
2018-04-18 17:54:44 +02:00
Samuel Hultgren
bb5f2d7f78 Bug 528940 - Execute pre/post build step
Execute the pre and post build steps as part of the build when using
the internal builder in parallel mode.

Change-Id: I840da0d7025597dc5b3edc1bb54a5ca45b6e2e86
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
Signed-off-by: Samuel Hultgren <samuel.hultgren@st.com>
2018-04-17 15:12:00 -04:00
Jeff Johnston
8982ef90e7 Bug 533444 - Add Container Build support to CMake Projects
- fix CMakePropertyPage to check if the active config is
  a Container build in which case dynamically build the page
  using the results of a cmake -LAH call which will give
  the various configuration values that can be changed
- add new CMakePropertyCombo, CMakePropertyText, CMakeUtils
  and ICMakePropertyPageControl classes
- change CMakeBuildConfiguration build methods to use
  startBuildProcess to run commands similar to
  what StandardBuildConfiguration does now
- change CMakeBuildConfigurationProvider to use a container image
  name to form a build directory so that differnt image targets
  are differentiated and easy for the user to figure out what they
  are for
- fix main.cpp sample CMake program to actually be a hello
  world program

Change-Id: Iea9e2b5cc6895bc95194e28b131a3fb7e3b670ca
2018-04-17 12:20:21 -04:00
Samuel Hultgren
c2b5e84087 Bug 217674 - Added incremental build support
When building a project with parallel builder using internal builder,
the entire project is rebuilt even if an incremental build was issued.
Store the rebuild state so that next build knows what has already been
compiled.

Change-Id: I1d1836f072bf13b03423fde7b5c427d41e47391e
Signed-off-by: Samuel Hultgren <samuel.hultgren@st.com>
2018-04-17 11:53:41 -04:00
Samuel Hultgren
40daa34fda Bug 533499 - Check all problem markers for errors
Check all problem markers until one with severity Error or higher has
been found.

Change-Id: I7b44727eb1f323da75a7aa58bcea2ef307801adf
Signed-off-by: Samuel Hultgren <samuel.hultgren@st.com>
2018-04-17 04:49:38 -04:00
Jeff Johnston
103f4cba4c Adjust Meson NewManuanNinjaTest
- test sometimes is printing extra info like level of ninja found

Change-Id: I2622f79bfc8320a8bd2bf0f6b7a8fe3bb73de55f
2018-04-16 16:19:49 -04:00
Jeff Johnston
2e99babe5b Bug 533222 - Add Container Build support to Std Make Core Build
- add new getConsoleHeader() method to ICBuildCommandLauncher
  interface and ContainerCommandLauncher class
- modify MakefileBuildConfigurationProvider to create build
  configurations based on an Image name when building for Container
  and as well support the linux-container os that is used for
  Container targets
- add new IConsoleParser2 interface that extends IConsoleParser
  and adds new processLine method that takes a List of Job as
  a parameter
- make CBuildConfiguration implement IConsoleParser2 and add new
  processLine method
- modify watchProcess to recognize an IConsoleParser2 and pass
  a Job List then wait for all jobs to finish before calling
  shutdown() and possibly reindex
- add new IToolChain2 interface with startBuildProcess() method
- add new startBuildProcess() method to CBuildConfiguration
  to look for new IToolChain2 and use its startBuildProcess()
  method to perform the build
- make ContainerGCCToolChain implement IToolChain2 and add
  new startBuildProcess() method to build in Container
- change StandardBuildConfiguration to use startBuildProcess()
  to do build and clean

Change-Id: Icae9a55ef6abfa1b7f611544ad591b6062c72585
2018-04-16 12:10:42 -04:00
Torbjörn Svensson
864b305ff4 Bug 533379 - Only add space when appropriate
Only strings starting with "operator" should be subject to the space addition.

Change-Id: I690695e7c3385e0d4e64ddd4cbe470a20cf788d6
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
2018-04-16 10:36:56 -04:00
Nathan Ridge
fc8f2d6176 Bug 533216 - Avoid a ClassCastException in EvalBinding.unmarshal() if the parameter owner could not be stored in the index
Change-Id: Ic44495420b0489cfeb1e371e2b776b44b57895fe
2018-04-13 01:46:10 -04:00
Nathan Ridge
72d9035173 Bug 533216 - Correctly classify local types as dependent or not
Change-Id: Ie34d0540fd1efa85e29dbe525b75a35af21dc7cf
2018-04-13 01:45:57 -04:00
Nathan Ridge
ff1cfbf1d4 Bug 532905 - Implement compositing for InitializerListType
Change-Id: I9aea9b2a9fb0540f4cf9ab1f54ce0d1d17686d7d
2018-04-13 01:43:26 -04:00
Torbjörn Svensson
47d08ec204 Bug 533473 - Dynamically hide option categories
Allow applicabilityCalculator to hide optionCategory items that are
located on the toolchain. Show in the schema that
applicabilityCalculator is a valid attribute for optionCategory.

Change-Id: I6adb22b0af2a2c7fe45ea142049fcc2687d105b9
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
2018-04-12 17:48:53 +02:00
Nathan Ridge
91a142fcb7 Bug 319506 - Allow renaming class via constructor
Change-Id: I3c2f3e5337c7cdea4714732580806713aa28187b
Signed-off-by: Ian Leslie <ian.leslie@lesliesoftware.com>
2018-04-08 01:17:06 -04:00
Hansruedi Patzen
54287859f0 Bug 533319: ASTRewrite parameter pack wrong pointer operators position
Change-Id: I4798afa95d66aeed04b155ccd62a2b133f579296
Signed-off-by: Hansruedi Patzen <hansruedi.patzen@hsr.ch>
2018-04-06 17:01:48 +02:00
Nathan Ridge
a10fc3eafe Bug 532781 - Ensure the model builder looks up SourceManipulationInfo for anonymous namespaces in its local cache
Change-Id: I98ff370d4cd04254d8896409455fae61182fb3df
2018-04-05 16:25:44 -04:00
Nathan Ridge
f80be34148 Bug 532905 - When throwing a CompositingNotImplementedError, include the kind of IType or ICPPEvaluation for which compositing is not implemented
Change-Id: I1414f70ae5f86263fc313f61aa36485df8c4cb3f
2018-03-30 21:08:48 -04:00
Nathan Ridge
d598331c81 Bug 532684 - NPE in PDOMMacroReferenceName constructor
Change-Id: Iea6200203350591927f505213facc9224243cc65
2018-03-30 02:02:59 -04:00
Jeff Johnston
0f9d2cdbba Enable Meson UI tests
Change-Id: I5f0a554c92e1568dd2cda69c198640c2a99769ec
2018-03-29 16:59:37 -04:00
Jeff Johnston
88cc9907cb Update Meson UI tests
- add new NewManualNinjaTest to test the Run ninja context
  menu item
- add a check that Project->Clean... works for Meson
  projects in NewMesonProjectTest
- fix all tests to substitute the project location instead
  of hard-coding it
- fix the build ninja code to use env to run so that
  environment variables can be overridden from run ninja dialog
- add new test to AutomatedIntegrationSuite for Meson UI tests

Change-Id: I0e338df6935f343d6ffbce99a83265d252ea37a6
2018-03-28 18:29:24 -04:00
Jeff Johnston
fcbd010b2d Fix cdt.target for latest meson ui tests plug-in
- add org.assertj and aeri logging to cdt.target

Change-Id: I665bb3fe9c010c81e8e638905a1a557d91ec2015
2018-03-28 16:34:01 -04:00
Jeff Johnston
1a05bf6910 Add a new Meson property page test
- add NewMesonConfigureTest.java
- fix extraneous "meson" string in console output when
  performing a meson configure
- add new test to AutomatedIntegrationSuite for
  Meson UI test plug-in

Change-Id: Ic10520a0d420d380df95117b69200409a48226b3
2018-03-27 19:46:24 -04:00
Jeff Johnston
980eb1b25c Bug 532967 - Meson config properties not being saved/restored properly
- change splitting logic in MesonPropertyPage to split the arg
  string using -- which precedes args and to perform trim()
  operation to remove spaces between
- don't process an empty arg after splitting
- fix the boolean arg logic to use parseBoolean instead of getBoolean
  which is only for system properties

Change-Id: I390911bbf9d7f63f0cf6a13278f3644fe175847b
2018-03-27 15:35:53 -04:00
Jeff Johnston
407352736a Bug 532917 - env vars in Meson properties causes failures to occur
- fix MesonBuildConfiguration to check if any environment variables
  have been specified in properties page and if so, to change
  the command to run /usr/bin/env ENVVARS /bin/sh -c "meson ..."
- using env will cause the current env to be used (both locally
  and in a Container where the env has been set up) and modify it
  according to what the user specifies

Change-Id: Ide3997cf78edf65857dea3119f0a9d71679cfe68
2018-03-26 18:36:36 -04:00
Alexander Kurtakov
ebab079cbf Sync tycho pomless to main tycho used to build to 1.1.0
Change-Id: I41c2ddefbbfc1995515bc4e991f6844f87f779dd
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2018-03-26 13:12:38 +03:00
Jonah Graham
efdff26923 [releng] update jacoco-maven dependency versions
Change-Id: I6dd7afab271eeb66b03217167c3ad7c546055674
2018-03-25 18:26:11 +01:00
Jeff Johnston
0144d3e819 Update Meson UI test
- update test for create, build, and run

Change-Id: I8a7d43336f8be28bc5cbd567dffed5f4fdc1b46f
2018-03-23 20:31:06 -04:00
Jeff Johnston
1ce1b3df5f Add Meson UI tests plug-in
Change-Id: Ib5af6980e90963876307f719a73f911394e72e1a
2018-03-22 15:57:46 -04:00
Jeff Johnston
3e60faaa6c Replace refreshScannerInfo with setActive method
- remove the refreshScannerInfo method from ICBuildConfiguration2
  but add it as a protected method of CBuildConfiguration
- edit MesonBuildConfiguration and CBuildConfiguratio appropriately
- add new setActive method to CBuildConfiguration which calls
  refreshScannerInfo

Change-Id: Iebae09507f24293007a299eea3069451e566a91b
2018-03-20 15:54:15 -04:00
Jonah Graham
ca4d434b06 Partially revert "[releng] update maven dependency versions"
The cdt-sonar build broke with the newer sonar plug-in.

This reverts commit 9394a679c5.

Change-Id: I6a9cf671dfbef16a9cd22567d37a3c13f1f91f36
2018-03-20 05:56:34 -04:00
Jonah Graham
06273ad9fb Bug 532592: [tests] use disassembly mode supported on GDB >= 7.5
Previous code was only supported on GDB >= 8.0 with /s was introduced
to disassemble command.

Change-Id: Ic82b43c13e0567972d0a032325b12df4786a7ce3
2018-03-20 09:26:14 +00:00
Jonah Graham
6a0de9f520 Bug 532592: [tests] cleanup use of DEBUGGER_MODE_REMOTE in tests
Be consistent in using DEBUGGER_MODE_REMOTE to set remote session
in parameterized tests.

Change-Id: Ie8db7df02ec575f3e89d22e00b06e4e197833a37
2018-03-20 09:16:00 +00:00
Jeff Johnston
60affd8b9f Bug 532420 - Make Container Core Build indexing more efficient
- add new ICBuildConfiguration2 to keep API checks happy
- remove refreshScannerInfo method from ICBuildConfiguration and
  put it in ICBuildConfiguration2
- make CBuildConfiguration implement ICBuildConfiguration2
- update ContainerPropertyVolumesModel to use new Docker plug-ins
  using docker-client 8.9.2.
- fix MesonBuildConfiguration to use a job for each compile line being
  processed, then wait until all jobs are done before causing
  an reindex to occur (this will maximize parallelism when building
  in Containers)
- fix ContainerCommandLauncherFactory to save the project so we
  can exclude project directories when copying header files using
  the new Docker Tooling interfaces
- fix CoreBuildLaunchBarTracker to use ICBuildConfiguration2
  interface to make the call to refreshScannerInfo


Change-Id: I2138f5111614e7821e46c22731397a01035eac0a
2018-03-19 21:50:31 -04:00
Jonah Graham
f388f97fff Bug 532592: [tests] fix bitrotten GDBRemoteTracepointsTest
When I fixed the assume on "remote" in commit 4a447ce1a6
I exposed this test as having not been run in a while and it has
bitrotten due to changes in the compiler behaviour and the bad
definition of fastTracepointsSupported. This commit brings the test up
to speed.

Change-Id: I5eee6af4de111d864465851de91889aecf875dfb
2018-03-19 22:35:56 +00:00
Jonah Graham
220e0696ed Bug 532599: [tests] use os allocated port for gdbserver comms
Change-Id: I2843472de14cf767896070fcba8add508a1a9eca
2018-03-19 13:19:17 +00:00
Jonah Graham
4a447ce1a6 Bug 532592: [tests] properly exclude non-remote tests
This includes changing BaseParametrizedTestCase.remote to be a
Boolean so that users of remote before it is initialzed causes
an NPE. For example, GDBRemoteTracepointsTest was never running
because of this logic error.

Change-Id: I3fb46fd67c554af7ec912f175815165533021a1b
2018-03-19 12:13:20 +00:00
Jonah Graham
9394a679c5 [releng] update maven dependency versions
Change-Id: Id55ef378ed1abf4a71f31ef27b08c3b59be05317
2018-03-19 10:36:23 +00:00
Felix Morgner
fbe97a324a Bug 532227: C++17 Missing standard headers in file associations
Add the new header files introduced with C++17

Change-Id: Icb5086ff94cee309010ac0d502fba56ae3f266c5
Signed-off-by: Felix Morgner <fmorgner@hsr.ch>
2018-03-15 00:33:11 -04:00
Felix Morgner
47ceed3cbe Bug 525250: "Create local variable" offered outside of local scopes
When invoked from within 'isApplicable(IMarker)', 'isCodanProblem()' did
not work as expected, since it used a cached value that was only updated
in 'run(IMarker)'. The old API 'isCodanProblem()' has been marked as
deprecated and is replaced by 'isCodanProblem(IMarker)', which works
directly on the marker, instead of using a cached result.

Additionally, two new APIs in 'QuickFixTestCase', called
'calculateQuickFixApplicability()' and
'assertIsApplicableForAllMarkers(boolean)', are introduced. The former
can be used to record the applicability of the QuickFix under test for
every marker in the test code, while the latter provides a way to assert
on the applicability. For finer grained assertions,
'calculateQuickFixApplicability()' returns the calculated map.

Change-Id: I7c53fd26afefa37ff086559acea75a7a33ecd5d7
Signed-off-by: Felix Morgner <fmorgner@hsr.ch>
2018-03-14 09:30:42 +01:00
Jonah Graham
9537e51cf3 Bug 532297: Cache registers per version of GDB
Change-Id: I2da702830f01035b99dc61fcdfb9e7a43fcc8d55
2018-03-11 19:37:30 +00:00
Jonah Graham
b4ac2d3ebf [releng] bump version of gdb to test with to gdb 8.1
Change-Id: I811bc22a02ff84cc638872b21c71345e10d288ab
2018-03-11 19:37:30 +00:00
Sebastian Focke
ebf123102f Bug 282494 - Incorrect colors in Show Macro expansion dialog in case of
dark color scheme

Setting the Macro expansion highlight to the "Find Scope" color. The
color can not occur by other means in the dialog and provides good
contrast to background and foreground colors.

Change-Id: If2182cff20f3612cff80c7fe2b250d039d45f172
Signed-off-by: Sebastian Focke<sfocke_eclipse@web.de>
2018-03-11 12:15:41 -04:00
Jonah Graham
a8af87b6ba Bug 532209: Run extensions in SafeRunners
Change-Id: Icf748b9769c7a454cf3bc4b4a27fff896ce38086
2018-03-11 12:13:39 -04:00
Jonah Graham
a5203143e9 [releng] Add version constraints on linuxtools due to API change
This really should have been part of I68d4f93de3a0e6141c7a37a34f9e8fdb2313fbd8

Change-Id: I1b7671fbd12dd973139e72f053e3b3d5117f3b44
2018-03-10 00:34:24 +00:00