1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00
Commit graph

25919 commits

Author SHA1 Message Date
Marc-Andre Laperle
467aab5559 Bug 539307 - Set correct project nature in Codan tests to fix wrong content type
When the lsp4e-cpp plugin is present, two content types are associated with
.cpp extension. The lsp4e-cpp one is chosen because it happens to be first.
Normally, the CDT C++ content type gets its priority boosted when the C++
project nature is present. Some Codan tests run on .cpp files but without
the C++ project nature so the files are of wrong content type and the tests
fail. Once the nature is fixed, some tests were failing because they should
run on C files but loadCode was not loading them as C++ files because of the
project nature.

Change-Id: I61b77d409e81c3cf78e60adf0c77a9bf976ac9d5
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2018-09-30 19:26:25 -04:00
Nathan Ridge
956ce6b2dc Bug 539535 - Refactor CPPSemantics.findOverloadedOperator() so that if something goes wrong during one of the member or non-member lookups, the other is still performed
Change-Id: I34c1321a0aa943ee82d1e6c45cf33d97e2f5b5ca
2018-09-30 19:06:01 -04:00
Nathan Ridge
dcc09f1975 Bug 539535 - Originate an accurate lookup point in CPPASTFieldReference.createEvaluation()
Change-Id: I8030d5b304a61d7235a8ca92cf99de2d9a9aff68
2018-09-30 19:05:40 -04:00
Marc-Andre Laperle
fde7476a1a Bug 508610 - [lldb] Arguments tab has no effect
"-gdb-set args" is not implemented in lldb-mi, use -exec-arguments instead.
See also https://bugs.llvm.org/show_bug.cgi?id=38834

Change-Id: I1c9db9020effe92dae6ec13e458c3eaf165f920a
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2018-09-28 00:09:22 -04:00
Marc-Andre Laperle
18c2d84781 Bug 503298 - [lldb] Remove workaround for executable not being absolute
The underlying issue was fixed in CDT in commit 783787a.
Also, even if that code changes under the rug, lldb might be fixed to handle
the working directory anyway.
See https://bugs.llvm.org/show_bug.cgi?id=30265

Change-Id: I8654ec6c601b49fbfb8258c1a80b95c84021410d
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2018-09-28 00:06:46 -04:00
Hansruedi Patzen
920f5e3a7f Bug 512822: "Launch failed. Binary not found" even after building
Builds upon https://git.eclipse.org/r/#/c/92129/ but also uses the hints
to only read the file if necessary. I further reverted some of
the changes done with the patch for 'Bug 510987 - Properly support PIE
executables as build output' since the binary will now be seen as an
executable anyway.

Change-Id: I075fef67f3b101ddbc64786dcbc2ca41cc114e25
Signed-off-by: Hansruedi Patzen <hansruedi.patzen@hsr.ch>
2018-09-27 14:20:38 -04:00
Nathan Ridge
45a30f5967 Bug 539145 - Avoid NPE in CaseBreakQuickFixFallthroughAttribute.validPositionForFallthrough()
Change-Id: I8a53691f91411bf88f95112d99c1967b1238515a
2018-09-27 13:31:34 -04:00
Nathan Ridge
acca2b3b6e Bug 539145 - Avoid opening an editor during CaseBreakQuickFixFallthroughAttribute.isApplicable()
Change-Id: I82c5b345cfb017680d06f3caeff0c9839780ee68
2018-09-27 13:31:26 -04:00
John Dallaway
87cd426861 Bug 539455: Report debug command errors via status handler
Change-Id: I4c3abbb660e426580ce8f836e6e19a897fbaeefe
Signed-off-by: John Dallaway <john@dallaway.org.uk>
2018-09-27 12:33:07 +01:00
Marc-Andre Laperle
70a03a862e Bug 518273 - Toggle function should remove the override keyword when moving out of class
Change-Id: I7ad80262c7f9b98d3ae9b23ae2b45bf0c94ccf99
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2018-09-26 19:24:36 -04:00
Christian Walther
c6abbfb6d3 Bug 525705 - Fix Spawner.waitFor(pid) returning prematurely
On Windows XP, waitFor(pid) would return -1 immediately instead of
waiting for the process to exit. This caused starting a debug session to
be stuck at "Initializing debugger services 62%" because the GDB it was
trying to talk to was terminated immediately after being started.

Binaries built with MSVC10 tools and `nmake /f Makefile_x86_64.mk
/NOLOGO spawner`.

