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

25014 commits

Author SHA1 Message Date
Nathan Ridge
9640ac4917 Bug 455797 - Show template parameter list for alias template completions
Change-Id: I138861d305a02927014eebe882065e9c7fa877c8
2016-12-19 14:35:39 -04:00
Nathan Ridge
2706699543 Bug 399147 - Make 'Find Reference' find using-declarations
Change-Id: I0183dfb9a19efdadd127e5014f101a38ad04ff92
2016-12-19 14:34:10 -04:00
Nathan Ridge
e252be5dd5 Bug 495098 - Avoid & character in function signature being treated as SWT mnemonic
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
2016-12-19 14:29:44 -04:00
Nathan Ridge
4e7f132020 Bug 379623 - Follow includes in inactive code paths
Change-Id: Iafc03eea7443b1d58a1521071783c39bbf3cdbcb
2016-12-19 14:27:58 -04:00
Nathan Ridge
cf46cbf117 Bug 508216 - Enclosing definition for macro reference name
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
2016-12-19 14:25:22 -04:00
Nathan Ridge
e31d51988d Bug 491343 - Find references with only polymorphic results
This commit also adds infrastructure for testing 'Find References'.

Change-Id: Ibe33dd00dd178587b202a9ebb1dd29315711f6fb
2016-12-19 14:21:21 -04:00
Nathan Ridge
b4ffef7cbb Bug 508254 - Static field of enclosing class type
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
2016-12-19 14:14:21 -04:00
Sergey Prigogin
03bcd35cdf Cosmetics
Change-Id: Id86b562ee7b2b2b2944dd25e0178d4ecb452f5a8
2016-12-17 21:49:54 -08:00
Sergey Prigogin
aca869c045 Fixed a ClassCastException.
Change-Id: Ib221d863650b5174f00e25e9dc9ff30c5870047f
2016-12-17 16:13:19 -04:00
Sergey Prigogin
0b6dfff78c Revert "Added stack trace to diagnostic messages."
This reverts commit 5f1c234b77.

Change-Id: Ic821628d828ca3b9eeed1a723f97b48a17767419
2016-12-16 21:11:44 -04:00
Sergey Prigogin
5f1c234b77 Added stack trace to diagnostic messages.
Change-Id: I4d4bc1bb6f51ec3f0cf88b13d77e6bb697146e8b
2016-12-16 20:56:14 -04:00
Sergey Prigogin
432524a9a8 Cosmetics
Change-Id: Iad960581c97caeff0e486020ee7e18fa1eb06bd4
2016-12-16 20:55:41 -04:00
Sergey Prigogin
d9a08b007e Minor performance optimization.
Change-Id: I9274509f013abda8a7e7950caf204c7398a7476c
2016-12-16 20:54:55 -04:00
Sergey Prigogin
24c71972ba Removed an obsolete TODO.
Change-Id: Ib3a7a3294d5bf5d76a91910a0cfb840fb82a797e
2016-12-15 18:06:52 -08:00
Christian Sell
e0c3180f80 Bug 503153.Fixed NPE in GCCToolChain.getDefaultScannerInfo()
Change-Id: I51c4d4c2e517fc5743b180c99212dc9c3b8134ed
Signed-off-by: Christian Sell <c.sell@byterefinery.de>
2016-12-15 10:44:05 -04:00
Jonah Graham
a6e77633bd Bug 509248: Disable unstable/intermittent SWTBot based tests
Change-Id: I97b764c2aa695fed32a9c39232ba53522383deca
2016-12-14 19:44:08 +00:00
Marc Khouzam
117613d569 Update o.e.cdt.ui version for the 9.3 release.
Change-Id: Ic71e4e32d44d07c4546fa897b4a1439da22af302
2016-12-14 14:47:01 -04:00
Marc Khouzam
dfcc0962d3 Updating baseline for CDT 9.2 (RC4)
Change-Id: Ic76e7e567b69901e93c80634413df23449257138
2016-12-14 13:46:46 -05:00
Nathan Ridge
cee87b1757 Bug 483048 - Navigation to forward declaration of class template
Change-Id: I611b50acf1ed80f02f7ee3edae4f8f80c4dfb313
2016-12-14 13:37:23 -04:00
Nathan Ridge
e3017e7656 Bug 507974 - Open Declaration on identifier in assembly file
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
2016-12-14 13:35:42 -04:00
Nathan Ridge
5b86da58ad Bug 507285 - Open Declaration for assembly editors
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
2016-12-14 13:23:47 -04:00
Nathan Ridge
5d0e9dc625 Bug 507285 - Factor out the core logic in OpenIncludeAction into a separate class CElementIncludeResolver
Change-Id: I07e78c3bbb39e24ec7684b32177a5b4c7881b1d2
2016-12-14 13:22:41 -04:00
Nathan Ridge
56512e5af4 Bug 491298 - Include indexer markers in next/previous annotation navigation
Change-Id: I774903b894ac55b6a2721c74078466ae1d1cff3c
2016-12-13 16:38:10 -04:00
Jonah Graham
f0ba639995 Cosmetics.
Change-Id: I32e482e24ed992d8a4939f0447e540e039eb9e04
2016-12-12 23:48:16 -04:00
Marc-Andre Laperle
da53010a32 stand-alone: Adjust product contents for Oxygen
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>
2016-12-12 14:21:50 -05:00
Nathan Ridge
ffad1908b0 Bug 508254 - Fix some more indexer exceptions
- 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
2016-12-11 16:14:53 -05:00
Nathan Ridge
f47edd44e3 Bug 470726 - Avoid name resolution resulting in PDOM bindings for class template partial specializations defined in the AST
Change-Id: I1e08c7430dd0478357867266648e02cc45eaa888
2016-12-11 04:16:12 -05:00
Nathan Ridge
688b358746 Bug 508254 - Do not assume every field has an initializer
Change-Id: I9d6a3ba13606c8bb514598906e42cc0cc4d4d2c5
2016-12-11 05:12:15 -04:00
Nathan Ridge
db9dea4408 BUg 508254 - Move the recursion protection set in CPPVariable.getInitialValue() to EvalUtil.getVariableValue()
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
2016-12-11 05:11:47 -04:00
Marc Khouzam
cf2e9fe3c8 Remove dependency to cdt-master from CDT's target file.
The CDT does not need to depend on itself.
I believe this dependency was added while troubleshooting another
problem.

