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

13993 commits

Author SHA1 Message Date
Nathan Ridge
1cbe7e32b9 Bug 540159 - ClassCastException in ExecDeclarator.unmarshal()
Change-Id: Ia51244b558798c052f1ec7a6918c6f85a6509655
2018-10-28 22:53:09 -04:00
Nathan Ridge
a00346af22 Bug 540112 - Perform C++14 return type deduction in ReturnChecker
As part of this change, ReturnChecker was refactored to compute the
return type as an IType, which allowed for removal of some logic in
ReturnChecker which duplicated CPPVisitor's type resolution work.

Change-Id: I9cd8512164d650a5ee11d2e58fdae477e3c428a2
2018-10-28 22:52:37 -04:00
William Riley
f3ca365140 Bug 540367 - Increment version numbers
Change-Id: I4a355170a7075f0a98ba3c1a5131c235c89b07d2
2018-10-23 11:20:31 -04:00
Hannes Vogt
e61ba5a731 Bug 529656 - Error if docker build failed
If the build command in a container build terminates with non zero exit
code (e.g. make command not found) an error is displayed.

Change-Id: Ib6349aa6c22c1a3bb9c0d2920110bc69773f8da1
Signed-off-by: Hannes Vogt <hannes@havogt.de>
2018-10-22 11:10:26 -04:00
Christian Walther
ebc9420473 Bug 534423 - Sort configurations in the Exclude from build dialog
Sort the configuration list in the same order as used by the project
property pages (case-insensitive nonlocalized), almost the same order as
used in the Project > Build Configurations > Set Active menu
(case-sensitive nonlocalized), not in the internal order coming from the
.cproject file.

Change-Id: Ia05bd163043f762dd96da4c69d409ecee9accb8c
Signed-off-by: Christian Walther <walther@indel.ch>
2018-10-22 06:16:24 -04:00
Jeff Johnston
c9eee479b4 Bug 540085 - Deadlock in ToolChainManager init
- modify ContainerGCCToolChainProvider.init so that the
  CBuildConfigurationManager.recheckConfigs() call is done
  within a separate job so the init() call will return
  without causing deadlock
- do the same for ContainerTargetTypeProvider
- modify CBuildConfigurationManager initProviders() method to
  be synchronized

Change-Id: I4ca9371fb340887233872b6d315621a24450fb2b
2018-10-12 13:14:52 -04:00
Hannes Vogt
8492296d24 Bug 538069 - Save non-type template parameter...
... of template template parameter in index.
Fixes false positive "Invalid template arguments".

Change-Id: I82cd9aece8f03142cbdcf5d1058113684c29d6fe
Signed-off-by: Hannes Vogt <hannes@havogt.de>
2018-10-11 22:24:45 +02:00
Marc-Andre Laperle
d537c6030c Bug 486036 - Toggle Function Definition does not work when comment is involved
Change-Id: I77a2c2fe0607ce098da4a4e7679fc3999ea7ebbf
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2018-10-06 11:36:37 -04:00
Bassem Girgis
8d8324ae14 Bug 536201 Add a highlighting for enum classes
Change-Id: I6b16efbbb268f9fdc4a884e96c30192dd64c5db1
Signed-off-by: Bassem Girgis <brgirgis@gmail.com>
2018-10-04 10:47:06 -05:00
Marc-Andre Laperle
0b73bea05a Bug 518271 - NPE when using Toggle function on a function containing a lambda expression
Change-Id: I441a627b0759655e865724bf5110fdb7dd8d5a50
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2018-10-02 20:55:48 -04:00
Hansruedi Patzen
467dd174c3 Bug 539535: Disable default UDL highlighting
Checking every UDL as a default turned out to be more resource intensive
than expected. It further is only really needed if the special
operator""if is used. This patch disables this highlighting per default
and creates a new highlighting preference entry to allow users change
UDL colors independently.

Change-Id: I83bdb69e70546d1e618b5c7c947777da579c8847
Signed-off-by: Hansruedi Patzen <hansruedi.patzen@hsr.ch>
2018-10-02 18:01:20 -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
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
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
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
Nathan Ridge
7831931f3a Bug 539052 - Add support for __is_constructible type trait intrinsic
Change-Id: I582881808e19342bf55d62d6002365c3733ebf31
2018-09-18 09:56:29 -04:00
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
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
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
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
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
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
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
Felix Morgner
2dd5e7193d 537217: [C++17] Add support for typename keyword for template template parameters
This patch allows for the 'typename' keyword to be used in
template-template template parameter declarations. Additionally, this
patch also fixes an issue in the writer, which caused the ellipsis in
variadic template-template template parameter declaration to be dropped.

Change-Id: I8f68e6053b2b8848b35d1cf6d25d7f4b5b9d396d
Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=537217
Signed-off-by: Felix Morgner <fmorgner@hsr.ch>
2018-07-24 02:10:59 -04:00
Marc-Andre Laperle
1f89361032 Bug 481753 - LanguageSettingsProvidersSerializer does not "Check Out"
shared language.settings.xml file before writing to it

Change-Id: Ic256e95f17f070c763bdaef8b63583bd915c7eb0
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2018-07-23 13:04:13 -04:00
Marc-Andre Laperle
00df140228 Bug 535911: Better error in the presence of compressed ELF section
This doesn't implement reading compressed ELF section, but at least it gives
a more useful error instead of a simple "IllegalArgumentException" with no clue.

