1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-15 13:05:22 +02:00
Commit graph

34486 commits

Author SHA1 Message Date
Nathan Ridge
d50aec4c2a Bug 530692 - Avoid EvalFunctionCall storing the evaluation for the implicit 'this' twice
EvalFunctionCall.fImplicitThis is sometimes redundant in that the
owner evaluation is already stored by one of the arguments. In
such cases, storing the owner separately in fImplicitThis can lead
to exponential complexity in chained method calls.

We resolve the duplication by computing the implicit this from the
function name evaluation instead of storing it where possible.

This was already implemented for cases where the function name
evaluation is an EvalMemberAccess in commit 659ff8c4a7. This
commit extends the approach to cases where the function name
evaluation is an EvalID.

Change-Id: Ic71e81b4692c51ffb8e15b3da9fc2dff1a554f05
2018-02-09 11:14:38 -05:00
Alexander Kurtakov
832f8d3d9d Add missing annotations.
Change-Id: I62df355cd6b85a9cbedd467def188eed2f4222e1
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2018-02-09 09:23:17 +02:00
Alexander Kurtakov
aac61a6123 meson: Enable warnings
And fix them.

Change-Id: I6a1594559504764aeb325f78fa47ff103b2183a9
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2018-02-09 00:03:33 +02:00
Alexander Kurtakov
3ebd99eab7 Remove unused private methods.
Change-Id: Ie3c9fa60313d7a14a1f633df2ced698e55dd75ee
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2018-02-08 23:22:22 +02:00
Jeff Johnston
ba7f4f26eb Add Run ninja command context menu item for Meson projects
- add new RunNinjaCommandHandler, RunNinja,
  AbstractMesonCommandHandler, and
  RunNinjaPage classes to support running ninja manually
  with env variables added and options specified
- add a new build method to MesonBuildConfiguration which
  specifies ninja options and environment variables
- add SWTImagesFactory for supplying the meson logo image
- add WizardMessages class for specifying messages for
  meson ui wizards
- add new MesonUtils class and move stripEnvVars from
  MesonBuildConfiguration to here
- add new constants to IMesonConstants interface

Change-Id: I8d635b2bd96792800bb07f4b3f1730be6e41eb24
2018-02-08 15:03:09 -05:00
Alexander Kurtakov
db1cd491d6 Remove useless imports.
Change-Id: Ie59d3942ea1df97440bd84e46a24753ed6ed429b
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2018-02-08 21:17:09 +02:00
Alexander Kurtakov
b4f1123050 Remove useless code.
* Else clause.
* Unused constructor in private class.

Change-Id: I51d9ac08000e9ef6364dac96e96297733335a367
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2018-02-08 21:11:59 +02:00
Alexander Kurtakov
2801712233 Build against CDT 9.4 and Oxygen everywhere.
Change-Id: I419f7a353e0d6fc1e0e0b2d8d16c24886f5d38ee
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2018-02-08 20:52:20 +02:00
Alexander Kurtakov
f92ccfca72 Set Maven prereq to 3.3.1 for CBI 1.1.4.
Change-Id: I147ffc8b840698774ea8c1243c7e0ca923b1f74e
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2018-02-08 20:45:59 +02:00
Alexander Kurtakov
3bcef21c1d Update Maven build.
Update findbugs and pmd maven plugins to latest version. Set the Maven
prereq to 3.3.1 for CBI 1.1.4.

Change-Id: I59d5a7eeff1cd2d378eb362141433818ea8fec0a
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2018-02-08 20:42:45 +02:00
Alexander Kurtakov
b66f413759 Remove redundant superinterface.
Change-Id: Idf96b85189c03b7a30772751617281806265dcbc
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2018-02-08 20:11:45 +02:00
Alexander Kurtakov
d7958ccde5 Build against Oxygen.
Like the rest of CDT stack.

Change-Id: I4734020e5455eacac9a3eaadd68ec2bf38183b3b
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2018-02-08 20:06:26 +02:00
Alexander Kurtakov
12681f7807 Remove unnecessary suppress warnings.
Change-Id: I1c3de215d9c4f488309f53eaa4a90a32210994be
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2018-02-08 13:03:22 -05:00
Alexander Kurtakov
13f83967c4 Remove unnecessare NON-NLS.
Change-Id: I5ee2ee0c2fe784d1734dd48c653232ba9909f6bd
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2018-02-08 13:02:21 -05:00
Mat Booth
b50ba14831 Bug 530620 - Hook build of native serial port driver into maven build
In the same vein as commit dff6b3bae3, this commit adds profiles
to trigger the build of the serial port component for the current
architecture, only when the profile is activated.

