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

13510 commits

Author SHA1 Message Date
Sergey Prigogin
8a079c6639 Cosmetics
Change-Id: I2335d8d96c7e9bec13b98c5ac553fa10dce6d9f4
2017-02-14 20:38:13 -08:00
Sergey Prigogin
2dee53e9c5 Cosmetics
Change-Id: Ifbd153a926898ad3820b6e03cca14555495712fa
2017-02-14 17:02:55 -08:00
Sergey Prigogin
5fe63e30ba Cosmetics
Change-Id: Ie4060b90f9ad492d0aece30d2bc13702fa2a9244
2017-02-14 15:56:02 -08:00
Sergey Prigogin
56e6da621e Bug 512201 - NPE in Organize Includes
Change-Id: I09d7b250697ae3ff00a5f615000512524c74ff01
2017-02-14 15:55:48 -08:00
Marc-Andre Laperle
0046099052 releng: Make use of Tycho POM-less functionality
This removes a lot of pom.xml from the source tree. This is using the
"POM-less" Tycho functionality.
See
https://wiki.eclipse.org/Tycho/Release_Notes/0.24#POM-less_Tycho_builds

One advantage of this is that you do not need to update the version in
the pom.xml when you change it in the MANIFEST.MF because the pom.xml is
automatically generated. This also reduces a lot of the duplicated
information and pom.xml repetition.

- Maven 3.3 and up is required.
- Only eclipse-plugins and eclipse-features can be pom-less.
Repositories, target and others still have pom.xml.
- New parent poms are added because a parent is necessary directly one
level above the plug-in/feature that will have its pom generated
- Some test plug-ins had to be renamed .test -> .tests because it's
required so that it detects that it's a test plug-in
- Some suites were renamed so that they all use the same consistent name
"AutomatedIntegrationSuite"
- Profiles were added for the more common test configurations. They are
activated by the presence of simple .properties files that only serve to
activate the correct profile. The profiles:
  - One for UI tests (UI present and start in UI thread)
  - One for SWTBot tests (UI present and do not start in UI thread)
Other test plug-ins that are too different are kept intact and still
have
a pom.xml
- Fragments are kept intact since they all have different target
platform configurations

Change-Id: I9d73380eb766f547830c552daf08053a30b1845c
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2017-02-13 23:19:56 -04:00
Sergey Prigogin
f78a7306b3 Bug 512150 - Don't allow indirect inclusion by partner header for test
files

Change-Id: I6d0eb9078b92b4cf6e9345cc58824994dd679324
2017-02-13 20:48:45 -04:00
Sergey Prigogin
e431143a97 Removed an unused method.
Change-Id: Ica6fc7ba71ec039f4a33ca01c5fc1867dfdb54b1
2017-02-13 20:48:21 -04:00
Marc-Andre Laperle
3f0e34177c Bug 511677: Mitigate deadlock closing project during indexer job
A deadlock can occur if a project is closing and an indexing job is
running.
There is a patch on Gerrit that reproduces the lock all the time:
https://git.eclipse.org/r/#/c/90603

Thread #1, closes the project (*workspace lock*), removes the binary
parser for this project. Around the same time...

Thread #2, is just about to start indexing the project
(PDOMRebuildTask).
  It visits the C model to collect source files. Because the binary
parser was removed, it reloads the project description, which triggers a
listener (CExternalSettingsManager) to get a *workspace lock*.

Thread #1 then blocks on cancelling the indexer, which will never happen
because it is blocked on getting the workspace lock.

This deadlock could happen for any code being called by the indexer
thread that gets a workspace lock before the indexer cancels itself.
Because so much code can be hooked up to the C model (extensions,
listeners, etc), it is difficult to guarantee that this will not happen.

- Possible option 1. Changing CExternalSettingsManager to execute
asynchronously (Job) breaks other code that expect the operation to be
synchronous. Doing this also does not guarantee that other code will not
get a workspace lock.

- Possible option 2. Cancelling the indexer before the binary parser is
removed from the map: does not break any tests but only cover this
particular case of the binary parser triggering the project description
reload. Any other code that triggers a project description reload (and
workspace lock) will still be an issue.

