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

26245 commits

Author SHA1 Message Date
Jonah Graham
851295e821 [releng] work around Tycho issues of obtaining *.jre.javase [10.0.0]
This does not happen in Eclipse using the target platform directly,
and when this last happened for [9.0.0] this workaround
worked, as documented in https://bugs.eclipse.org/bugs/show_bug.cgi?id=530207#c1

Change-Id: I55ce926c0ad73e78d24d1c0e78a6db7cce4d101e
2018-05-26 14:20:14 +01:00
Hansruedi Patzen
dd5c8726a7 Bug 527954: [C++14] Syntax error when parsing complex udl ""if
With this patch we allow any keyword to be used as a UDL operator, which
for example GCC compiles fine with. They are then no longer highlighted
as keywords but colored the same as normal text. This can be overridden
by coloring overloading operators differently.

Change-Id: If80faf0f3dc599ab4f12fe98977c556aaaefe6aa
Signed-off-by: Hansruedi Patzen <hansruedi.patzen@hsr.ch>
2018-05-24 18:52:08 -04:00
Torbjörn Svensson
a7b0a1fe80 Bug 535024: Use deviceId for determine JTAG probe
The name of the JTAG probe is not translateable since the name is saved
as-is in the launch configuration. To make the string translateable, use
the id instead to select probe implementation.

Change-Id: Id7e654ea1e26f47cd1c8ccfec857a94f3be9e0ad
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
Signed-off-by: John Dallaway <john@dallaway.org.uk>
2018-05-24 18:24:21 +01:00
Jeff Johnston
4c50b40f53 Bug 535014 - cannot debug in a container
- add check for network ports coming back empty for a Container
  launch and if so, fall-back to use the ip address of the Container
  for the remote host

Change-Id: I83d68a10e2dc92f7d0f27bb9dec304388594b4a3
2018-05-23 19:15:17 -04:00
Jonah Graham
d5b2f61dd7 Bug 534839: Add missing dependencies to standalone product
In particular, new version of ECF requires org.eclipse.equinox.concurrent

Change-Id: I909565b868fce44dea54ac3df985708d523304b0
2018-05-20 16:58:19 +01:00
Jonah Graham
6c074cc1c8 [releng] Update dependencies to Photon contributions
Change-Id: I6ba869acc9fda2d08a6bdc9a04f5f52cefdcf8c9
2018-05-20 16:58:19 +01:00
Nathan Ridge
54ecf4699f Add LSP4E dependency to cdt.target
Change-Id: Id990ce962b93dee306101089eb8a15ea2c5374fe
2018-05-17 23:03:37 -04:00
Eric Woestman
4aebc5bffc [534454] Fixed GCC build parser for simple defines
Changed GCC build parser to handle simple defines like "-D FOO"
and defines them to 1.

Bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=534454
Change-Id: Ic9065914bc82dafc43d0814f4fed27a26eeeeb28
Signed-off-by: Eric Woestman <woestman@ensoftcorp.com>
2018-05-17 21:59:02 -04:00
Nathan Ridge
c8b769ead2 Bug 534332 - Add a testcase involving a function as well
Change-Id: I02c4ec4ab2ece8dee09ba6b27461dc76724ebba8
2018-05-17 20:28:36 -04:00
Vlad Ivanov
809aa57076 Bug 519361: wrap template<auto> types for better type resolution
https://bugs.eclipse.org/bugs/show_bug.cgi?id=519361#c28

Change-Id: I0a2f5479bb853ca26156be5b22673abdc158efab
Signed-off-by: Vlad Ivanov <vlad@ivanov.email>
2018-05-17 19:57:08 -04:00
Jonah Graham
c16a31325b Bug 534839: Add missing dependencies to standalone product
In particular, new version of batik requires o.a.batik.constants,
so we need to add that in.

Change-Id: Ie221c0e48fd8e2c4692d2447bf142284e50931fb
2018-05-17 21:28:32 +01:00
William Riley
bbe00c902e Bug 514838 - Return sessionId when context is IExecutionDMContext
Return the session id from setDebugContext when dmContext is
IExecutionDMContext. This session id is needed in
DisassemblyPart.updateDebugContext()

Change-Id: I28f51d990f2b9c51718e5859279ea252091e3beb
2018-05-15 14:20:34 +01:00
Nathan Ridge
e533381b75 Bug 534126 - Cache instantiations of alias template instances
This avoid runtime that's exponential in the nesting depth of
alias template instances.

Change-Id: Ibde6a6d98753df54e8e495a8b4547a90e8313191
2018-05-11 00:02:02 -04:00
Nathan Ridge
45bbb2bb5b Bug 534332 - In the unused symbol checker, check for 'unused' attribute on the decl-specifier too
Change-Id: Ib4f26e5a04742af93c884819a5b2f1f714faeb97
2018-05-10 22:47:43 -04:00
Nathan Ridge
d8d04e2731 Bug 534332 - Allow C decl-specifiers to store attributes
The parser already accepted this, but the attributes were not stored
in the AST.