The serial port makefile is also improved to support building for
ppc64 and ppc64le architectures and to honour CFLAGS and LDFLAGS
that might be set in the environment, such as during RPM build.

I also hooked in the makefile "clean" targets so that invoking
"mvn clean verify" will do the right thing.

This simplifies the build for downstreams building from source
significantly.

Change-Id: Ie8cea95d953b256a1f62b77c76370ed7b3d81cee
Signed-off-by: Mat Booth <mat.booth@redhat.com>
2018-02-08 11:41:27 -05:00
Alexander Kurtakov
a3a3855026 Build with Tycho 1.1 and CBI 1.1.4
Tycho 1.1.0 is a prereq for building against Photon.

Change-Id: I2854741cf5e5763b9481399de4adb6c6eb4316b7
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2018-02-08 18:04:47 +02:00
Alexander Kurtakov
95343d6e17 Build with Tycho 1.1.0 and CBI 1.1.4.
Tycho 1.1 is a prereq for building against Photon.

Change-Id: I01f0d947786244d08c6caf4de6ba1e01aa1292ad
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2018-02-08 18:02:21 +02:00
Alexander Kurtakov
3bb6aaf4b3 Update to Tycho 1.1.
This is a prereq for building against Photon. While at it update CBI
maven plugins to 1.1.4.

Change-Id: Ia4a5f8246978d6d6e915e1e7e022020b06889ebd
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2018-02-08 17:28:48 +02:00
Alexander Kurtakov
73511a8b4c Fix target file.
http://download.eclipse.org/tm/terminal/builds/development/nightly/ is
not a p2 repo url. Removed another empty tm site too. Consolidated into 
single url.

Change-Id: I9bc779cbbad1c2748d43346c6b4b06a5f7ab77ff
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2018-02-08 08:22:36 -05:00
Jonah Graham
65157ef4d5 Bug 530635: Add ability to do "set remotetimeout" via UI
Change-Id: Iaeaea1e8656d85cb854a5b27f5f212fa37a3159d
2018-02-06 09:08:39 -05:00
Nathan Ridge
345f37874c Bug 530481 - NPE in QuickFixSuppressProblem.prepareFor()
Change-Id: Id83ce8e4cabf644b89d18a6e1c3f1199ec23396e
2018-02-05 22:51:32 -05:00
Doug Schaefer
5b29b5b5d8 Bug 530673 Fix issue with CMake and changing toolchains.
Cleaned up add and remove of toolchain files, handling of when
a toolchain changes for a config, and the launch bar tracker to
be more accurate with toolchains.

Change-Id: I1a1efdf08a5f47058552c85404fe8d602d158e73
2018-02-03 20:33:56 -05:00
Jeff Johnston
e8f619c344 Bug 529121 - "Build target" has stopped working in CDT 9.4.0
- default environment using EnvironmentReader in
  CommandLauncherWrapper class in CommandLauncherManager
  if no environment set for wrapper to match behaviour
  of CommandLauncher

Change-Id: I71ff37b3d8f2049dc705e97bf28f939ac78bd390
2018-02-02 17:05:30 -05:00
Jeff Johnston
1ae547908b Fix some API issues caused by some recent CommandLauncher additions
- remove new exposed field from CommandLauncherManager and
  add correct @since tags
- create new ICommandLauncherFactory2 interface so that no
  additions are made to ICommandLauncherFactory
- add @since tag for ICBuildCommandLauncher interface
- make ContainerCommandLauncherFactory implement the new
  ICommandLauncherFactory2 as well as ICommandLauncherFactory

Change-Id: I7bbacb59e284b43e6d142accf59b6ab9df274438
2018-02-02 14:41:18 -05:00
John Dallaway
0e9460ec7b Bug 529171: Disable reset and halt by default
Change-Id: Ic616df36fc9af1877b22f31bfc6ef87fa3366369
Signed-off-by: John Dallaway <john@dallaway.org.uk>
2018-02-01 20:45:51 +00:00
Jeff Johnston
ea9050fdda Bug 530619 - NullPointerException in RemoteCommandLauncher.setProject
- fix RemoteCommandLauncher default constructor to set up
  the fLocalLauncher field to point to a CommandLauncher

