1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-04 07:35:24 +02:00
Commit graph

25657 commits

Author SHA1 Message Date
Nathan Ridge
337ba422b6 Bug 531076 - NPE in CSearchQuery.createMatchesFromNames()
Change-Id: I6614b6557c1a9152e1d8b336d1fcfdf359201fb7
2018-02-22 18:25:18 -05:00
Nathan Ridge
99e842bc6e Bug 530729 - Accept C++11 attribute specifier before parameter declaration
Change-Id: I425d1b351c10976392ecdf1e4b33f486938e0a04
2018-02-20 02:11:48 -05:00
Nathan Ridge
afb3ad7511 Bug 530762 - Add missing evaluation types to CPPCompositesFactory.getCompositeEvaluation()
Change-Id: I9d0750d6b3d96976309567f99a03b5dc47f0a6b7
2018-02-20 02:11:18 -05:00
Nathan Ridge
d8a9bdddb5 Bug 527844: ExpressionWriter does not write IASTLiteralExpression suffix
Change-Id: I5f5e120b1deea4ac33a2170cad0f454ab27871e2
Signed-off-by: Hansruedi Patzen <hansruedi.patzen@hsr.ch>
2018-02-20 01:15:52 -05:00
Jeff Johnston
13ecd568b3 Bug 531125 - Tupled gcc toolchains should not be the local default
- change ToolChainManager so that when creating the types map for
  the first time, make it a LinkedHashMap instead of HashMap so
  order of input is preserved (first in = first out)
- fix GCCPathToolChainProvider so that it adds non-tupled gcc
  to the ToolChainManger before adding any tupled version

Change-Id: I84602a98dd4949a2f9847d4e72c428cdedd60688
2018-02-16 18:01:58 -05:00
Jeff Johnston
03e190164e Bug 531071 - CBuildConfiguration doesn't handle quoted arguments
- fix CBuildConfiguration processLine() to call new stripArgs()
  method to parse the command arguments into separate argument
  strings and recognize quotes

Change-Id: Ifd0e1c1204b1b5d04498fdee202253f26283a2f5
2018-02-16 17:10:45 -05:00
Jeff Johnston
651a5af560 Bug 529910 - Debugging C/C++ container apps remotely is not working
- fix ContainerLaunchConfigurationDelegate to look at whether the
  daemon is running remotely or locally
- if running remotely, try to connect to gdbserver by using the
  Container ip address and the gdbserver port directly
  (will not work on Windows, but fixes Linux scenario)

Change-Id: I9a6188d90187e2ca6ab73c8042a02b6ff29d5f2f
(cherry picked from commit 7292fbff6d)
2018-02-16 15:59:46 -05:00
Jonah Graham
ba51970a8a [releng] Add missing plugin.properties
Change-Id: Ifd1ec18a0eeea859120f1193273eef361ba93a0f
2018-02-15 12:06:46 +00:00
Doug Schaefer
d4b3472cc9 Bug 531121 - Fix up/down buttons in toolchains preference
The content provider was overriding the change all the time.

Change-Id: I6d406dd6dc903cd890bfc7f7788d76e4388ff905
2018-02-14 10:18:35 -05:00
Nathan Ridge
c3aaf44022 Bug 530481 - NPE in QuickFixSuppressProblem.prepareFor()
Change-Id: Id83ce8e4cabf644b89d18a6e1c3f1199ec23396e
2018-02-13 17:18:22 -05:00
Doug Schaefer
10aaaca508 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
(cherry picked from commit 5b29b5b5d8)
2018-02-13 10:03:45 -05:00
Jonah Graham
97ce0ef991 Fix newlines.
Change-Id: Id1436a8242274ae4a544b4d635b2aabbb35c4599
2018-02-13 10:15:06 +00:00
Jonah Graham
031aaedb20 [releng] Bump version to 9.4.3
Change-Id: I04e9d3556df21b40ce67c5688b90e69d2501151e
2018-02-13 10:14:38 +00:00
Jonah Graham
2cdc63eae5 [releng] point CDT update site at correct branch
Change-Id: Ifa539c9d94fc802808cea6806f19f287447d9a60
2018-02-12 19:50:41 +00:00
Jonah Graham
400cd652cc [releng] Bump version to 9.4.2
Change-Id: I884e50fb282ed7781f95d8ce188525a064755e70
2018-02-12 18:54:18 +00:00
Nathan Ridge
ae8b4e25da Bug 519091 - Do not bypass the caching mechanism for class member specializations
Direct calls to CPPTemplates.createSpecialization() bypass the caching
mechanism, resulting in the violation of invariants such as every
binding being represented by a unique (AST-derived) binding object.

