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

25358 commits

Author SHA1 Message Date
Jeff Johnston
ec4e410c8b Bug 459197 - C++ Unit Testing does not work with QT5
- remove "-flush" from 
  QtTestsRunnerProvider.getAdditionalLaunchParameters which does
  not work on Qt5
- add support in QtXmlLogHandler to support QtBuild and Duration
  nodes (for Duration node store the duration time in the model)
- fix typo in QtTestsRunnerMessages.properties file

Change-Id: I3ae8a8cba6870857f2a779e317465573387c0dee
2017-05-08 11:07:46 -04:00
Marc-Andre Laperle
9280202a2a Update outdated Maven plugin
Change-Id: I292e8ddf64db660f89535f5fe9e8e0b6792bd214
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2017-05-08 10:05:39 -04:00
Jonah Graham
655e32bfa9 Bug 516300: Display extension message when creating marker message
Change-Id: I6024d09646fd3f9d828a71f048fcb93fd34ef579
2017-05-08 07:20:30 -04:00
Jonah Graham
2e71430043 Bug 516300: Fix API errors with Eclipse 4.7
- Adding default methods can now be ignored
- Adding fields is now an error but we probably want to ignore this
because it is quite restrictive

This is the same API settings as was applied to org.eclipse.cdt.dsf.gdb
in 02a04cebad

Change-Id: I31559a8a3644c61e415dfbdf6dda3c66fb1d42ea
2017-05-08 06:09:19 -04:00
romibi
5d9dd823fa Bug 514684 - call writeAttributes on more Statements
and added JUnit tests

Change-Id: Ic09aa96f896b0a5dd998156e05930704775f695b
Signed-off-by: romibi <romibi@bluewin.ch>
2017-05-08 02:39:13 -04:00
Nathan Ridge
c22ccedea2 Bug 512932 - Check for standard conversions in CPPEvaluation.maybeApplyConversion()
Previously, we would just assume that if there is no user-defined
conversion involved, the evaluation successfully converts to the target
type.

This increased strictness exposed a couple of other bugs related to
evaluations, which are also fixed in this patch.

Change-Id: I8c40114da341d95b38f1ecc386e875badfe9f8c6
2017-05-07 18:40:25 -04:00
Nathan Ridge
432c3eaa04 Bug 512932 - Do not perform extra type manipulations in EvalMemberAccess.computeType()
The manipulations removed in this change have no basis in the standard,
as far as I can tell by looking at [expr.ref].

Change-Id: I4fc8c342b590dbeb5a876543f736934c162034cc
2017-05-06 00:02:33 -04:00
Nathan Ridge
d4841209b5 Bug 515343 - NPE in NamespaceHelper.checkFileNameAndLocation()
Change-Id: Id281e1cd8ec189e214dcfeffb6d238b66c87050e
2017-05-05 23:59:58 -04:00
Jonah Graham
121d748c2c Bug 516053: Enable extending of MIBreakpointsManager/Synchronizer
This involves API improvements and documentation to allow extenders
to extend these DSF services.

Change-Id: Ieb87a6fca757794c9f950d610bb6999e8a86e30d
2017-05-05 09:51:19 -04:00
Thomas Corbat
5dff17514c Bug 310837 - Indexer misses changes to header in referenced project
Extended PDOMManager to update index for header files in referencing
projects


Change-Id: I5a5b364651dbb854662c31197dd7ad77f13caff0
Signed-off-by: Thomas Corbat <tcorbat@hsr.ch>
2017-05-05 09:44:26 -04:00
Jonah Graham
903da92803 Bug 516244: Allow subclasses to provide the current CLI context
Change-Id: I8138f16bb57433af1690dbd77a735c810cef052f
2017-05-05 09:42:33 -04:00
Yannick Mayeur
5defeb26ac Reformat the file, tabs and spaces were mixed
Change-Id: If136dc3222c23f2ed41539d25b509161a0313475
Signed-off-by: Yannick Mayeur <yannick.mayeur@gmail.com>
2017-05-05 09:32:34 -04:00
Jonah Graham
d4ecd37bb1 Bug 516053: Allow MIBreakpointDMData to be extended
New API to allow third-parties to extend MIBreakpointDMData with their
own custom Breakpoint handling.

Includes deperecating of MIBreakpointNature that was not used anywhere
in CDT except within internals of MIBreakpointDMData. It arguably
should never have been API in the first place.

