1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-13 03:55:22 +02:00
Commit graph

34499 commits

Author SHA1 Message Date
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
Jeff Johnston
a62d2ae89b Bug 536889 - Launchbar needs to replace slashes for launch target names
- fix LaunchTargetManager addLaunchTarget to change any
  slashes in the target name to semi-colons when forming the
  preference node name to use
- fix LaunchTargetManager initTargets method to restore slashes
  when reading the targets from preference nodes
- fix LaunchTargetManager removeLaunchTarget to change any
  slashes in the target name to semi-colons when removing
  a preference node corresponding to the launch target id

Signed-off-by: Jeff Johnston <jjohnstn@redhat.com>
2018-07-10 22:08:40 -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
Hansruedi Patzen
66df5ff428 Bug 535278: Formatter error formatting CF statements with attributes
Fix and tests.

Change-Id: I1928d5fe70c02cbc9c147bb305720ad75b4913fc
Signed-off-by: Hansruedi Patzen <hansruedi.patzen@hsr.ch>
Signed-off-by: Thomas Corbat <tcorbat@hsr.ch>
2018-06-15 11:26:53 +02:00
Hansruedi Patzen
8eefa560ac Bug 535263: Switch statement attributes lost on rewrite
Fixed with the patch for 533552, only the CodeFormatter needed fixing.

Change-Id: I258617d01b091764ad9776921e773e208002c989
Signed-off-by: Hansruedi Patzen <hansruedi.patzen@hsr.ch>
Signed-off-by: Thomas Corbat <tcorbat@hsr.ch>
2018-06-15 10:36:26 +02:00
Hansruedi Patzen
a9988957f6 Bug 535331: Rewriting sizeof...() drops the parenthesis
Fix and test.

Change-Id: If54f24d833724f3c51ae0b6e7f325493e5110719
Signed-off-by: Hansruedi Patzen <hansruedi.patzen@hsr.ch>
Signed-off-by: Thomas Corbat <tcorbat@hsr.ch>
2018-06-15 08:53:27 +02:00
Hansruedi Patzen
3f98811f73 Bug 535266: Formatter error CaseStatement with attributes
Fix and test.

Also fixes formatting errors with DefaultStatements.

Change-Id: Idac4a7105d7ae86db40755bd27cef60e197de664
Signed-off-by: Hansruedi Patzen <hansruedi.patzen@hsr.ch>
Signed-off-by: Thomas Corbat <tcorbat@hsr.ch>
2018-06-15 02:33:57 -04:00
Nathan Ridge
8792d9d5a6 Bug 535557 - Avoid setting a null lookup point in SizeofCalculator.sizeAndAlignment()
Change-Id: I50974c7b74ef511aae96e2ce2a9a3b96ecbdb594
2018-06-15 00:09:26 -04:00
Hansruedi Patzen
2ca147ebf1 Bug 533552: Rewriting nodes with attributes causes attribute duplication
Fix and tests.

Also fixes bug 535265, since the Codan Quickfix tests fail otherwise.

Change-Id: Id31e40907b7ebdeee4a67c014c3a1b1cd37579ad
Signed-off-by: Hansruedi Patzen <hansruedi.patzen@hsr.ch>
Signed-off-by: Thomas Corbat <tcorbat@hsr.ch>
2018-06-14 04:47:20 -04:00
Chin Huat Ang
75e8ed9fc5 Bug 533399 - Workaround RemoteResourceBrowser layout issue
Ensure that the remote connection has been opened before showing
RemoteResourceBrowser dialog so that the dialog's layout would not
depend on the state of the connection.

Change-Id: Iec70c243b75723de418e55a1f07cd8e9804400b6
Signed-off-by: Chin Huat Ang <chin.huat.ang@intel.com>
2018-06-13 17:49:22 -04:00
Jonah Graham
ac2363cb92 Bug 535836: Log instead of pop-up errors in disassembly view
All sorts of views, variables, memory, etc can do a DSF operation
that causes an error. But for some reason only the disassembly
view generally displays this error to the user in a pop-up.

This change converts the pop-up (which says things like "Target not
available" or "Failed to execute MI command:
-var-create - * symbol_that_user_typed_that_doesnt_exist
Error message from debugger back end:
-var-create: unable to create variable object") to just log the
error instead.

Errors are dealt with in the UI already (example, bad location in
text box in toolbar gets an exclamation next to it). However, I don't
know if there are some errors that really do need to be displayed
to the user with a pop-up.

Change-Id: I27b398c34e558db98d34cef773a2689fa9222149
2018-06-13 16:15:09 +01:00
nickboldt
7afdd76187 update photon requirements to latest photon staging, Orbit R20180606145124, tm 3.7.100-SNAPSHOT
Change-Id: Id8d3fbae6a05471b3deac2ec166323f94ea1ca96
Signed-off-by: nickboldt <nboldt@redhat.com>
2018-06-11 16:48:24 -04:00
nickboldt
3118b83d57 update to buidl against latest cdt-site 8.8.1 and orbit-site R20180606145124; use eclipse platform 4.8milestones (RC4)
Signed-off-by: nickboldt <nboldt@redhat.com>
2018-06-11 16:39:36 -04:00