ICPPClassSpecialization.specializeMember() should be used instead.

Change-Id: I10ddb06d087d97cf05c6bed0d9f14a15440b87fe
2018-02-11 19:13:28 -05:00
Nathan Ridge
a8cf65fa75 Bug 529383 - NPE in CheckersRegistry.getResourceProfile()
Change-Id: I376cbf44c1fd237bd75a98ffc9e1daf60f5924ec
2018-02-11 19:12:59 -05:00
Nathan Ridge
276fda83a5 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-11 19:12:11 -05:00
Jonah Graham
be792e53ea [releng] correct cdt site
Pick up pre-built CDT repo from the correct branch's job
(9.4 instead of master)

Change-Id: I115902c5f21a645ed550db3c01f1c0d43af5ceeb
2018-02-10 21:08:13 +00:00
Jonah Graham
0fdf3bc6c3 [releng] correct nightly build location
Publish nightly 9.4 build to the correct location
on download.eclipse.org.

Change-Id: I6b2e439cf7cdc80f42e4b0ccbc273163ad6109bf
2018-02-10 20:45:25 +00:00
Nathan Ridge
5fe2be43e7 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-02-07 11:32:07 -05:00
Nathan Ridge
1566253cb8 Bug 490359 - Add support for C++17 nested namespace definitions
Change-Id: I5f2550e607195335475427f6fced63bf97eaa718
2018-02-04 16:10:40 -05:00
Nathan Ridge
5c8a84960c 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-02-04 15:49:19 -05:00
Nathan Ridge
911376f775 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-02-04 15:48:59 -05:00
Nathan Ridge
df727d536f Bug 529958 - Semantic highlighting of variable passed by non-const reference in a dependent call
Change-Id: I421bf98cbeff052c39716f1381e9f8930626318b
2018-02-02 23:30:58 -05:00
Jeff Johnston
15332e3287 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:34:21 -05:00
Jeff Johnston
4322789d6a Bug 530619 - NullPointerException in RemoteCommandLauncher.setProject
- fix RemoteCommandLauncher default constructor to set up
  the fLocalLauncher field to point to a CommandLauncher

Change-Id: Ic01a5b1d80d4b31021c7eb7080b0986e8fb61eea
(cherry picked from commit ea9050fdda)
2018-02-01 11:48:02 -05:00
Chin Huat Ang
9b72644480 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>
(cherry picked from commit 59669d9aed)
2018-01-31 12:33:25 -05:00
Nathan Ridge
8d1afc2d77 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-25 17:04:38 -05:00
Nathan Ridge
7754023eda Bug 529646 - Avoid computing the value of static fields for every object of a class type
Change-Id: Ic07a1fe5c84b67ed4a9be5e2d50beb9d5c1a54af
2018-01-25 17:04:22 -05:00
Jeff Johnston
5801b60b19 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
(cherry picked from commit 3b91c26043)
2018-01-24 16:26:07 -05:00
Jeff Johnston
96664e0f17 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
(cherry picked from commit e24a04895a)
2018-01-23 14:11:46 -05:00
Jeff Johnston
d1f3705e0f 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
(cherry picked from commit 64154f20f2)
2018-01-22 18:33:24 -05:00
Jeff Johnston
92c4d05dfb Revert change to LanguageSettingsEntriesTab language column
- revert part of change to LanguageSettingsEntriesTab languages
  column (this was done to get around gerrit issue and is not needed)
- change to entries column is left intact

Change-Id: I1704c18f99d0fe76411783a684da790022eb4643
2018-01-22 12:59:15 -05:00
Jeff Johnston
776a32c75e 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
(cherry picked from commit 746993c9ee)
2018-01-19 14:37:56 -05:00
Jeff Johnston
d84a19cfb9 Bug 529799 - problem with entries tree in LanguageSettingsEntriesTab
- fix provided by Christian Walther
- fix methods to use addTreeListener() instead
  of addPaintListener() to handle resizing
- in TreeListener, define treeExpanded method which uses pack method
  for entries column

Change-Id: I28db2059d3e0561ce9e5e52f569409de9aff9a6d
2018-01-18 15:46:01 -05:00
Jeff Johnston
9dbd3cffef Bug 529390 - Run in Container launch config not resetting err message
- modify ContainerTab to reset the error message when Docker
  Connections/Image changes cause a listener notification and
  then look to see if no connections or no images errors exist