Change-Id: I6bcdf2ccaa28d15835ab022648b9b4b0aa7498a7
2017-05-05 08:35:48 -04:00
Jonah Graham
a36ecd3839 Bug 516053: Allow MIBreakpoint to be extended
New API to allow third-parties to extend MIBreakpoint with their
own custom Breakpoint handling.

Change-Id: I64abfc41916a2053cfbed7e3db2357fbf2572050
2017-05-05 08:32:35 -04:00
Yannick Mayeur
bda21e55ab Bug 515703: The source not found editor now updates
I removed an if statement where the two compared items always have the same
value thus not executing the code that updates the editor.

Change-Id: I3fb43a1c84d06ce6dc92e95f6c745a4b23977f2d
Signed-off-by: Yannick Mayeur <yannick.mayeur@gmail.com>
2017-05-05 06:21:29 -04:00
Brendan Dahl
a4ed678552 Bug 513505. Escape arguments for CDT standalone.
Change-Id: I2119321ea9c4227d23b30f9177889ee24a6b5bbb
Signed-off-by: Brendan Dahl <bdahl@mozilla.com>
2017-05-04 17:10:31 -04:00
Nathan Ridge
a44996a200 Bug 513428 - Ensure PDOM implementations of IASTFileLocation.getFileName() do not return null
Change-Id: I1adb158bd8efc23300bf5c212d6ed4f532a19205
2017-05-03 11:45:26 -04:00
Nathan Ridge
917061f98a Bug 512789 - Guard against infinite recursion in TypeTraits.hasTrivialDefaultConstructor()
The infinite recursion could happen if an inheritance hierarchy has a
cycle in it, or if a class aggregates itself (both of which are invalid).

Change-Id: I99598a57982dca51acab5a1297392f04d9008aec
2017-05-02 23:01:04 -04:00
Alena Laskavaia
32c2e14b80 Fixed copyright
Change-Id: I801f28d73afeba8432283eb9b5e8de3fa9b47a32
Signed-off-by: Alena Laskavaia <elaskavaia.cdt@gmail.com>
2017-05-02 12:41:40 -04:00
Doug Schaefer
582a7c10d5 Bug 515990 - Fix constant reindexing in CMake projects
There were issues with how the Core Build calculated whether reindexing
was required due to compiler settings changes. Also if a source file
was built more than once in a CMake build, it ended up always
triggering a reindexing since the second instance looked like a
settings change. We now only use the last compile command for a file.

Change-Id: Icf2922e527ae20e0c3b0dae898d981d334013109
2017-05-02 10:14:13 -04:00
Thomas Corbat
db6790d824 Bug 515814 Copyright header for CaseBreakQuickFixCommentTest
Associated with Bug 515814


Change-Id: Id32b0e8a77a774ff8922aa289a457e4f63434ecd
Signed-off-by: Thomas Corbat <tcorbat@hsr.ch>
2017-05-01 10:09:14 +02:00
Nathan Ridge
f451a27846 Bug 515453 - Do not have CPPAliasTemplateInstance store its arguments in string form
This ability was only needed by two tests, and stringifying template
arguments is prone to infinite recursion problems.

Change-Id: I485fa09358c0569b48b6847994aed720ba969b1f
2017-05-01 02:02:37 -04:00
Nathan Ridge
87db7de765 Bug 515453 - Clear all ProblemBindings stored during ambiguity resolution
This prevents names getting incorrectly stuck with ProblemBindings
created at a time when the AST wasn't fully ambiguity-resolved yet.

Change-Id: Ibca4a774ee26c393bf2b6decb535b82a2329caad
2017-05-01 02:01:10 -04:00
Jonah Graham
6edd1c6a53 Bug 499778: Stop losing stacktraces in tests
Rather than try/catch/fail just let exception cascade so that the full
stacktrace is available in the test results.

The braces have been left in place for scoping and to minimize changes.

Change-Id: I5407829ea964f828e3f996794489a7b884de25fb
2017-04-28 21:11:27 +01:00
Pierre Sachot
10b1e6e4c7 Bug 515296: New Preferences for Source not found Editor
You now have more precise options for the Source not
Found Editor.