Change-Id: Ic01a5b1d80d4b31021c7eb7080b0986e8fb61eea
2018-02-01 11:14:07 -05:00
Jeff Johnston
33eeb12ae8 Bug 530000 - Add Meson Build support
- rewrite unconfigure Meson Property page logic to parse the
  output of meson --help and form the controls accordingly
- do not add an entry for help option
- add environment variable text entry to unconfigured property
  page to allow the user to add things such as CFLAGS=xxxxx
- fix MesonBuildConfiguration to only use the MESON_ENV property
  when running meson for the first time and to prepend the
  current environment first to ensure local path, etc.. is
  still set, otherwise it won't be able to find commands it
  needs such as execvp
- parse the environment text string to look for entries that
  use single or double quotes so that entries may use the = sign
  or spaces
- when building, have ninja use the -v option so that the compile
  and link commands are output to the console

Change-Id: I40d04234a7de74417c43f4c39bb2e21c86deb8a2
2018-01-31 18:49:06 -05:00
Nathan Ridge
f6b60ed850 Bug 530430 - Proper handling of class initially declared as a friend
When a subsequent regular (non-friend) declaration of such a class
is indexed, the index binding needs to be marked as being fully
visible to name lookup.

Change-Id: I1a625f93eda1af257a9af50b5c4f115fc9bf6526
2018-01-31 13:09:31 -05:00
Chin Huat Ang
59669d9aed Bug 530478 - Relax AC_INIT macro validation in AutoconfEditor
When AutoconfEditor is set to 2.67 or newer, relax the validation of
AC_INIT version string.

Change-Id: I65221857905e867e3eea2de219ddf68c60f6d39b
Signed-off-by: Chin Huat Ang <chin.huat.ang@intel.com>
2018-01-31 12:30:19 -05:00
Jeff Johnston
127e71423e Bug 530000 - Add Meson Build support
- initial contribution of Meson Build support based upon
  Core Build CMake

Change-Id: I9a91901254b7750f4f5eef69ed5375a5c1cce0a4
2018-01-30 15:47:12 -05:00
Jeff Johnston
55fb64151b Bug 530468 - Support passing CBuildConfiguration to Cmd Launcher Factory
- add new ICBuildCommandLauncher interface
- add new defaulted method to ICommandLauncherFactory interface
- add code to look at Build Configuration properties in
  ContainerCommandLauncherFactory
- add new methods to CommandLauncherManager and
  ContainerCommandLauncher
- add an update dialog call in ContainerTab
- add calls to set and get CBuildConfiguration to
  ContainerCommandLauncher

Change-Id: If95fafe592c7ea4580bae1a15d168d1163e132fd
2018-01-29 16:14:18 -05:00
Nathan Ridge
1d9e549ae7 Bug 530086 - Instantiation of template argument where substituted argument is a pack expansion
The first patch for bug 527697 made us not instantiate such an
argument, because determinePackSize() would return PACK_SIZE_DEFER.

The motivation for that fix was to avoid sizeof...(T) prematurely
instantiating to a concrete value in cases where T was mapped to
a pack expansion.

This patch reverts the change to determinePackSize() and applies a
different fix for the sizeof...(T), specific to EvalUnaryTypeId.

Change-Id: Idc231aeecb5d50e93dda364c6d2deb08057cc8b6
2018-01-28 18:37:12 -05:00
Nathan Ridge
5f9964098c Bug 530086 - Consider pack expansions when matching non-type arguments to parameters during instantiation
Alias templates can be instantiated with dependent arguments.

Change-Id: I123ee574ed2eecb09b551360a0bbc966893d9e34
2018-01-28 03:37:03 -05:00
Jonah Graham
ee784263c2 Bug 530371: fix device disposed SWTException on shutdown
Change-Id: I2cb4bf5da4ce35d8b7da4a31d0fa2845c9587985
2018-01-26 10:12:40 -05:00
Jonah Graham
b15619d4b1 Bug 530374: Update API Baseline post 9.4 release
Change-Id: Iafc6f8f754475ca77e3d22b848f3a801b2e80edc
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
2018-01-26 13:29:58 +00:00
Nathan Ridge
f413c21d03 Bug 490359 - Add support for C++17 nested namespace definitions
Change-Id: I5f2550e607195335475427f6fced63bf97eaa718
2018-01-25 17:32:58 -05:00
Nathan Ridge
69c84d4f05 Bug 529958 - Semantic highlighting of variable passed by non-const reference in a dependent call
Change-Id: I421bf98cbeff052c39716f1381e9f8930626318b
2018-01-25 17:02:52 -05:00
Sezgin Halibov
4b52d24816 Bug 530325 - Could not start RSE daemon/server with Java 9
Change-Id: Ib38f82476f381448392bbb9a1770ce188f4f2e4b
Signed-off-by: Sezgin Halibov <sezgin.halibov@gmail.com>
2018-01-25 19:26:44 +02:00
Jeff Johnston
3b91c26043 Fix launch config matching for Run as Container Application
- fix LaunchShortcut find launch config method so that if the
  active configuration is not enabled for Container build, then
  it will look for config with default connection and image

