1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-09 10:46:02 +02:00
Commit graph

25928 commits

Author SHA1 Message Date
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
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
Michael Keppler
c7ddddc339 Bug 537211 - Error running Builtin Specs Detector (closed project)
Just check for the resource being accessible immediately before trying
to delete markers of it.

Change-Id: Ic359dc5a5a865a981847c6da1dd2e8cc312b3bd9
Signed-off-by: Michael Keppler <Michael.Keppler@gmx.de>
2018-07-20 07:47:33 +02:00
Manish Khurana
9b2de3ca06 Bug 537030. Add implementation for "$cquery/setInactiveRegions" notification message
Change-Id: Ieda3a95d0ea427425a6c7c08047e05e211cd74fd
Signed-off-by: Manish Khurana <mkmanishkhurana98@gmail.com>
2018-07-18 21:39:39 -04:00
Michael Keppler
c47158b2fa Bug 537139 - Checkbox label should not end with a dot
Remove the dot from the checkbox label.

Change-Id: Ic224f7e14bbd82cbeb734edd639db84063b6c5a2
Signed-off-by: Michael Keppler <Michael.Keppler@gmx.de>
2018-07-18 11:48:57 +02:00
Jeff Johnston
e0c656d2e0 Bug 536413 - ConcurrentModificationException when indexing
- apply patch submitted by duh-sa-sekirom@hotmail.com
- in GCCToolChain join the threads that do include path and macro
  searches before waiting for process so as to prevent a
  ConcurrentModificationException

Change-Id: Iefe6f013007b7bbf00117b5295b5e27489a72834
2018-07-17 14:45:21 -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
Jeff Johnston
a394557c60 Bug 533363 - Indexer spending a lot of time in CommandLauncherManager
- it seems that fetching the active configuration for a project
  using an ICConfigurationDescription is time-consuming
- the active configuration is sought in ContainerCommandLauncherFactory
  to get the optional build properties and thus we can figure out
  if the active configuration has enabled container build or not
- see if we are given a CConfigurationDescriptionCache and it
  contains a BuildConfigurationData element which allows us to
  get an IConfiguration without creating a new one, serializing
  it etc.. which is adding to the time taken

Change-Id: I8973f1707a602a73fc5ac751f12a1e8dbd549aab
2018-07-11 14:58:32 -04:00
Manish Khurana
79331d755a Bug 536797. Add implement for "$cquery/progress" notification message from cquery
Change-Id: I1e49023262facab821b2278c38b82076c2bf21f9
Signed-off-by: Manish Khurana <mkmanishkhurana98@gmail.com>
2018-07-08 17:06:59 -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
fa50ca7bc0 Bug 536268 - Find uses of overloaded operators when checking for unused symbols
Change-Id: I4445b62d4419ffa12d505bcc8265492c22f49bb6
2018-07-07 20:17:13 -04:00
Alexander Kurtakov
9b2a2c206d autotools: Use mylyn docs 3.0.25 to build docs.
Change-Id: I5aaf00d2b6299f8da57522a6ad86370f4c7d3717
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2018-07-06 17:20:15 +03:00
Jeff Johnston
a5ed8ea2a4 Bug 536363 - Meson project include paths wrong when using ccache
- fix GCCToolChain and ContainerGCCToolChain to not blindly
  take the first token in the command string when processing
  scannerinfo; if it is "ccache", take the second token instead

Change-Id: I4b2b7dfaccae6f3ec968bbe4217c57994ad71963
2018-07-04 17:03:29 -04:00
Manish Khurana
33e15fae72 Bug 536381. Add propertyChange() method to Preference Page
Change-Id: Ib0631251feaa1f0c33eac523e3c203713e9443fb
Signed-off-by: Manish Khurana <mkmanishkhurana98@gmail.com>
2018-07-04 11:27:00 -04:00
Jeff Johnston
2bcd06f097 Bug 536317 - Deadlock at start with launchbar and docker tooling enabled
- fix ContainerTargetTypeProvider changeEvent() to start a Job and
  return immediately so it will not cause a DockerConnection
  to be held in multi-threading
