In an SWT label, '&' characters are treated as mnemonics.
Some labels can contain this character as their content
(e.g. if they represent the signature of a function with
arguments of C++ reference type), so they need to be
escaped.
Change-Id: I8ca57308f5dc3fa06648ce7f76df003e76fac3b6
Compute and store in the index an enclosing definition for
macro reference names. This allows showing the enclosing
definition when such a name appears in a search result.
Change-Id: I91eee4ad80c86d7ef90c69c1436387393fca2a19
We previously guarded against recursion in this case, but the
result was an invalid composite value that could cause problems
down the line.
This patch avoids getting into the recursion to begin with by
skipping the processing of static fields in a case where it's
not necessary to begin with.
Change-Id: Ic3a346092bb7ad5c94cd15871110dd17ecd64886
Since we don't have a semantic model of assembly code, just look
for a CElement with a name matching the selected identifier in the
assembly file, and search for the selected identifier in the index.
Change-Id: Ifae8e7f608ca27b06fdb4d1d9d1797c88469a6c5
Currently, it only does something useful for include statements.
It uses the C model to resolve the include, much like clicking
on the include in the Outline view.
Change-Id: I4c50ff4b477721795d58f44acc5c0389c05d4768
The help feature in Oxygen has different dependencies so the plug-ins
included in the product have to change.
Change-Id: I2fbcccad82460a60eb571c0ec2faab277487ab80
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
- Avoid a ClassCastException in CPPConstructor.getMemberEvaluation()
- Fix an unsafe method call in EvalCompositeAccess.getType()
- Emit a log message in an error case in ASTInternal.getDefinitionOfBinding()
- Emit a log message in an error case in CompositeValue.setSubValue()
Change-Id: I5932c8b661e31eff32c2bb138efdb3029894d0ab
This catches recursion along paths in EvalUtil.getVariableValue() that don't
go through CPPVariabble.getInitialValue().
The patch also improves caching in EvalInitList.
Change-Id: I343bbf1bb7493b2c83771de3659209e5d512fd80
The CDT does not need to depend on itself.
I believe this dependency was added while troubleshooting another
problem.
Change-Id: Ic79cc8c00c67f323198bb49d1596e4d254bbd924
Unfortunately previous commit was submitted too early. There were
two problems that this commit corrects:
1) clear line tags before each test run - side effect of Bug 508642
When a test marked with Intermittent fails, the next retry is executed
with the same class instance. Therefore, the new try starts with a
non-empty fTagLocations. The test trips on the check that there are no
duplicate tags.
2) Fix failing testStopAtMainWithReverse
A blank line got inserted into the test case, that
interfered with the test logic.
Change-Id: If4c28557eac7ee740b4e3a5eac5dd2726c39a35d
Also-by: Jonah Graham <jonah@kichwacoders.com>
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
We were already using it for expressions whose operands didn't evaluate
to a number, but that missed expressions with enumeration operands (which
can call an overloaded operator).
Change-Id: I6f6e4ff3ba3c72db70ac6f8929473b065f2d758f
The goal is to eliminate direct source line number references in tests,
so that modifying test cases is easier.
Change-Id: I9a4964478e9486bff137fb9aec199cee144c2af4
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
Almost the same code is used in multiple tests to validate breakpoint
attributes. We can factor that out in a few support functions.
Change-Id: I819da62cc9e6d7434438574b695131b4cea19c77
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
The queries are less verbose and less error-prone.
Change-Id: I875e7f94436b0284c236b850482f9f5ff4cbebf7
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
There are two problems when passing a non-absolute path to the -b flag:
1. It ends up being used in "./configure --prefix=${base_dir}".
configure fails, because the prefix must be absolute.
2. It ends up being used to set up symlinks, leading to broken links.
Making the install path absolute fixes those.
Change-Id: I7c1d22754c1a788f02cd912f2114cc091951b303
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>