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

26153 commits

Author SHA1 Message Date
Nathan Ridge
41b15da668 Bug 515068 - ClassCastException in CPPASTDeclarator.getExecution()
Change-Id: I8b4a9612b820dd8677b740479f774fb68620169c
2017-04-18 01:52:30 -04:00
Nathan Ridge
bddbdd2752 Bug 515066 - ArrayIndexOutOfBoundsException in CPPClassScope.markInheritedConstructorsSourceBases()
Change-Id: Id08fb0bb432fe6af02afabdcdde761016514db42
2017-04-18 01:51:12 -04:00
Jeff Johnston
795a90288b Bug 497670 - Support compiler provided "fix-it" hints
- add new FixitErrorParser that extends RegexErrorParser and is
  used to replace the error parser for GNUCErrorParser
- add new FixManager class to bind a fixit message with its
  problem marker
- modify ProblemMarkerFilterManager to register the last
  accepted ProblemMarkerInfo for a particular resource so
  the FixitErrorParser can find the last error marker for
  the file that precedes the fixit message
- FixitErrorParser looks for fix-it messages and binds them
  via FixitManager to the last error marker for the file
- add new Fixit class to contain the details of a gcc fix-it
- add new QuickFixForFixit which applies the gcc fix-it for the
  file
- add new (.*) regex in codan.ui.checkers patterns that will
  trigger before any other error and will look for the
  fix-it message format
- change cdt.core to expose cdt.internal.errorparsers to
  codan.checkers.ui
- change codan.core to expose codan.internal.core.model to
  codan.checkers.ui
- fix CDocumentProvider.setOverlay method to not overlay
  a CMarkerAnnotation that has a quick fix
- when deleting all C problem markers, also make a call
  to FixManager.deleteAllMarkers() so markers aren't
  left referenced

Change-Id: Ibf8ff7d8addb1bf092dc4ef35de0d92de0309589
2017-04-17 20:01:27 -04:00
Sergey Prigogin
908a609a53 Bug 514950 - NullPointerException running Organize Includes
Change-Id: Ic851d389a28e838775f20879bb88ffe00b9b55c0
2017-04-16 12:33:34 -07:00
Jonah Graham
593dc77b6d Bug 515307: Run test order of magnitude faster
The break inserter test was running all display events for 200ms after
each simulated keystroke, but all sideeffects were happening synchronously
or being placed on the event queue synchronously. So speed-up is achieved
by running event queue until empty instead of effectively sleeping for
200ms

Change-Id: Icffd4d5526176e596cf8ce3ac716a4ae88d51159
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
2017-04-15 03:44:40 -04:00
Jonah Graham
1670530ffb Bug 515307: Run test order of magnitude faster
Remove massage timeouts for places waiting for no events
This is a partial revert of c19640498d
which was part of Bug 499784.

Change-Id: Ib66ed5eaf45977d4ffae77358deaf1f593e005c6
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
2017-04-15 03:43:52 -04:00
Jonah Graham
54f2d8770f Bug 515307: Run test order of magnitude faster
The test was much too conservative on how long it waited for an event
to arrive. On my machine the time was 10 ms, so I set a baseline time
to wait of 100 ms allowing time for additional event to arrive.

Change-Id: Ic435d360e8781936682c19b838aeec13fa3d60bd
2017-04-15 03:43:07 -04:00
Jonah Graham
501fa87934 Bug 515101: Control folding on doc and non-doc comments
Change-Id: I77b5cc2209d52877318182009b4de8e9491a85f7
2017-04-15 01:14:52 +01:00
Jonah Graham
18a6002f07 Bug 515304: profiles to parallelize testsuite
Change-Id: I02095334c2176bfb9a2968d91b6175af37123f5b
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
2017-04-14 20:03:36 -04:00
Nathan Ridge
8b8ceed800 Bug 514821 - Attribute on enumerator
Change-Id: Icb9ff49c16b049fecb33a55e1db11b61f1efc2d9
2017-04-14 19:54:28 -04:00
Nathan Ridge
e42a75e3e5 Bug 514595 - Instantiate EvalConstructor.fType correctly
Change-Id: I7ee2c7ffee4b15f0005ddb8bcc5c9051992908d3
2017-04-14 19:52:45 -04:00
Jonah Graham
8592b892dc Bug 515178: Convert ui AutomatedSuite to new style
This change enables future tests to use new style annotations,
for example using @RunWith(Parameterized.class)