- move the DockerConnectionManager addConnectionListener call
  to end of init() method so the fetching of images won't cause
  a notification event to occur
- at end of init(), call CBuildConfigurationManager.recheckConfigs()
  to make sure any disabled configuration due to a missing
  IDockerConnection is now put in the configs master list and
  removed from the noconfigs list
- make similar changes to ContainerGCCToolChainProvider

Change-Id: Idc120d613b99ec365522f5e7bf5da82d1b362425
2018-07-03 15:22:58 -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
Manish Khurana
4215a26612 Bug 535631. Cquery is now able to find compile_commands.json
Change-Id: I06515bf1ee9a210dc5ac4ff15fcc1f15d185b2f3
Signed-off-by: Manish Khurana <mkmanishkhurana98@gmail.com>
2018-07-01 01:54:32 -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
9eb262a192 Bug 535427 - Add the lsp4e-cpp plugins to the build
To build and run only lsp4e-cpp tests do:
   mvn verify -P skip-tests-except-lsp4e-cpp

Also-by: Jonah Graham <jonah@kichwacoders.com>
Change-Id: Id6f3cd8ae291283c0cad7f1e63fbcdce683f4d2d
2018-06-28 13:47:07 +01:00
Jonah Graham
8d415fd900 [releng] Proper URL for platform with milestones being removed
Change-Id: I3a46159e5cd6f298f85fee148517f90521dfe602
2018-06-27 17:47:40 +01:00
Jonah Graham
af9cbcb284 [releng] set update site location to properly match version of code
Change-Id: I3a1de710b6cfbbe969eed16ffb90563affea3405
2018-06-27 09:25:03 -04:00
Jonah Graham
a7db5c7fd2 [releng] Update CDT Baseline to CDT 9.5
Change-Id: Icb762d8a4ac56153f7d7637a258fedfcd5b774f0
2018-06-27 09:25:03 -04: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
Nathan Ridge
cc23d88b54 Bug 534330 - Only create an index for the project containing the TU being analyzed in CxxModelsCache.getIndex()
Change-Id: I3391e1201b51ab32c35c73cfb2f861614da07057
2018-06-26 16:51:25 -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
Manish Khurana
527c2d64a5 Bug 535629. Add empty implementation for unsupported CQuery notifications
Change-Id: Ic1c91acd00f6d3aca64c82d4abffd8c41396b15c
Signed-off-by: Manish Khurana <mkmanishkhurana98@gmail.com>
2018-06-25 02:59:27 -04:00
Jonah Graham
48838766e9 [releng] Update maven plug-ins to most recent version
Change-Id: I00750d54970d76f1ef9d9b18177ecde74cf120ed
2018-06-24 16:51:32 -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
Doug Schaefer
29ed1fa6c4 Revert "Bug 534286. Made read(byte[],int,int) blocking"
This reverts commit e5c7bb64f7.

Change-Id: I565f9eb2728d0ff0199e61f3f25df4aa0b64f17b
(cherry picked from commit e6550c7a10)
2018-06-17 00:13:56 -04:00
Doug Schaefer
166c4ce28f Bug 535972 deal with relative include paths in GCC scanner info
We weren't dealting with relative include paths returned from
the call to gcc -E properly. Resolves them against the build
directory before checking if their a directory. Results in them
added.

Tested with ESP-IDF's feature/cmake branch.

Change-Id: I1e2583e03cce6380ee4382146b177978c9c81806
(cherry picked from commit 3b44424539)
2018-06-16 16:16:36 -05: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
Hansruedi Patzen
c0d54f4f19 Bug 535269: Allow attributes on enumerators
C++17 feature.
Implementation and tests.

Change-Id: Idafe4ca41058e8387aeae9a27f028677c62245c0
Signed-off-by: Hansruedi Patzen <hansruedi.patzen@hsr.ch>
Signed-off-by: Thomas Corbat <tcorbat@hsr.ch>
2018-06-15 13:42:25 +02:00