Change-Id: Ib0ee1ab9e3aed7aeba184f13262b59ef21afcd32
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2018-07-23 11:36:19 -04:00
Nathan Ridge
836db69fb8 Bug 537031 - Test case for cursor position after completing zero-argument function
Change-Id: I55a4580c0746534c391300346df53ad2d0784abe
2018-07-21 01:24:55 -04:00
Nathan Ridge
3ed176d0c2 Bug 536805 - NPE in CPPEvaluation.maybeApplyConversion()
Change-Id: I42e780f90aacf9383b722a8b82e441d4032d14e7
2018-07-16 11:03:56 -04:00
Thomas Corbat
adbaa608cb Bug 537013 - Comment is replaced along with node
Provide functionality to remove a specific comment from ASTRewrite.

Change-Id: I5e0b3c521616d2dd900f59b0863e45fb01f34df8
Signed-off-by: Thomas Corbat <tcorbat@hsr.ch>
2018-07-16 13:16:49 +02:00
Jeff Johnston
1a8f399b8b Bug 536884 - Removing header cache should cause ScannerInfo refresh
- add a new IToolChain property "cdt.needScannerRefresh" that is
  set if scanner info needs to be refreshed
- for a Container build, turn the property on in ContainerGCCToolChain
  startBuildProcess() if the Container headers for the toolchain's
  have been deleted
- in CBuildConfiguration processLine(), look for the toolchain
  property when looking to see if scannerinfo should be calculated
- in CBuildConfiguration, turn the toolchain property off in
  shutdown()

Change-Id: I67a3537d1e2967dc15b66a1c37abda1ae8f78bff
2018-07-12 13:53:05 -04:00
Nathan Ridge
52e1ccf3bc Bug 535777 - Disallow class body in trailing return type
Change-Id: I6e4d015cb3e1b12486f336db94ed71c234142b60
2018-07-08 14:28:34 -04:00
Nathan Ridge
7f5ed929a9 Bug 536380 - Open files with CEditor (specifically, rather than the default editor) in UI test suites
Change-Id: I4f9e94b51956ef72888c5dfb9cb10b39f93a9d38
2018-07-07 20:17:59 -04:00
Nathan Ridge
147335653f Bug 535548 - Infinite recursion loading function whose return type refers to a parameter from the index
Change-Id: Ibff680983cc8ac0bd9d33d8f2247a9f0ca2fe2f3
2018-07-01 13:28:42 -04:00
Nathan Ridge
7b7dac44e0 Bug 535559 - Index search for entity inside toplevel anonymous namespace
Change-Id: I9fdc268819b2298d0b3aeb9db9c29f1a0158d2bb
2018-07-01 13:27:56 -04:00
Jiří Engelthaler
af4a9223c3 Bug 536470: Fix NPE for includes outside workspace
Change-Id: I487823cf627680f61cf19d1228a84a3da68ce420
Signed-off-by: Jiří Engelthaler <engycz@gmail.com>
2018-06-29 13:07:59 +02:00
Nathan Ridge
40133cceb4 Bug 534330 - Use the full path of the file when inventing names for anonymous types
Otherwise we can get clashes if two anonymous types happen to be
at the same offset in files with the same name but different paths.

Change-Id: Ia269a7c6fa1dc7e37d23d9333b245143d7c33e5d
2018-06-26 16:51:41 -04:00
Marc-Andre Laperle
77045f1942 Bug 536023: NoClassDefFoundError for javax/xml/bind/DatatypeConverter
This package is marked for removal in Java 10 and in fact, is not found at
run time. Instead, use the javax.xml.bind plugin from Orbit.

javax.xml.stream is also needed by javax.xml.bind.

Change-Id: Ida10746267c814a8a11f2db7181dcb9e8ceaad44
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2018-06-26 11:05:28 -04:00
Hansruedi Patzen
cbea1acd85 Bug 535257: __declspec lost on AST rewrite
Implemented new IASTMSDeclspec nodes.

Change-Id: I2fbc0c2124a8158a457bae0e3cf95aa20ac8ac00
Signed-off-by: Hansruedi Patzen <hansruedi.patzen@hsr.ch>
Signed-off-by: Thomas Corbat <tcorbat@hsr.ch>
2018-06-21 04:18:53 -04:00
Thomas Corbat
512b73075f Bug 535274 Follow up cosmetics
Change-Id: I562bc0925e53a461bd9e6362dc14f2e1cd924582
Signed-off-by: Thomas Corbat <tcorbat@hsr.ch>
2018-06-21 03:34:13 -04:00
Hansruedi Patzen
bc4aa4597d Bug 535256: Rewrite removes attributes, key and base from C++ enum
Fix and tests.

Change-Id: I1f5519f833563378d87b3c932b754e29c3e32b06
Signed-off-by: Hansruedi Patzen <hansruedi.patzen@hsr.ch>
Signed-off-by: Thomas Corbat <tcorbat@hsr.ch>
2018-06-20 12:40:31 +02:00
Hansruedi Patzen
4c66f7c8f3 Bug 535274: Allow attributes on namespace definitions
Implementation and tests.

Change-Id: I0cca9dea8630ae66b005856338342b4173c48216
Signed-off-by: Hansruedi Patzen <hansruedi.patzen@hsr.ch>
Signed-off-by: Thomas Corbat <tcorbat@hsr.ch>
2018-06-20 08:49:00 +02:00
Hansruedi Patzen
cf410f1982 Bug 535275: Allow attributes on function parameter declarations
Implementation and tests.

Change-Id: If64f1ee1aac79aa1ef3592fc8636686562298ffc
Signed-off-by: Hansruedi Patzen <hansruedi.patzen@hsr.ch>
Signed-off-by: Thomas Corbat <tcorbat@hsr.ch>
2018-06-15 14:53:29 +02:00