Option 2, although incomplete, seems the safest and more reasonable at
this point. Judging by the comments in bug 327126, to fix this properly
would require quite a big effort that I'm not sure anyone would do.

Change-Id: Ida7b45558e4430bc5cc9a1eb5ef25e8d19487c31
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2017-02-13 15:11:49 -05:00
Nathan Ridge
11ccc87055 Bug 511726 - Handle unresolved field owner type in CPPASTFieldReference.getFieldPosition()
Change-Id: I0ded6f44f8aad69d54c361432afcb423ed6601b2
2017-02-12 12:20:00 -04:00
Nathan Ridge
2e1f2d475a Bug 511653 - Completion of inheriting constructor in using-declaration
Change-Id: If20d85bd6199e8f08152f3a5801bfb30b61d1d09
2017-02-12 00:04:11 -04:00
Nathan Ridge
c0ba7f6bfb Bug 511658 - Destructor call via alias template name
Change-Id: I64a7ec62a05345983e9e298a6ba735f63385486b
2017-02-11 21:25:10 -05:00
Sergey Prigogin
2899b9098e Bug 509898 - IndexFileSet.containsDeclaration is slow and is causing UI
freezes

Fixed logging of cycles in IndexFileSet.containsDeclaration.

Change-Id: Ic27b161aacb7706f8f06beb1f876f86100421328
2017-02-09 18:12:17 -08:00
Sergey Prigogin
64f00b9457 Removed obsolete code.
Change-Id: I97aef668d2248103b88c77f03c4481807c0e4286
2017-02-09 13:28:51 -08:00
Nathan Ridge
e20812dc8b Bug 511522 - Navigation to type named by 'auto' in variable declaration
Change-Id: I3f6a35cb2498d7a9de31db7c283027fbc33fe688
2017-02-09 02:20:35 -05:00
Nathan Ridge
ec3ab3016d Bug 511331 - Do not color entire qualified name with problem highlighting
Change-Id: Ic712ec2e03bdf03f5ae97019fb9ae8994c5dec23
2017-02-09 02:20:35 -05:00
Sergey Prigogin
a88b16d124 Bug 399147 - 'Find references' does not find using-declarations
Trigger index rebuild to rebuild corrupted binding reference lists.

Change-Id: I94a68fc260c8543840aa712efc97650152597a0a
2017-02-08 18:56:39 -08:00
Sergey Prigogin
5462bac381 Bug 509898 - IndexFileSet.containsDeclaration is slow and is causing UI
freezes

Added cycle detection to IndexFileSet.containsDeclaration.

Change-Id: I48a596bd680bd4f764739b9170a98c907c41ae8c
2017-02-08 18:24:29 -08:00
Sergey Prigogin
5e793c9b43 Revert "Bug 399147 - Make 'Find Reference' find using-declarations"
The change is invalid since a PDOMName can participate in only one
binding at a time through its BINDING_PREV_OFFSET/ BINDING_PREV_OFFSET
pointers.

This reverts commit 2706699543.

Change-Id: I1a4dd7b189b85a0d9c1cca2660d33ab7351a025c
2017-02-08 12:46:40 -08:00
Marc-Andre Laperle
95e05f485d Remove profiles that helped skip ppc64le
Those profiles were useful when keeping compatibility with Eclipse 4.5
but this is not required anymore.

Change-Id: Ic9ef7beecee1b5bd072ec192048ab409b19844c9
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2017-02-08 09:51:43 -05:00
Nathan Ridge
0d35254d82 Bug 511427 - ClassCastException in CompositeCPPClassType.wrapBindings()
Change-Id: Id02d59a67b98131aaa4afc8936f89d0985ef93cf
2017-02-07 21:32:03 -04:00
Nathan Ridge
27775e3393 Bug 475581 - Make AbstractCLikeLanguage.createScanner() not final
This allows extenders to replace the preprocessor.