Change-Id: I4998e8b50fc7574c057b4f4a556205ce5a2497d6
2017-04-14 11:50:18 +01:00
Jonah Graham
f5aa2f3d65 Bug 515024: Fold adjacent single line doc comment
When the doxygen tool is on, adjacent single line doc comments were
not being folded together.

Change-Id: I88542047cba6c6d400a0b74a2637679cd122a920
2017-04-12 04:56:18 -04:00
Marc-Andre Laperle
c1d086cba3 lldb: Update version check to newly released, non-beta Xcode
Change-Id: I1a0c79b9c69a9d7eea25283de003f055a1293f30
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2017-04-11 10:44:40 -04:00
Jonah Graham
f708de3801 Delete unreachable code
Remove if block on !singleLine within an if (singleLine) test. The
code has been unreachable since 2006.

Change-Id: Ie720716a58f892371e3ae5b810dae6e77736324f
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
2017-04-10 13:22:57 +01:00
Nathan Ridge
e0e7f9c1d7 Bug 512932 - Name lookup for friend class
Change-Id: I6550b2cdef4dfacf012fa736104b72794db8c0cc
2017-04-08 02:15:37 -04:00
Nathan Ridge
be635f520a Rename doKoenigLookup() to doArgumentDependentLookup()
"Koenig lookup" is an obscure term for argument-dependent lookup.
We should use the standard terminology for ease of understanding.

Change-Id: Ife59e03eaf3497aeca4a685e37250529732a78b6
2017-04-08 02:08:04 -04:00
Nathan Ridge
e99970f5ae Remove unused field
Change-Id: Ia9db692b27b1fe69fc8d1cdd6b09c863acbc72d1
2017-04-08 02:06:42 -04:00
Stephen Flynn
18ce8d099f Bug 510879: Remove requirement for suspended context in Disassembly View
Allow disassembled code to be displayed even while a running thread is
selected.  Switching from a suspended to a live thread does not clear
the view.  To initially get the disassembled code, a suspended context
is required.

Move the check for a frame context to the backend, allowing extenders to
provide custom symbol lookup by overriding
DisassemblyBackendDsf#evaluateAddressExpression.  Overriding this method
to provide custom lookup also allows fetching disassembled code from a
live thread.

Edit:  Make Disassembly message consistent so that prior to selecting a
suspended context the view shows 'No Debug Context'.  After selecting a
suspended context disassembly is shown for all nodes except launch.

Change-Id: I42c54b179b5dacc16f7a5e04a83ddb973ccc6dde
Signed-off-by: Stephen Flynn <stephen.flynn@dell.com>
2017-04-05 15:08:35 -04:00
Paul Morelle
e082f06a70 Bug 484942. Change --output_format from xml to XML
All credits to scratchley <wcs@sfu.ca>
https://github.com/xgsa/cdt-tests-runner/pull/13

Change-Id: I506bc97e5377495db226adb6fa317abb40934b91
Signed-off-by: Paul Morelle <madprog+eclipse@htkc.org>
2017-04-05 10:54:45 +02:00
Sergey Prigogin
936daa337b Cosmetics.
Change-Id: I14e0cbc4dddfe6a74ef47c76ec885197d0e3eca2
2017-03-30 20:22:39 -04:00
Sergey Prigogin
3f2d6bda78 Fixed serialization/deserialization of error values.
Change-Id: If5ea64bf5f448b1e1eda02b7ab69476576336790
2017-03-30 20:22:12 -04:00
Jesper Eskilson
611c89cd36 Protect against NPE in case "declarators" is null
Change-Id: Iab76315980cab8f2070cdf3ba853871b0eecf74c
Signed-off-by: Jesper Eskilson <jesper.eskilson@iar.com>
2017-03-30 18:07:09 -04:00
Sergey Prigogin
548d5e19e1 Removed an unused import.
Change-Id: I9b5ef6949187088e779c0d1aca5d227903690603
2017-03-30 14:40:15 -07:00
Sergey Prigogin
9763d3b058 Bug 444577 - __int128_t / __uint128_t not supported (GCC)
Change-Id: I3213c7a6ad034c2fac2c96d2e9f88c38d101ed09
2017-03-29 17:59:29 -07:00
Sergey Prigogin
4f70ea542a Bug 514197 - Organize Includes removes an include necessary for
instantiation of the body of a template function