Change-Id: I532f63c7a5facdf867ed94945b0cd26b4177c3bd
Signed-off-by: Christian Walther <walther@indel.ch>
2018-09-26 16:10:31 -04:00
Marc-Andre Laperle
55245c4252 Bug 510833 - [lldb] IllegalStateException in LLDBProcesses$LLDBMIThreadDMData starting session
Re-arrange the code to prevent done() from being called twice.

Change-Id: I25737e9b6a7c188db62381695562046e326cacd0
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2018-09-26 00:33:23 -04:00
Nathan Ridge
b803d1030c Bug 538615 - GNU-style attribute preceding standard attribute specifier
Change-Id: I8f736ab354b07fb14cba35dec10c8b6d96917d70
2018-09-24 21:24:11 -04:00
Nathan Ridge
732c4874ee Bug 539076 - Substitution of alias template for template template parameter
Change-Id: Ide5a6858560b0aae1efd391215bc229bef5421e7
2018-09-24 21:23:23 -04:00
Marc-Andre Laperle
e2e9325bb4 lldb: Add new version info in the comments
Change-Id: Iff6c0a335d23b6d6a611d498f3803ecaace53233
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2018-09-22 01:07:28 -04:00
Jeff Johnston
72ec4daaa5 Bug 538994 - cdtdebug: argv parameters are wrapper by double-quotes
- modify cdtdebug.sh to use arrays to gather up options and then
  to use "${options[@]}" in the final string so each option is
  properly quoted if necessary

Change-Id: Id7fec3bb0a6804f2124f837e1171f386ae5801f8
2018-09-18 16:37:15 -04:00
Nathan Ridge
7831931f3a Bug 539052 - Add support for __is_constructible type trait intrinsic
Change-Id: I582881808e19342bf55d62d6002365c3733ebf31
2018-09-18 09:56:29 -04:00
Manish Khurana
9d84c30b5a Bug 537102. Add use of position object for inactive code and semantic highlighting
Change-Id: Iaa68fdfc1b6f5141c1c750e5d8af9cc2f5df9bfc
Signed-off-by: Manish Khurana <mkmanishkhurana98@gmail.com>
2018-09-17 21:31:09 +05:30
Hansruedi Patzen
b8618b166a Bug 510152: ParserException in ASTAmbiguousNode.logAmbiguousNodeError
If the fOperand of an CPPASTUnaryExpression is an ASTAmbiguousNode
the fOperand.getEvaluation() call will always fail and log an error.

Change-Id: Ie17c2685636e8956bf4724c206092cf0370ff5d9
Signed-off-by: Hansruedi Patzen <hansruedi.patzen@hsr.ch>
2018-09-17 01:25:45 -04:00
Jonah Graham
5042be3a36 [releng] Update to newest jacoco-maven-plugin
Change-Id: Ib78d1805f4beaefc673aa47114f10bde91cfca33
2018-09-16 09:12:28 +01:00
Nathan Ridge
4549e7f39a Bug 538266 - NPE in QuickFixCreateNewClass.isApplicable()
Change-Id: If20b46da95f58e93ba46ea6f4386e841609f4159
2018-09-15 19:42:08 -04:00
Simeon Andreev
a8a29d195a Bug 538849 - Select Processes dialog filter field improvements
This change ensures that the Select Processes dialog remembers the
filter field input. This helps attaching to the same application without
having to input the filter text on each debug attach.

Furthermore with this change its possible to match a process name with
suffixes, without resorting to pattern matching symbols. E.g. match
"Eclipse" by typing "lipse".

Change-Id: I07a3bb1504f2f5e9626023d1097fcad78dfa9ac7
Signed-off-by: Simeon Andreev <simeon.danailov.andreev@gmail.com>
2018-09-14 06:25:12 -04:00
Simeon Andreev
094543644b Bug 333034 - Select Processes dialog shows command line arguments
This change adds command line arguments to the information listed in the
"Select Processes" dialog, seen e.g. when attaching to a C++ application
to debug.

Change-Id: I18ab685f73cb1c16ed3ea935872f49afa1de9aab
Signed-off-by: Simeon Andreev <simeon.danailov.andreev@gmail.com>
2018-09-14 11:06:28 +01:00
Jeff Johnston
74eb81b0bb Bug 538958 - Meson project built in Container not indexing properly
- add synchronized keyword to the various scanner info collecting
  methods in ContainerGCCToolChain