Change-Id: If11865dd43cd2a08a0565b3483523002b0a00613
2018-01-24 12:58:15 -05:00
Jeff Johnston
e24a04895a Fix current patch concerning Container launching
- fix CApplicationLaunchShortcut find config method test for
  Container build so we don't ignore valid local launch configs

Change-Id: I4453ce2b26e15c9ec8ad53252e9e539c1268ddd8
2018-01-23 13:20:53 -05:00
Jeff Johnston
64154f20f2 Bug 530053 - Launching locally after Container launch doesn't work
- fix other way round, launching locally, then in Container
- add null check for connectionURI in Docker LaunchShort
  when searching launch configs in case there is a local
  configuration in the list

Change-Id: I08f89a9d1dccff3ace54667e86e9d3e8840f8694
2018-01-22 14:58:40 -05:00
Martin Oberhuber
3548a7c700 Releng: Update tm.terminal.control to 4.4
Change-Id: I457e26ed01a48a475da2174a2b5074709c3ca6d9
Signed-off-by: Martin Oberhuber <mober.at+eclipse@gmail.com>
2018-01-21 23:37:45 +01:00
Martin Oberhuber
74eb8752fe Releng: Update parent POM to 4.4 and enable mvn Photon profile
Change-Id: Ib5fc22afc25f13690c67e316194da77c224a13af
Signed-off-by: Martin Oberhuber <mober.at+eclipse@gmail.com>
2018-01-21 23:25:04 +01:00
Martin Oberhuber
7ca2575d98 Releng: Update Target Platforms for Testing
Change-Id: Ifadc75de1c54af9f5d34b63986a9d94acdd84c54
2018-01-21 22:34:35 +01:00
Martin Oberhuber
a3e0c996a1 Merge "Bug 517358 - RFE: method to read TextCanvas content" 2018-01-21 15:42:58 -05:00
John Dallaway
573af6187b Bug 494059: Add OpenOCD extensions
Change-Id: I0a2820f40c641a85aac11e8d72b6aca65f599b6e
Signed-off-by: John Dallaway <john@dallaway.org.uk>
2018-01-21 16:35:50 +00:00
Jeff Johnston
746993c9ee Bug 530053 - Launching locally after Container launch doesn't work
- add logic in CApplicationLaunchShortcut find launch configs to
  discard any launch config that has a Docker Connection URI
  attribute

Change-Id: Ieb53f4c89b24cd3fac01bec35eafc8c62748d0b3
2018-01-19 14:37:44 -05:00
Nathan Ridge
a4599f7c36 Bug 529696 - Propagate the template-id strategy into names contained within a type template argument
This avoids expontential complexity when type template arguments inside
an ambiguous name specifier themselves contain ambiguous name specifiers.

The patch also enhances TemplateIdStrategy to allow marking and backing
up to a branch point, and uses this ability in templateArgument().

Change-Id: Ia03e9cd0bc026b02b85edc05ed327cce883d6a59
2018-01-18 12:41:47 -05:00
Nathan Ridge
88da6c08bb Bug 529646 - Avoid computing the value of static fields for every object of a class type
Change-Id: Ic07a1fe5c84b67ed4a9be5e2d50beb9d5c1a54af
2018-01-17 13:21:19 -05:00
Mat Booth
b56b76df66 Bug 529762 - [launchbar] "widget is disposed" sometimes at startup
Additional isDisposed checks added to prevent unhandled event loop
exceptions at platform startup on new workspaces.

Change-Id: Ib2e33def766c23719e483496d110644a2cd8a712
Signed-off-by: Mat Booth <mat.booth@redhat.com>
2018-01-17 11:41:41 +00:00