Change-Id: I7a788f5ddcfae039acdec3a7985dcef364c5b8c0
2017-03-27 20:29:15 -04:00
Marc Khouzam
868db5b9b6 Bug 512180: Ensure previous launch is fully terminated
DsfTerminateCommand leaves a timeout job on the executor queue, remove
it proactively so the executor doesn't sit around just waiting
for it to terminate.

Change-Id: If26411a5b6e0d35a1c45582e91ba62d24cef6bbb
2017-03-27 15:08:46 -04:00
Simon Marchi
1981d5905d Remove ANSI escape sequences from lines before handing them to output parsers
If a build tool (e.g. gcc) outputs colored text, the ANSI escape
sequences will prevent the output parsers from matching the lines.  This
patch makes the ErrorParserManager remove them before handing the
strings to the parsers.

I tested that this works well with the ANSI console plugin [1], which
allows displaying colors in the console window.

Note that I stole the regex from this SO post [2], I hope it's trivial
enough that it doesn't cause any IP problem.

[1] https://marketplace.eclipse.org/content/ansi-escape-console
[2] https://stackoverflow.com/questions/25189651/how-to-remove-ansi-control-chars-vt100-from-a-java-string

Change-Id: I0d6a25723be4008600acecb8595865bcb4f4abc1
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
2017-03-27 11:52:09 -04:00
cartu38 opendev
6b88578458 Bug 514244: ability to add custom wizard page prior project creation one
See : https://www.eclipse.org/forums/index.php/t/1084842/

Original (WizardNewProjectCreationPage) getStartingPage() cast within
getMainPageData() method was obviously forcing first wizard page type
... provided basic trick is opening some opportunities more !

Change-Id: Ie9b7c4ef63040df6a419af8348f088be79cc2611
Signed-off-by: cartu38 opendev <cartu38.opendev@gmail.com>
2017-03-27 12:24:26 +01:00
Alexander Kurtakov
2268403e02 autotools: Restore API.
It's unused but still we have to keep it.

Change-Id: I9f23e09c0ce62bf88f6cc490a7c0c31852b6fd16
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2017-03-25 03:05:46 -04:00
Marc-Andre Laperle
5e1208c12a Remove unused OpenTypeDialog
It's internal and not used anywhere.

Change-Id: I194b4db7f4284bc0820221220301515a12b17ae4
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2017-03-24 23:23:29 -04:00
Marc-Andre Laperle
a844ef3f9c lldb: Add a few missing rm.done()
A few rm.done() calls were missing in overridden methods.
Those queries were slowing down debugging significantly.

Change-Id: I966d79af38721e551e9ebf2a74ca4d8d895241d0
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2017-03-24 22:27:07 -04:00
Marc-Andre Laperle
323a39cc6d Don't use _ as identifier
Change-Id: Id1e251a3d8895863aef06d7618d38edb10c9113d
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2017-03-24 16:56:27 -04:00
Nathan Ridge
9742e45559 Bug 513429 - Defer instantiation of variable templates with dependent arguments
Change-Id: Ic5875b19b384ae2726fe000fe5ab2b8cf5dd45a7
2017-03-24 00:52:14 -04:00
Alexander Kurtakov
d35f9e1a60 autotools: automake/autoconf generic editor.
Reorganize code and expose things for generic editor.
So far presentation reconciler only is ported.
Allows to right-click/Open with/Generic editor on e.g. Makefile.am and
see it in the generic editor. It is not as feature rich as the
specialized editors we have now but over time it should provide all the
features of them with significantly less code.

Change-Id: I72324b94ce08ab762979804914adbb1982c88198
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2017-03-23 16:54:04 -04:00
Zoltan Adasz
4572eb75f0 Bug 509118. Extend regexp to detect devices in /dev for Linux.
Change-Id: I1dfcca8f34019a210702473afb946b2a76cb37d7
Signed-off-by: Zoltan Adasz <adanrg@gmail.com>
2017-03-23 16:32:08 -04:00
Marc Khouzam
a66ccee4f0 Bug 379225: Address FindBugs issues for DSF-GDB
Change-Id: Id0bb91c7aaef0e356d1989e1dc949542813d2309
2017-03-23 13:59:28 -04:00
Alexander Kurtakov
be16270d15 Generify AsmTextEditor.getAdapter.
Change-Id: Ia98a0a98c0aa12beaa0aa96136adf79e7a8bebab
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2017-03-23 13:57:39 -04:00
Simon Marchi
184747164d Various enhancements to download-build-gdb.sh
I ran shellcheck [1] on the script and it found various minor things to
improve.

 - Use $(...) instead of `...` to run commands in a subshell.
 - Wrap all variables in quotes, in case there are spaces.