Change-Id: I8c6a53225608e4a21560b31bed3b5f37291ba612
2017-02-07 21:30:08 -04:00
Sergey Prigogin
c6955df2e2 Bug 511871 - CContentAssistProcessor.createContext may leak index lock
Change-Id: I828c94484c7b1594ba72551b80cd5ed6e6a8576c
2017-02-07 14:48:32 -08:00
Sergey Prigogin
ff23fc9dbe Cosmetics.
Change-Id: I8c38ac32c7cb4e335e16b92a54eeaf6faa0abfe2
2017-02-06 19:37:44 -08:00
Sergey Prigogin
d6ab03abb9 Bug 511808 - Expand namespaces by default regardless of depth level in
Outline view

Change-Id: I9061ad64e442e8859fd79dbb4bf437443ef545a7
2017-02-06 19:30:01 -08:00
Sergey Prigogin
0be1934cec Removed use of a deprecated class.
Change-Id: I2f0bb36c79974e62fcf06a77ca78954f8103a150
2017-02-06 18:44:50 -08:00
Sergey Prigogin
be08c70459 Removed redundant casts.
Change-Id: I7ba50740e4b63897d77ef0204afa5343314d4916
2017-02-06 18:37:47 -08:00
Jeff Johnston
7d0117d24e Bug 511229 - RFE: Add quick fixes for some basic gcc errors
- change codanMarkerResolution schema to support translatable
  regex statements for matching
- bump cdt.codan.ui version
- add additional codanMarkerResolution extensions to codan.checkers.ui
  to handle some basic gcc error messages with quick fixes
- add QuickFixAddSemicolon, QuickFixRenameMember,
  QuickFixUseDotOperator, and QuickFixUsePointer classes
- add new QuickFixMessages
- add plugin.properties to cdt.codan.checkers.ui to allow the quick
  fix regex matchers to be translated in the future
- change the generic error message for gcc error parser so that the
  column is reported as the problem variable (useful for certain
  quick fix resolutions)
- bump up cdt.core

Change-Id: Ibb24c1a79c4d91ead3fc629ea3d4e7425b4e7f23
2017-02-06 12:33:34 -05:00
Sergey Prigogin
3bb38bf874 Bug 509898 - IndexFileSet.containsDeclaration is slow and is causing UI
freezes

Added debug logging of time spent in IndexFileSet.containsDeclaration.

Change-Id: I4523abac4f56c4284ef03da5e82fd39b6dc1d412
2017-02-06 01:25:19 -04:00
Sergey Prigogin
6ddaed7dd7 Improved tracing code.
Change-Id: I8aeb9085e1de9876ddb078a63ccdbfb17858311b
2017-02-06 00:54:16 -04:00
Sergey Prigogin
0b641f1216 Removed obsolete code.
Change-Id: I698f57e290125aca55bb8c2209dca2a9c4cf745f
2017-02-05 21:23:41 -05:00
Marc-Andre Laperle
bd5cec12a8 Remove AIX support
Eclipse 4.7 removed AIX support so CDT should also remove it.

Change-Id: I9ed50a4c47e7b861eb2adeb86e857d2a78b4834b
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2017-02-05 21:16:48 -05:00
Sergey Prigogin
01236146d1 Removed unused code.
Change-Id: I1afd20c0468cdd8347e3ee8fa3fd3c21fc1d216f
2017-02-05 15:14:08 -08:00
Sergey Prigogin
7a9f9ebcc4 Cosmetics
Change-Id: I990c8920e32d8895a0f84d8911c2448281d53161
2017-02-05 18:13:49 -05:00
Nathan Ridge
a44bef00d6 Bug 511274 - Compute correct replacement length for ParameterGuessingProposal
Change-Id: Ia2d6f10086f8d2a9ec922a3ff37eadc8ab94c9ed
2017-02-05 17:54:53 -04:00
Sergey Prigogin
90ad016967 Bug 509898 - IndexFileSet.containsDeclaration is slow and is causing UI
freezes

Added tracing of unusually expensive bindings in IndexFileSet.

