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

23523 commits

Author SHA1 Message Date
Andrew Eidsness
5e130ab883 Bug 422804: Allow contributors to add data to the PDOM
The CDT persists an index of source code relationships by processing the
AST produced by the parser.  There is an existing extension-point that
allows contributors to create new linkages in this persisted file.
However there is no mechanism allowing contributors to influence the
data that is stored to the file.

This introduces a new extension-point allowing contributors to
participate in processing the AST that is being persisted to the index.
The intent is for this to be used to store data into the contributor's
new Linkage.

There is no change in functionality for existing linkages.  A
contributor will soon be added in the Qt plugin.

Change-Id: I845c90cbf7c713e23319e2ed1168eb7d74db5868
Signed-off-by: Andrew Eidsness <eclipse@jfront.com>
Reviewed-on: https://git.eclipse.org/r/19089
Tested-by: Hudson CI
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
IP-Clean: Doug Schaefer <dschaefer@qnx.com>
2013-11-29 00:27:15 -05:00
Andrew Eidsness
08c7d10763 Bug 422765: New method to find IBindings from qualifiedName
This creates a new method in CPPSemantics that will lookup a list of
IBindings from a qualifiedName.  E.g., given:

    namespace A
    {
        namespace B
        {
            int b;
        }
    }

CPPSemantics.findBindingsByQualifiedName(scope, "A::B::b"); will return
an array with the CPPVariable binding for b.

This commit contains a new test case for various cases that I've thought
about.  I had expected that by using the existing lookup functions (in
CPPSemantics) I wouldn't have to think too hard about various matches.
However, the existing functions didn't work quite the way that I
expected.

Change-Id: I8a5aacba4a02d87f71ed4698aa432c3161395a31
Signed-off-by: Andrew Eidsness <eclipse@jfront.com>
Reviewed-on: https://git.eclipse.org/r/19067
Tested-by: Hudson CI
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
IP-Clean: Doug Schaefer <dschaefer@qnx.com>
2013-11-28 23:37:18 -05:00
David Kaspar
026b9325f0 Bug 422797 - API for retrieving QMake information from Qt project
API is located at org.eclipse.cdt.qt.core.index package.
Entry point is QMakeProjectInfoFactory.getForActiveConfigurationIn method
that provides ability to retrieve QMake information (IQMakeInfo interface)
for active project configuration of a specified project.
Also allows to listen on changes of such information.

qmakeEnvProvider extensions allows CDT build-system to provide environment
for QMake runs within their build-system.

Information is gather by parsing output of:
1) qmake -query
2) qmake -E file.pro // only for QMake version 3.0

Change-Id: Iae569bdbc89dc26d60530596b66b5227f36dfae6
Signed-off-by: David Kaspar <dkaspar@blackberry.com>
Reviewed-on: https://git.eclipse.org/r/19082
Reviewed-by: Andrew Eidsness <eclipse@jfront.com>
Tested-by: Hudson CI
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
IP-Clean: Doug Schaefer <dschaefer@qnx.com>
2013-11-28 23:33:42 -05:00
Andrew Eidsness
f887c8e671 Bug 422681: Allow references to bindings in other linkages
The existing PDOMBinding and PDOMName implementations do not allow
references between linkages.  This feature is needed so that the new Qt
linkage can reference elements in the C++ linkage.  It will also allow
the C++ implementation for extern "C" to be cleaned up (see
PDOM.getCrossLanguageBindings).

Prior to this change, a PDOMBinding held three lists of names.  One for
each of declarations, definitions, and references.  This change adds a
fourth list for external references.  External references are stored as
a linked list of nodes.  Each node holds:

    - The linkage id.
    - A pointer to the next node (or 0 for end-of-list).
    - A pointer to the record of first name in the list.

The linkage id is held separately because a PDOMName does not have any
field of it's own for linkage.  By grouping elements in this way, we can
reuse most of the existing list-related code.

External references are accessed through a new PDOMIterator class.  This
is needed so that we can advance to the next linkage node when we get to
the end of one node's list of names.

This also adds a unit test for the new API.