Change-Id: I7118eaff9dd150f15885f0aabb8a3b5e707394b0
2018-05-10 22:47:34 -04:00
Nathan Ridge
3ad16b909c Bug 534189 - Do not wait for the editor's shared AST to generate parameter guesses
We want to hold the index read lock while generating the guesses, but we
don't need an AST; we already have the one built for content assist.

Change-Id: I5a60aaca24ce345f5ae387664e025e6fa39cd9d2
2018-05-10 22:44:54 -04:00
Torbjörn Svensson
4881a2ecd4 Bug 330204 - Use ManagedBuildManager to build
The UI is using ManagedBuildManager to build a specified set of
configurations.
Insead of duplicating the logic (since clean does not support argument
transfer from HeadlessBuilder all the way to CommonBuilder), call the
public function for building a set of configurations.

WARNING: This fix is relying on a race condition in
ManagedBuildManager.buildConfigurations() since that method swaps the
"active configuration" while invoking the builder for the clean target.

Change-Id: I422a22e43a0acbef85420c04028475d61ad2ff85
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
2018-05-09 10:56:10 -04:00
Vlad Ivanov
0bf58281c2 Bug 519361: use placeholder type for template<auto>
Change-Id: I40f96479148a92618050ba50d7761f478f92024d
Signed-off-by: Vlad Ivanov <vlad@ivanov.email>
2018-05-08 03:32:11 -04:00
Jeff Johnston
9cf1f0625e Bug 533842 - Fix Launchbar for enabled/disabled Docker Connections
- fix problem with launch targets not being set correctly
- for ContainerTargetTypeProvider, make init() and changeEvent()
  synchronized
- move the test for ESTABLISHED connection after getImages()
  in ContainerTargetTypeProvider.init() method so that we don't
  see the connection as being UNKNOWN
- move addConnectionManagerListener() call in init() to be
  just after we fetch the list of current connections
- in ContainerGCCToolChainProvider, make init() and changeEvent()
  synchronized and move addConnectionManagerListener call to
  just after connections list are acquired


Change-Id: I24880a77755d634e8bce85db4f3354cf5ad7671d
2018-05-07 17:53:35 -04:00
Doug Schaefer
6b9042e694 Extend GCC OS detection
If we can't tell from the second element, try the third. If
it's linux, we're good. If it's elf, use the second element.
This catches the esp32 xtensa compiler which is driving this
change and make sure we don't mess up too many others.

Change-Id: I4650e5fa309677c596e9f5f64f50bcc2ebdef334
2018-05-06 17:02:16 -04:00
Doug Schaefer
7f0238a2aa Revert "Default to the middle element of the gcc tuple for the os name."
This reverts commit 3feb726cf5.

Change-Id: I98d70947084000b165151b4cf5b43d9b07ca74e7
2018-05-06 02:10:41 -05:00
Doug Schaefer
3feb726cf5 Default to the middle element of the gcc tuple for the os name.
Change-Id: Iea4ae6a8977406d06bf67719c8281e1062c5a12d
2018-05-05 21:28:58 -04:00
Nathan Ridge
d7c4642ab8 Bug 534098 - NPE in VariableHelpers.createType()
Change-Id: I0b287d31dba8075d8e99f74d6815d3018c985bc7
2018-05-03 23:38:03 -04:00
Vlad Ivanov
ac0e24da56 Bug 519361: try to deduce the type of non-type template parameters
This commit resolves some of type resolution errors for C++17 <auto> templates.

Change-Id: Ibdd3dcc0b7740bce1d6f390d034e1ce67c27be58
Signed-off-by: Vlad Ivanov <vlad@ivanov.email>
2018-05-03 23:36:36 -04:00
Doug Schaefer
3929a1fc80 Add dynamic variable for build directory of active core build config
This will allow us to use that value in external tool launches such
as those used by the Serial Flash launch configuration.

Also removal of the missing src source folder entry in meson.ui.editor.

Change-Id: I1033bdc0c18c9822490a9b8602cef83a42f7262d
2018-05-03 18:44:46 -04:00
Waqas Ilyas
b768556355 Bug 482950. Reset the read pointer when array is filled with new data
Change-Id: I4bc9d2969d4ef69657d8a825659cafbc3680119c
Signed-off-by: Waqas Ilyas <waqas.ilyas@gmail.com>
2018-05-02 21:54:05 +01:00
Nathan Ridge
e17354be5c Bug 533822 - Support void* as an argument type for the GNU sync builtins
Change-Id: Idabea11af3ae00cc9bf63070b5b211e2c1242e97
2018-04-27 02:50:41 -04:00
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