At the same time, I noticed a few other things:

 - Use "#!/usr/bin/env bash" instead of "#!/bin/bash", in case the user
   uses a bash not at /bin/bash.
 - Use "set -o errexit" instead of "set -e" for better readability.
 - Use "set -o nounset" to generate errors if trying to read unset
   variables.
 - Pass CXXFLAGS in addition to CFLAGS, since GDB is now in C++.
 - Use ${CFLAGS:-} instead of ${CFLAGS}, in case CFLAGS is not set
   (because of "set -o nounset").
 - Don't check for result of getopt.  If it fails, the script ends
   immediatly due to errexit.

[1] http://www.shellcheck.net/

Change-Id: If73f3510e46ca80d542d47c29c55b48b8b0bc697
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
2017-03-23 13:33:45 -04:00
Alexander Kurtakov
5bec70f68f Remove unneeded casts.
Change-Id: Ie506aa209db9be9c56ed8d80c0c97634c6f0cecf
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2017-03-23 04:35:03 -04:00
Alexander Kurtakov
93623a1a04 Generify ListenerList.
Generified, some lamnda conversions and some non-javadoc removal.

Change-Id: Ibf0493917ac3da7531de1ca591a9bfdc250ddf2a
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2017-03-23 09:25:24 +02:00
Alexander Kurtakov
4d47bff054 Don't use _ as identifier.
Change-Id: I0ae0462a47ad421ae1baae0dadfa0b5c7489d952
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2017-03-22 18:15:33 -04:00
Marc-Andre Laperle
7eaabfe557 Bug 463480 - [Include Browser] Add Expand all, Collapse all
Change-Id: I00d6ca764fa1ecb408d8786f6a49d8d81a735ea7
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2017-03-22 01:22:52 -04:00
Marc-Andre Laperle
e44a300af7 Bug 514021 - Corrupted database only prints Error as message
When the pdom for a project it corrupted, the only message in the
console/log is "Error". The DBStatus class accepts a message string as a
parameter and doesn't use it. If it's changed to use it, then a more
useful message is printed:
"Corrupted database: foo.1487621676851.pdom"

Change-Id: I0d4fb0b97fe1c63661941130e14edea18d0f26ee
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2017-03-21 18:26:49 -04:00
Marc-Andre Laperle
2b302b9688 lldb: Remove -break-insert hack for absolute path for lldb 4.0
Change-Id: I098e088874d95d9f9cd08e315d059dc00b2c809c
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2017-03-20 01:56:50 -04:00
Pascal Rapicault
efcff25e64 Bug 480047 - Include apache http client libraries for use with p2 transport
Change-Id: Ia1e92dfe65c69609f573133867eeaac9b19292ff
Signed-off-by: Pascal Rapicault <pascal@rapicorp.com>
2017-03-19 22:36:22 -04:00
Marc-Andre Laperle
a0098bb2c7 Adjust path exclusion when deleting repo so that it doesn't delete rcp
There was an attempt to not delete the rcp*/ folders when deleting the
repository folder but it left the folders empty. The updated pattern
seems to work correctly.

Change-Id: Ibb0e399044d87ad2374fe2f0f96e1f7eaf70bcd0
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2017-03-19 19:48:13 -04:00
Simon Marchi
c59a4c4d7c Bug 513860 - build: Change id of pthread option
There is a collision in the ids of the pthread options,
"cdt.managedbuild.tool.gnu.c.pthread" is there twice.  Change the ids to
be more in line with the other options.

Change-Id: Ice9d003b82b3740df6420811e90a2b157375c243
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
2017-03-19 19:15:02 -04:00
Nathan Ridge
1dcc3613f7 Bug 513430 - sizeof() with dependent type in default template argument
Change-Id: I01b21afb076b29e418a4d9eece2ac8eff3dafbb6
2017-03-19 00:41:46 -04:00
John Dallaway
57332b1d1d Bug 513763 - Save workspace following headless build
Change-Id: I657f8bf8155dd669921caef951d16e23601f01ad
Signed-off-by: John Dallaway <john@dallaway.org.uk>
2017-03-18 17:01:27 -04:00