Change-Id: Ic79cc8c00c67f323198bb49d1596e4d254bbd924
2016-12-09 09:57:10 -05:00
Nathan Ridge
cf6c25ae47 Bug 508254 - Improve handling of braced-init-lists
Also avoid several exceptions in related codepaths.

Change-Id: I528a123daff090033285f0ed930ac5b822100974
2016-12-08 15:13:33 -04:00
Nathan Ridge
63e6688940 Bug 508254 - Variable initializer that references the variable
Change-Id: Ic5b0692db297dead087e4c8479fa0c0f134554da
2016-12-08 15:12:54 -04:00
Marc Khouzam
17ed6bead8 Update target platform to point to oxygen
Change-Id: Ia5a817e77c128802bf6274e061ff8798a3e1a2cc
2016-12-08 12:56:28 -05:00
Nathan Ridge
0d02aea069 Bug 508254 - Do not allow instantiation of template with invalid non-type template argument
Change-Id: I29472ddda96631147022c4302f9e9b96a1e3d9e6
2016-12-07 17:25:40 -04:00
Nathan Ridge
a93b94b822 Bug 508254 - Instantiation of id-expression naming static field
Change-Id: I97732a3f1ceba560e762e5f61c68a052ebceb7b5
2016-12-06 20:41:42 -04:00
Jonah Graham
e9c3f978a8 Add missing reference to GDB Debugging Preferences (for DSF preferences)
Change-Id: I46636de4cf8893991ba6587425c45eea6c2d93e5
2016-12-05 21:47:25 +00:00
Jonah Graham
e7ccfabb32 Bug 484900: Remove CDI User Documentation
Change-Id: I16ebb6319d3f10edba55b1b96be053a2dc9bc8b4
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
2016-12-05 21:46:22 +00:00
Simon Marchi
955afec343 Fixup for "[dsf-gdb] debug tests: Use line tags where possible"
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>
2016-12-04 12:06:00 +00:00
Nathan Ridge
3a4f8c1ac7 Bug 506672 - Use ICPPEvaluation to evaluate all unary and binary C++ expressions
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
2016-12-03 21:21:50 -04:00
Nathan Ridge
d48ebf5d25 Support aggregate initialization in EvalTypeId
The patch also improves the propagation of the point of instantiation
in CompositeValue.

Change-Id: I01d508ab901efeb18a5e6fdb144853b70e1fc829
2016-12-03 21:20:48 -04:00
Simon Marchi
c389f49659 [dsf-gdb] debug tests: Use line tags where possible
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>
2016-12-03 18:08:14 -05:00
Simon Marchi
e8cc363899 MIBreakpointsTest: Factor out breakpoint validation
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>
2016-12-03 17:59:23 -05:00
Simon Marchi
e2c5019896 MIBreakpointsTest: Replace AsyncCompletionWaitor with queries
The queries are less verbose and less error-prone.

Change-Id: I875e7f94436b0284c236b850482f9f5ff4cbebf7
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
2016-12-03 17:29:05 -05:00
Alexander Kurtakov
67648e0396 Fix cmake feature to use license feature for proper license.
Change-Id: Iec4d07db7f73f38fe72fe698fede2b380052879d
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2016-11-30 21:45:30 +02:00
Sergey Prigogin
dccd99c843 Code cleanup
Change-Id: If94553894586f8745fff9952f3648160110ba609
2016-11-29 20:16:01 -05:00
Sergey Prigogin
83bd6f7ed4 Bug 508338 - Friend class declaration hides the real one in outer
namespace

Change-Id: I3808c74b5b64505b07b8bb1e1a482d7a4c292dfe
2016-11-29 08:32:21 -08:00
Sergey Prigogin
2236ada9fd Made some methods final.
Change-Id: I2100ee93f41df7f4815c22a348a22f823422031d
2016-11-29 10:47:09 -05:00
Sergey Prigogin
83cac8d70e Cosmetics
Change-Id: Iafd277ea476c66fd0639364e4040a3b91cda7a2a
2016-11-29 02:30:32 -04:00
Sergey Prigogin
64cf0c8c51 Cosmetics
Change-Id: I25ee17f987444b59fab219ca05d46a6fa0bf0ed3
2016-11-28 17:42:00 -08:00
Simon Marchi
e5c63c7cd8 gdb build script: Make the script work with non-absolute base paths
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>
2016-11-22 16:33:01 -05:00