1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-30 12:25:35 +02:00
Find a file
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
.mvn releng: Make use of Tycho POM-less functionality 2017-02-13 23:19:56 -04:00
build Bug 515560: Avoid indexer race condition by joining the indexer 2017-04-24 07:31:54 -04:00
codan Bug 515814 - codan: add missing JUnit Test 2017-04-26 11:35:25 -04:00
core Bug 514069 - Language Mappings section not shown in file properties if opened from Java's "Package Explorer" view 2017-04-27 10:51:43 -04:00
cross Bring back some pom.xml from features 2017-04-18 22:49:39 -04:00
debug Bug 515296: Adding choice to not show editor again 2017-04-21 11:24:47 +01:00
doc Add missing reference to GDB Debugging Preferences (for DSF preferences) 2016-12-05 21:47:25 +00:00
dsf Bug 515754: Remove no longer used Buckminster build system remnants 2017-04-28 04:05:20 -04:00
dsf-gdb Bug 399494 - Consider all variable objects as not complex 2017-04-28 10:59:24 -04:00
jtag Bring back some pom.xml from features 2017-04-18 22:49:39 -04:00
launch Bring back some pom.xml from features 2017-04-18 22:49:39 -04:00
llvm lldb: Update version check to newly released, non-beta Xcode 2017-04-11 10:44:40 -04:00
lrparser Bug 512932 - Name lookup for friend class 2017-04-08 02:15:37 -04:00
memory releng: Make use of Tycho POM-less functionality 2017-02-13 23:19:56 -04:00
native Bug 509118. Extend regexp to detect devices in /dev for Linux. 2017-03-23 16:32:08 -04:00
qt Bug 512262 - Remove the unnecessary ICPPEvaluationOwner interface 2017-02-17 01:14:35 -05:00
releng Bring back some pom.xml from features 2017-04-18 22:49:39 -04:00
remote releng: Make use of Tycho POM-less functionality 2017-02-13 23:19:56 -04:00
testsrunner Bug 484942. Change --output_format from xml to XML 2017-04-05 10:54:45 +02:00
toolchains/arduino releng: Make use of Tycho POM-less functionality 2017-02-13 23:19:56 -04:00
upc releng: Make use of Tycho POM-less functionality 2017-02-13 23:19:56 -04:00
util Bring back some pom.xml from features 2017-04-18 22:49:39 -04:00
visualizer releng: Make use of Tycho POM-less functionality 2017-02-13 23:19:56 -04:00
windows releng: Make use of Tycho POM-less functionality 2017-02-13 23:19:56 -04:00
xlc releng: Make use of Tycho POM-less functionality 2017-02-13 23:19:56 -04:00
.gitignore Ignore NFS-created files. 2012-11-08 13:34:54 -08:00
pom.xml Bug 515304: profiles to parallelize testsuite 2017-04-14 20:03:36 -04:00