Change-Id: I316257d32b4af7357644a2958177efd2df58f864
2017-02-03 12:43:11 -08:00
Nathan Ridge
e7d8ba0ec3 Bug 511186 - Noexcept specifier in type template argument
Change-Id: If0c3299c563829a9b3549f78b346a19e68042456
2017-02-03 13:53:35 -04:00
Nathan Ridge
6a8afa21a6 Bug 511108 - Update the set of supported feature reported in __has_feature
Since the last update, C++14 relaxed constexpr and a few new type traits
have been implemented.

Change-Id: I6fb780973c113820bfecf6a2bc7f1b7f5b1494e9
2017-02-03 13:52:06 -04:00
Nathan Ridge
4c172b2407 Bug 511108 - When parsing as clang, enable the extensions supported by clang in the scanner extension configuration
Change-Id: I43fe278e08b3274c465374503f994e6dc46668e6
2017-02-03 13:51:41 -04:00
Nathan Ridge
8b64d79199 Bug 511108 - Only report support for type trait primitives in __has_feature if such support is actually enabled by the active scanner extension configuration
Change-Id: I0631f555935fdbdd1f2a98fe737a129ef5b90eda
2017-02-03 12:51:07 -05:00
Sergey Prigogin
dd92d1c9d5 Code streamlining.
Change-Id: If94003c41bac154601ddd8ce87a0418fbf4f1b0c
2017-02-03 01:10:07 -04:00
Sergey Prigogin
66c965df2e Bug 511606 - ClassCastException: CPPTypedefSpecialization cannot be cast
to IArrayType

Change-Id: Iac14f1a84323e2a0fee01cb23fb1ce33ee27757c
2017-02-03 00:08:55 -05:00
Nathan Ridge
5a4e821cfb Bug 511048 - Offer completion proposals for nonstatic methods in a using-declaration
Change-Id: Ifb3aee10c354aebe606c439cdda1453b1cc29095
2017-02-03 00:47:57 -04:00
Nathan Ridge
7b8bf74386 Bug 511122 - Instantiation of dependent destructor name
Change-Id: I090439b6c525cae3bf054f65f67190811232d64c
2017-02-03 00:46:07 -04:00
Nathan Ridge
fbc18a270f Bug 511108 - Do not attempt to resolve the name in an EvalID if the name owner is still dependent
Change-Id: I63dcfa4413569554f30be0c6a94c2b1691515aa4
2017-02-03 00:44:19 -04:00
Nathan Ridge
8c7c06646b Bug 511429 - Handle TypeOfDependentExpression in PDOMCPPLinkage.unmarshalBinding()
Change-Id: I2eca438be88bb0d78dae5f511fa1fde46965fa65
2017-02-02 23:39:50 -05:00
Nathan Ridge
5babeafa31 Bug 510834 - Propagate substitute failure in EvalID.instantiate() with field owner
Change-Id: I27088b7da18f7fe52d77bd669e32b225a1e99d21
2017-02-03 00:39:34 -04:00
Nathan Ridge
e832c49faf Bug 510706 - Follow-up to ensure a UniqueType's contribution to a signature is unique
Change-Id: Iceaf946c073455f10ffd8d95013442da91309be3
2017-02-01 12:53:53 -04:00
Nathan Ridge
52299c9124 Bug 499374 - Extend the preview code on the Syntax Coloring preference page
The code now includes a template parameter and a task tag, so their
respective colorings can be seen in the preview window.

Change-Id: Ie74a0af04b016ef506d665a9472775aa8f6d757c
2017-02-01 12:51:36 -04:00
Nathan Ridge
4ed57293e6 Bug 510998 - Use the semantic highlighter to color the preview code on the Syntax Coloring preference page
Previously, the highlighted ranges in the preview widget were hard-coded.

Change-Id: Ib1221ae69fcbe7138549d1483da10bad2251430e
2017-02-01 12:50:04 -04:00
Nathan Ridge
b10699be77 Bug 510998 - Fix a deprecation warning in CEditorColoringConfigurationBlock
Change-Id: I6da1652d9b6fcc7a9775d427a57c858cb7323f1e
2017-02-01 12:49:40 -04:00