Change-Id: Ie2b14848db7409905beda0cec752080d5f42eec8
Signed-off-by: Andrew Eidsness <eclipse@jfront.com>
Reviewed-on: https://git.eclipse.org/r/18979
Tested-by: Hudson CI
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
IP-Clean: Doug Schaefer <dschaefer@qnx.com>
2013-11-27 19:56:03 -05:00
Sergey Prigogin
a205557db0 Cosmetics. 2013-11-27 16:25:07 -08:00
Sergey Prigogin
a45fabad98 Bug 422700 - Name resolution problem with variadic template. 2013-11-27 16:21:54 -08:00
Sergey Prigogin
853af1574b Cosmetics. 2013-11-27 16:20:35 -08:00
Sergey Prigogin
02001dbe71 Bug 422695. More test cases and fixes. 2013-11-27 14:27:00 -08:00
Sergey Prigogin
2f38016b98 Cosmetics. 2013-11-27 12:25:33 -08:00
Sergey Prigogin
e9e53fb9fa Bug 422695 - Organize Includes does not add include for template
parameter of unique_ptr, etc.
2013-11-27 09:42:55 -08:00
Marc Khouzam
2eb80a6d34 Updated version of o.e.cdt.debug.core
Change-Id: I4fb1a8de62336a31cd417b3fafe29b0144a6acb2
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2013-11-26 14:46:59 -05:00
Marc Khouzam
47303b4253 Bug 413483 - Protect agains NPE if endianness is not initialized
Change-Id: I8d21ccf3d45bb45bca4bfdc7c24ada0c21335f4b
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/16507
2013-11-26 13:43:17 -05:00
Sergey Prigogin
38fd6392e2 Cosmetics. 2013-11-25 19:48:46 -08:00
Sergey Prigogin
2d58772f73 Bug 421247 - ASTNode.copy() chaining inconsistent
Change-Id: I89397209ae6a47b5a3a0827942b83a6755bc60e0
Reviewed-on: https://git.eclipse.org/r/18874
Tested-by: Hudson CI
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2013-11-25 21:37:10 -05:00
Sergey Prigogin
d77a625716 Updated version of the branding plug-in to match the feature version. 2013-11-25 10:47:59 -08:00
Philippe Gil
1ba8833d49 Bug 421541 - Support all languages for memory context's address size
add MIGDBShow MIGDBShowLanguage MIGDBSetLanguage
When retrieving memory context's address size do
Store initial language
Set language to c
Read address size
Restore initial language

Change-Id: I6b504526a1cde8d509299d57cf3e1d70d73c4f5b
Signed-off-by: Philippe Gil <gil@adacore.com>
Reviewed-on: https://git.eclipse.org/r/18371
IP-Clean: Mikhail Khodjaiants <mikhailkhod@googlemail.com>
Tested-by: Mikhail Khodjaiants <mikhailkhod@googlemail.com>
Tested-by: Hudson CI
Reviewed-by: Marc Khouzam <marc.khouzam@ericsson.com>
IP-Clean: Marc Khouzam <marc.khouzam@ericsson.com>
Tested-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-by: Mikhail Khodjaiants <mikhailkhod@googlemail.com>
2013-11-25 09:36:07 -05:00
Sergey Prigogin
4f485bfd58 Bug 422217 - NPE in IndexLocationFactory.getAbsolutePath 2013-11-21 11:47:18 -08:00
Sergey Prigogin
24922585f0 Bug 421398 - Organize Includes not adds includes for base class. 2013-11-20 11:47:17 -08:00
Sergey Prigogin
6f2c349bc3 Corrected tracing code. 2013-11-19 13:47:17 -08:00
Sergey Prigogin
6aa836780c Cosmetics. 2013-11-18 19:13:47 -08:00
Marc-Andre Laperle
dfd0794ed6 Bug 421889 - Typo in CRefactoringDescriptor_unknown_project message
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2013-11-16 17:21:56 -05:00
Marc-Andre Laperle
c980af0e11 Bug 419983: Add a testing update site that contains the testing feature
I also removed some test plug-ins from the feature that were not getting
built and therefore could not be included.

Change-Id: I4c450b3029a5010c3f23b2dcda5c1356b9295688
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/18323
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
IP-Clean: Doug Schaefer <dschaefer@qnx.com>
Tested-by: Doug Schaefer <dschaefer@qnx.com>
2013-11-13 09:36:08 -05:00
Sergey Prigogin
33174d0697 Cosmetics. 2013-11-07 20:27:37 -08:00
Sergey Prigogin
c98b965760 Erase code_formatter preference when disabling project specific settings 2013-11-07 20:23:28 -08:00
Sergey Prigogin
e363ba7f04 Cosmetics. 2013-11-07 11:26:53 -08:00
Marc Khouzam
012e777293 Bug 420366 - [expressions] ExpressionInfo.inMemory() does not work for
children of array elements

Change-Id: If000fd9bb935f7aaeb686c6a2785052b70df226d
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/17788
Reviewed-by: Mikhail Khodjaiants <mikhailkhod@googlemail.com>
IP-Clean: Mikhail Khodjaiants <mikhailkhod@googlemail.com>
Tested-by: Mikhail Khodjaiants <mikhailkhod@googlemail.com>
2013-11-07 11:57:53 -05:00
Serge Beauchamp
3d9e51d8ae Bug 421070 - DwarfReader should scale better for large binaries
Change-Id: I9e085f7fc8e48b265d0e3aa36501e9ae3dadad91
Signed-off-by: Serge Beauchamp <sergebeauchamp@mac.com>
Reviewed-on: https://git.eclipse.org/r/18081
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
IP-Clean: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2013-11-06 23:05:37 -05:00
Anton Leherbauer
3e528ebafe Bug 420604 - Disassembly view tends to scroll upwards on refresh 2013-11-05 15:03:29 +01:00
Doug Schaefer
61c76973a3 Revert "Bug 419738 Support overriding MIVariableManager and friends"
This reverts commit 4721d23a6b.
2013-11-04 14:36:41 -05:00
Doug Schaefer
4721d23a6b Bug 419738 Support overriding MIVariableManager and friends
We have a new way of gathering variables from gdb using some fancy
python scripts. These changes are to easily allow us to override
the variable manager to do that.