Change-Id: I476e0c191379621d5ca8ef266c8590a0954ab4a5
(cherry picked from commit 55569e158c)
2018-09-12 15:10:18 -05:00
Jeff Johnston
109cd0c6aa Bug 536884 - Removing header cache should cause ScannerInfo refresh
- don't reset setting in shutdown() method as this clears the
  property prematurely for meson and cmake projects

Change-Id: I2dd2467427d00aeade335319ec2ceec9f6d7168d
2018-09-12 12:01:09 -04:00
Nathan Ridge
aeb6e38639 Bug 538517 - Proper handling of range-for with temporary as range expression
Change-Id: I41c0ab58810c656d2ed89c9f5110ebc559e29575
2018-09-10 23:22:26 -04:00
Nathan Ridge
2f57d76a20 Bug 538516 - Ensure the validation state is updated correctly on the C/C++ Language Servers Preference Page
Change-Id: Ic3bbbd437081213b40e5ae0cbc2816fa9369449a
2018-09-10 23:22:13 -04:00
Nathan Ridge
567243a752 Bug 538509 - Ensure a lookup point is always set during semantic highlighting
Change-Id: I121a07c8ef6bf9230e5447e266f5304b598f1a83
2018-09-10 23:21:27 -04:00
Lidia Popescu
0cf1ee7fde Bug 536255 - Extension point for open call hierarchy view
Adding a new extension point that makes possible to extend content from
the Open Call Hierarchy View by adding a new node at the top of the
tree.

Change-Id: I9ac79896a4e8fffc9ed51cdb1be3c70f30d117c4
Signed-off-by: Lidia Popescu <lidia.popescu@windriver.com>
2018-09-08 03:03:00 -04:00
Simeon Andreev
8a73297c10 Bug 538785 - Select Processes dialog should remember when resized
With this change, the Select Processes dialog will remember its new size
if it was resized by the user.

Change-Id: I27161ae5b5332db87cc9876aa23cf8fd8c751a80
Signed-off-by: Simeon Andreev <simeon.danailov.andreev@gmail.com>
2018-09-07 16:34:13 -04:00
John Dallaway
6870f55fbb Bug 538282: Set architecture for remote GDBJtag tests
Change-Id: I0e4e8a345bd5c63116efff2a6b140500f0b77328
Signed-off-by: John Dallaway <john@dallaway.org.uk>
2018-09-07 16:48:37 +01:00
Jonah Graham
92bdc049a2 [releng] Update tests/build script to use newly released GDB 8.2
Change-Id: I6f67200880b9d9ed96f4cf0555d92312d1f64fff
2018-09-05 12:14:10 +01:00
Nathan Ridge
3679b7cd90 Give lsp4e-cpp access to some CDT internals
This avoids either littering lsp4e-cpp code with "restriction"
warnings, or suppressing them (which can hide useful warnings).

It seems pointless to expose the relevant internals as public APIs
since lsp4e-cpp is conceptually an internal consumer.

Change-Id: I9d8c70570682fa86b2369445a812af14de4930e6
2018-09-02 01:23:17 -04:00
Hansruedi Patzen
e69f72a488 Bug 537942: Inactive include statements have wrong offsets
Fixed the bug and added a test for confirmation.

Change-Id: I5d3c5f797d84b10b961dcfc178a5bbcc3becbd04
Signed-off-by: Hansruedi Patzen <hansruedi.patzen@hsr.ch>
2018-09-02 00:00:47 -04:00
John Dallaway
dd17366239 Bug 538282: Add GDB Hardware Debugging launch test
Change-Id: I308a6a8d128704f83a5fc220c7c168f56e4fc040
Signed-off-by: John Dallaway <john@dallaway.org.uk>
2018-08-27 16:22:10 +01:00
Nathan Ridge
c4ec66adf4 Bug 537534 - Support binary expressions with an initializer-list as the second operand in CPPASTBinaryExpressions.acceptWithoutRecursion()
Change-Id: Ifb37df94c9b33f7eeeca4ab041d8f0608377b8cd
2018-08-24 14:08:05 -04:00
Jonah Graham
19cbbb52d1 Bug 537176: add "update references" checkbox to resource rename
Add a wizard page for the rename of CNature resource files.

The "discouragedReference" is downgraded to "warning" because of the use
of some LTK internal classes. As a reference, most CDT plug-ins this
setting is ignore or warning. See Bug 538133 for changing LTK to make
it easier to do this.

Change-Id: I7b63b3fc97bddf364805c0b92c22ecaafbfbb6d1
Also-by: Baha El Kassaby <baha.elkassaby@gmail.com>
Signed-off-by: Baha El Kassaby <baha.elkassaby@gmail.com>
2018-08-21 13:53:52 -05:00
Jonah Graham
b7e9c8e9ff [releng] Remove outdated problem filters.
With the 9.5 release, these filters no longer apply to 9.6+

