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

25323 commits

Author SHA1 Message Date
Jonah Graham
cc0955b823 Bug 515560: Avoid indexer race condition by joining the indexer
Change-Id: I13bd33adba4eb790fae0c31d2c1378e19a59f4ff
2017-04-24 07:31:54 -04:00
Nathan Ridge
c8b23ec2d7 Bug 513597 - NPE in DestructorCollector.addDestructorCall()
Change-Id: Ibf971013d1f9e65405a31a1f48c2e4c99731a381
2017-04-23 14:10:39 -04:00
Nathan Ridge
468289a3da Bug 512932 - Type of __func__, __FUNCTION__, and __PRETTY_FUNCTION__ builtins
Change-Id: If0875f0523b9eaf960052c2cc4e3cc01a6432adf
2017-04-23 14:08:59 -04:00
Nathan Ridge
e263da241e Bug 512932 - Delegating constructor in class template partial specialization
Change-Id: Id4cb38d4857af7335a4aa294a6fe149e1a4f2acd
2017-04-23 14:08:29 -04:00
Doug Schaefer
cfdb9c2ad8 Fix issues with CMake. Arguments not passed. Local GCC prefix wrong
I added cmake arguments in the launch configuration for CMake
projects but didn't add it to the command line.

Also indexing wasn't working on my Mac. llvm-cc overrode the standard
local cc. Added the local compile commands if the toolchain is local.

Change-Id: I914c52dd42fbf84b87cd0e8c7504f024c2449a82
2017-04-21 11:10:48 -04:00
Jonah Graham
b6cb657229 Bug 505743: Improve stderr output on intermittent tests
Change-Id: Ia1a9cdcb5dc05ab051a5c5b3d2d2d20d32e9154b
2017-04-21 09:36:14 -04:00
Pierre Sachot
8be69a5985 Bug 515296: Adding choice to not show editor again
We added a checkbox to disable the source not found editor and an option
in preferences for adding it again.

Change-Id: Icc7a21cd14ea81e53517d0b3c420de0927335ed4
Also-by: Yannick Mayeur <yannick.mayeur@gmail.com>
Signed-off-by: Pierre Sachot <sachot.pierre@laposte.net>
2017-04-21 11:24:47 +01:00
Marc-Andre Laperle
765960cec6 Bug 515545 - NPE when using Extract Function in the presence of auto variable
Change-Id: Id13e7afadbd3c92f1ab5a1448b9851f2d0c7d4df
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2017-04-20 15:29:44 -04:00
Jonah Graham
8da9b7a0b8 Bug 515296: Cosmetics
Reformatted file, added missing braces and removed "non-Javadoc" comments.
This file had suffered particularly badly from mixed spaces and tabs
in a single file, with some lines having both on the same line.

Change-Id: I0bff49effa0225cb6409547d8daa9dbf9c22e1b9
2017-04-20 15:42:45 +01:00
Yannick Mayeur
65c9e08d68 Bug 515296: changed the color of the error message
Change-Id: I04990deaef456df125d448d19372dd32c20859f6
Signed-off-by: Yannick Mayeur <yannick.mayeur@gmail.com>
2017-04-20 05:29:53 -04:00
Jonah Graham
546a5a6c91 Bug 515296: Cosmetics.
Change-Id: I25996dc6fe1b4f3f01de4089e6322fd39009ab03
2017-04-20 09:34:11 +01:00
Jonah Graham
4a7088a1c1 Bug 515430: Prevent assertion by checking for quick fixable set
Change-Id: Iea8ac8354b104cb272457b78d2bf1304bd69e065
2017-04-20 04:17:08 -04:00
Pierre Sachot
39fceeb18b Bug 514637. Fixed the runtime version to 3.8.0
Change-Id: Icb8b6dfefdb707eb5e2ba0e9e9469e3a9206e4f0
Signed-off-by: Pierre Sachot <sachot.pierre@laposte.net>
2017-04-20 04:07:11 -04:00
Pierre Sachot
6146025ab7 Bug 515249: Corrected icon display
Change-Id: I2e3ad02421da963ec8c75e4c6071d70c06e9a4ef
Signed-off-by: Pierre Sachot <sachot.pierre@laposte.net>
2017-04-19 13:20:43 +01:00
Jonah Graham
df26b628b7 Bug 515417: Disable intermittent testTypes_FriendClass
Manually testing this code shows it works, but this test fails
>50% of the time on Hudson causing significant numbers of
UNSTABLE builds.

Change-Id: Ie23e97e477d9b154ff33b38374bd257412241889
2017-04-19 13:09:26 +01:00
Jonah Graham
0fc24a0c78 Bug 515374: Stop using user.home as a temporary directory in tests
Change-Id: I20533ba4910ae9d691f51533183b4f475eaa5bbc
2017-04-19 03:36:54 -04:00
Marc-Andre Laperle
a06ad70d0a Bring back some pom.xml from features
Those features have the exact same id and groupid than a plugin
which throws off SonarQube with:
"Two modules have the same id: 'org.eclipse.cdt:org.eclipse.cdt.util'.
Each module must have a unique id."

In the pom.xml, we can specify a different groupid which resolves the
problem. Alternatively, the feature id could have been changed but that
would break upgrades.

Change-Id: Ib2912ad854a3af431b96f89a6ead1bcb6d06ba60
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2017-04-18 22:49:39 -04:00
Felix Morgner
3cc96b5873 Bug 515383: Missing standard headers in file associations
The following standard headers were missing from the file associations:

  - cuchar
  - cstdalign
  - scoped_allocator
  - shared_mutex

Additionally, cinttypes is no longer (since C++11) a GCC extension

Change-Id: I1545257d7d934c970de4f2f45f4e15499cec3fd9
Signed-off-by: Felix Morgner <fmorgner@hsr.ch>
2017-04-18 15:56:44 +02:00
Jonah Graham
2e235b70e7 Bug 505743: Allow intermittent tests to try multiple times
Change-Id: Id925a2a3b10397a798035f8d03be34131c43ef00
2017-04-18 06:31:48 -04:00
cartu38 opendev
a27309d507 Bug 514385: defaultValue-generation for a build-option
Change-Id: I15550a75206baf906285d3fc7becb491cac13ffa
Signed-off-by: cartu38 opendev <cartu38.opendev@gmail.com>
2017-04-18 09:06:51 +01:00
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