Change-Id: I213c5835fa165227747a88da1f239bff1b41e673
2013-11-04 14:34:16 -05:00
Liviu Ionescu
6c8e4c45f4 Bug 322168: source files with specific settings disable secondary
outputs

Change-Id: I86caab2a842ef821606cf589c194b8deee91c5ec
Signed-off-by: Liviu Ionescu <ilg@livius.net>
Reviewed-on: https://git.eclipse.org/r/17735
Tested-by: Hudson CI
Reviewed-by: Andrew Gvozdev <angvoz.dev@gmail.com>
IP-Clean: Andrew Gvozdev <angvoz.dev@gmail.com>
Tested-by: Andrew Gvozdev <angvoz.dev@gmail.com>
2013-11-02 16:03:37 -04:00
Doug Schaefer
568d99f7b4 Another typo. This sucks. 2013-11-01 12:55:25 -04:00
Doug Schaefer
9dc0c47205 Fix typo on repo pom. 2013-11-01 12:53:34 -04:00
Doug Schaefer
2e7e6aa999 Fix error in repo pom. 2013-11-01 12:52:48 -04:00
Doug Schaefer
70a8846b7f Use CBI signing setup. 2013-11-01 12:51:14 -04:00
Doug Schaefer
e4f1fdf702 Put the maven repo back. 2013-11-01 12:23:20 -04:00
Doug Schaefer
1877f09667 Try and get signing plug-in working. 2013-11-01 12:18:55 -04:00
Anton Leherbauer
579050d91b Fix NPE in CDebugUIUtils.getEditorFilePath() if file does not exist 2013-10-31 12:06:20 +01:00
Marc-Andre Laperle
972006b048 Fix clean failing when dsf-gdb ant script has never been executed
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2013-10-29 01:04:27 -04:00
Marc-Andre Laperle
e13572fc4c Upgrade to Tycho 0.19.0
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Change-Id: I93dc80035f96c4c8dfb1c22cdfa95b9631705ec9
Reviewed-on: https://git.eclipse.org/r/17838
2013-10-28 23:50:58 -04:00
Marc-Andre Laperle
e911482b4e Fix compilation error. 2013-10-28 22:17:43 -04:00
Jens Elmenthaler
a7321b3293 Bug 341336: fix empty names for functions in anonymous namespaces with
GDB 7.2 or newer.

Change-Id: I9aace64c84d92987fa679f809e4c89d1d53499e4
Signed-off-by: Jens Elmenthaler <jens.elmenthaler@advantest.com>
Reviewed-on: https://git.eclipse.org/r/7554
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
IP-Clean: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2013-10-28 20:43:43 -04:00
Sergey Prigogin
642d4c3975 A step towards unification of Organize Includes and Add Include header
substitution algorithms.
2013-10-28 16:27:08 -07:00
Sergey Prigogin
cc3695ca21 Cosmetics. 2013-10-25 09:26:03 -07:00
Andrew Gvozdev
8aa01dbdfc bug 420287: CDT features are scattered around in update manager 2013-10-24 12:50:54 -04:00
Andrew Gvozdev
09915f99bf bug 420287: CDT features are scattered around in update manager 2013-10-24 11:11:58 -04:00
Anton Leherbauer
8266544aee Fix potential NPE or widget is disposed error 2013-10-24 14:53:38 +02:00
Serge Beauchamp
66acca58ba Bug 409916 - Can not expand Binary with DWARF 4 format, NPE in
DwardReader

Change-Id: Iaea9685051d5dd73f8504ea3714ce26198fdac46
Signed-off-by: Serge Beauchamp <sergebeauchamp@mac.com>
Reviewed-on: https://git.eclipse.org/r/17542
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-by: Jeff Johnston <jjohnstn@redhat.com>
IP-Clean: Jeff Johnston <jjohnstn@redhat.com>
Tested-by: Jeff Johnston <jjohnstn@redhat.com>
2013-10-23 12:28:31 -04:00
Marc-Andre Laperle
e562b5e204 Bug 419900 - NPE in BaseClassLookup.lookupInBaseClass
Change-Id: I868bf1918a18a9e7db4aba4d2792510aea03e9a4
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/17551
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2013-10-21 23:56:20 -04:00
Sergey Prigogin
d2b9c42395 Cosmetics. 2013-10-21 17:02:40 -07:00