Change-Id: I2cf6b47264f308b3aaf27cd1da1b9a6324c84d2d
2018-08-20 11:42:14 +01:00
Hansruedi Patzen
cb47ef4c65 Bug 537924: Unable to build javadoc maven target
Turns off doclint for Java 1.8 and greater because the javadocs are
incomplete and won't build otherwise.

Some files also had encoding issues with some characters which caused
the javadoc build to fail, these characters have been replaced.

Change-Id: I04690644bec6d7c3219cb0438cb3db6593fefd3a
Signed-off-by: Hansruedi Patzen <hansruedi.patzen@hsr.ch>
2018-08-14 18:09:17 +02:00
Manish Khurana
1983d41afb Bug 535428. Add indentation and bracket completion support in LSP4E-CPP
Change-Id: Ib9187a3ad28796305c47fe8e9543e1aed6a7bf58
Signed-off-by: Manish Khurana <mkmanishkhurana98@gmail.com>
2018-08-11 17:14:41 -04:00
Jeff Johnston
ac81db720c Bug 537632 - Meson Property Pages missing some fields after configure
- fix MesonPropertyPage logic concerning a configured meson project
- for possible values, add "-" and "/" as valid characters
- in state flow, don't just wait for blank lines, an option
  header can occur in the middle of a group or a new option group
  name can also occur

Change-Id: I2c6c8f9fb15db0425f03e422b20b58ace5234fd4
2018-08-02 17:45:36 -04:00
François Godin
0b2053dcb2 Bug 537118 - CMake and Meson integration now working on Windows.
- The commands are launched directly instead of using the shell
(/bin/sh) which is not available on Windows.

Change-Id: I5f8d99a04da1c860bcd37d138103a1bd4e501547
Signed-off-by: François Godin <copelnug@gmail.com>
2018-08-01 19:05:24 -04:00
Manish Khurana
02344726c8 Bug 537306 - Add implementation for "$cquery/publishSemanticHighlights"
Change-Id: I598cda18678f7b268a72e4aa5dfe9563d33727bd
Signed-off-by: Manish Khurana <mkmanishkhurana98@gmail.com>
2018-08-01 15:19:57 +05:30
Nathan Ridge
09d4a1121c Bug 537357 - [lsp4e-cpp] Set the document partitioner in a document setup participant
Change-Id: I2d672cac5bb924a91457bf2e4cc552d596ae5d0d
2018-08-01 02:54:59 -04:00
Jonah Graham
17c79ab310 Update GDB versions in download-build-gdb.sh for GDB 8.1.1
Change-Id: Id4bddb10ad00a0b1d52bd0cc7f9a232cd6ec453e
2018-07-31 20:23:42 +01:00
Manish Khurana
c00975241d Bug 537385. Add initialization options for inactive regions and semantic highlights
Change-Id: I79ef622fa3ae48f055a55d9347a53eddc4fc6b8b
Signed-off-by: Manish Khurana <mkmanishkhurana98@gmail.com>
2018-07-25 21:20:39 -04:00
Felix Morgner
52fab3d8af Bug 537272 - Offer "Create local variable" based on compiler errors
This patch introduces an additional message pattern for the
CreateLocalVariable QuickFix that matches GCC's C++ error message for
undefined entities.

Change-Id: I44d6579d41d9c93dc23366907fa52caf1c6f3b21
Signed-off-by: Felix Morgner <fmorgner@hsr.ch>
2018-07-25 11:24:24 -04:00
Jonah Graham
9853ba09d9 Bug 433329: Fix comment in code
Change-Id: Ie661ab193a0b081240ba4c7dd7a9fe65ed59b6c9
2018-07-25 13:31:49 +01:00
Nathan Ridge
0127ad7c93 Remove lsp4e-cpp code related to the unused 'reindex' command
This code was mostly commented out and non-functional anyways.

Change-Id: Ib0713a1c419438c0973bac49d4bb1786517914ff
2018-07-25 01:49:30 -04:00
Marc-Andre Laperle
4cf155d79f Fix some @since tags because of new baseline and plugin version
Some changes in the cdt.core plug-ins happened without increasing the version
number. With commit 00df140, the version was increased but now the @since tags
do not match the version.

Change-Id: I51bab190aa4be05e678487a6be0b5122cba8146a
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2018-07-24 11:14:38 -04:00