Change-Id: I7391e50c0a9bf7fc712a45d1946e5a24e91c4991
Signed-off-by: Pierre Sachot <sachot.pierre@laposte.net>
Signed-off-by: Yannick Mayeur <yannick.mayeur@gmail.com>
Also-by: Pierre Sachot <sachot.pierre@laposte.net>
Also-by: Yannick Mayeur <yannick.mayeur@gmail.com>
2017-04-28 12:09:18 -04:00
Simon Marchi
9462c1db24 Bug 399494 - Consider all variable objects as not complex
There are cases where we consider some variables as complex when they
are not.  In particular, if a pointer is declared using a typedef, is
will be considered complex with the current code.  This is because it
has a child (the pointed value), but CDT doesn't know it's a pointer.

One of the consequence is that we assume the value is not modifiable.
Therefore, we won't update its value when it changes, and we won't let
the user edit it.

Initially I thought it would be safe to assume that variables with two
or more children are complex, but pointers to structures have as many
children as the structure has fields.  Therefore, a pointer to a
structure, declared as a typedef, will still be wrongfully considered as
complex.  Since there's no easy way to know for sure whether a variable
is complex, just assume everything is simple.

I added a test to verify that the value of a pointer declared using a
typedef will update correctly in CDT as it changes in the program.
There are two distinct scenarios, pointers that are variables and
pointers that are fields of structures.  Instead of adding content to
testUpdateOfPointer, I decided to make a similar test method,
testUpdateOfPointerTypedef.  The original test method was getting too
long and was difficult to follow.  I think it's good to keep them short
and focused.

Another test verifies that the same kind of pointer can properly be
written/modified by the user.

Change-Id: If43b3b6e49cd4a20ea929c2a096745a32de14cd0
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
2017-04-28 10:59:24 -04:00
Jonah Graham
fe3dc4a3de Bug 515754: Remove no longer used Buckminster build system remnants
Change-Id: I44df28bf15a2ba69d5f4e55305bb65db4c2cbe46
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
2017-04-28 04:05:20 -04:00
Marc-Andre Laperle
44067d9115 Bug 514069 - Language Mappings section not shown in file properties if opened from Java's "Package Explorer" view
The Package Explorer's content provider is not extensible the same way
as the CommonNavigator so it does not contain CElement in its tree;
instead it contains IResources (IFile, etc) and Java specific elements.
However, the file language mapping property page is set to be displayed
on selections that adapt to translation units.
So this change allows IFiles to be adapted to ITranslationUnits
therefore the property page can still be shown from the Package Explorer.

Change-Id: Ia52a62c2d8800e2a4f0404bc00e346decbacaa3b
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2017-04-27 10:51:43 -04:00
romibi
525d8a23fb Bug 515814 - codan: add missing JUnit Test
Change-Id: I626811b33ed09bb07c947c1c491b2c04e282232b
Signed-off-by: romibi <romibi@bluewin.ch>
2017-04-26 11:35:25 -04:00
Jonah Graham
6473183440 Fix typo in javadoc
Change-Id: I24a3a59423b8c9a153abc9e4d99f94d7760aa3a2
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
2017-04-26 05:03:08 -04:00
Nathan Ridge
eb5cfa7052 Bug 515727 - Improve error message
Change-Id: I773850518b265534c462b10c3ba678ac184334c3
2017-04-25 19:06:19 -04:00
Jonah Graham
98a578cf94 Bug 515768: Don't install BPs that are entirely filtered
This check already existed for modifying breakpoints, but didn't exist
for creating new breakpoints or installing initial breakpoints.

Change-Id: I5ff5ce0b3ac603ccffa49bd98d60f7202505a7bd
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
2017-04-25 14:42:47 +01:00
Jonah Graham
a797534968 Bug 515756: Allow extending classes to provide getFilterExtension
This affects the synchronizer as it now should defer to the manager
to get the filter extension, instead of trying to load it directly.

Change-Id: I0e646f115ba089453c56f2cc356a4e0a99a1a3b7
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
2017-04-25 12:08:22 +01:00
Nathan Ridge
375c3c6e50 Bug 515348 - Propagate point of instantiation in EvalTypeId.computeForFunctionCall()
Change-Id: I0b23a1e8ad86cbae225005429ca66ae03e6b3a34
2017-04-25 02:44:39 -04:00
Jonah Graham
fffe6bbf80 Bug 515653: Fix SWT disposed exception
Change-Id: I2d39961189552602464ee96e0464eba060fcfb03
2017-04-24 07:35:06 -04:00
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