- modify ContainerTab to reset the error message if the Docker
  Connection selected gets changed
- bump org.eclipse.cdt.docker.launcher version to 1.1.1

Change-Id: Iad5051750a5dd53a0eb458d73570fffd9e3867c4
(cherry picked from commit b49930716f)
2018-01-16 23:04:28 -05:00
Jeff Johnston
3a323a4a57 Bug 529386 - NoSuchMethodError in AutotoolsNewMakeGenerator.runScript
- bump up org.eclipse.cdt.remote.core so that autotools.core
  can refer to the latest version in its dependencies

Change-Id: I4ec198d7c5d367a4a479a1dd39839f3c2d8c4a96
(cherry picked from commit 7050f18ecf)
2018-01-16 21:04:06 -05:00
Nathan Ridge
ed352b6a6c Bug 529338 - NPE in QuickFixUseDotOperator.apply()
Change-Id: I195f804e64abb77b5540d5abf0249d4de7816024
2018-01-16 18:18:25 -05:00
Nathan Ridge
a9e984c995 Bug 529337 - NPE in PDOMCPPLinkage.onCreateNameHelper()
Change-Id: I4fc9ce82b0960dfc0a69044f9c2b3d1edb3d4622
2018-01-16 18:17:46 -05:00
Doug Schaefer
be9c1b8338 Bug 529121 - NPE fix for projects created with CMake
Not sure what changed but the launcher for these projects is now
returning null for an environment. Added a null check.

Change-Id: I05c94bb77f951f417577d0c2a3e3b4b6b996214b
2018-01-10 11:53:29 -05:00
Davin McCall
a293032938 Bugs 529299 and 491296. Fix indentation after 'noexcept'/'override'.
Change-Id: I3129e5f9fced4a27020f6ca27238bf5faf4df889
Signed-off-by: Davin McCall <davmac@davmac.org>
2018-01-10 00:08:49 -05:00
Nathan Ridge
0a639043fa Bug 517670 - Handle instantiation of closure types
Change-Id: I82208dbb2ec0e11760cbd78a073acefa627d8d36
2018-01-10 00:08:38 -05:00
Nathan Ridge
27b9230cad Bug 528457 - Store lambda parameters in index
The special binding type CPPLambdaExpressionParameter is removed.
Instead, a lambda expression parameters's are represented as
regular CPPParameters owned by the closure type's generated
function call operator.

Change-Id: I4afeac90c2595a1f84dfa59f057d0494b64d079c
2018-01-10 00:08:21 -05:00
Nathan Ridge
4b6c70fd5b Bug 528846 - Handle id-expression that instantiates to pseudo-destructor name of built-in type
The pseudo-destructor is represented as a CPPImplicitFunction, computed
lazily and stored by CPPBasicType.

This commit also adds support for alias templates to
CPPTemplates.getTemplateName().

Change-Id: I6774556b2493cb68d32c3007d6ce48c7805595f4
2018-01-01 20:07:55 -05:00
Nathan Ridge
465c607690 Bug 528456 - Store specializations of anonymous classes in the index
Change-Id: I9772df1430c239bd7144fdd5a2512b7a2fd3fca4
2017-12-26 21:50:13 -05:00
Hansruedi Patzen
d3c5937ba2 Bug 528196: Ignore cv qualifier for UDL operator lookup
Change-Id: If8567c96d8dedfbc4b5ffd7e67db074f1fe48ca2
Signed-off-by: Hansruedi Patzen <hansruedi.patzen@hsr.ch>
2017-12-22 01:17:48 -05:00
Nathan Ridge
6ef70ba044 Bug 527697 - Attempt deduction with all base classes of an argument type
Previously, we would only try the first base class whose primary
template matched that of the parameter type.

Change-Id: I0511e6a1ba1c7197887ff23bc37b70a2a820eb87
2017-12-22 01:13:58 -05:00
Nathan Ridge
58e2f34bfc Bug 528124 - NPE in CCOdeFormatter.findOverlappingPreprocessorStatement()
Change-Id: I4669d4938551506d7a06624b4318253cc4ecc643
2017-12-22 01:13:42 -05:00
Nathan Ridge
2ac7089288 Bug 528072 - Implement evaluation of __is_trivially_constructible
Change-Id: I331ea5c2f5203a87290d4ef537a8a75dab384c34
2017-12-22 01:13:22 -05:00