1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 22:52:11 +02:00
Commit graph

21769 commits

Author SHA1 Message Date
Marc Khouzam
c0c88fcf61 Missing @since tag 2013-03-06 17:39:35 -05:00
Jeff Johnston
43790e7873 Change org.junit4 requires to be org.junit 4.8.1 or greater.
- Kepler M6 SDK does not have org.junit4
- there is currently a compatibility plug-in in M5 that
  supplies it by reexporting org.junit 4.8.1

Change-Id: I29fa7a12277b47d2988a5cc452f3f1f47ed65507
Reviewed-on: https://git.eclipse.org/r/10875
Reviewed-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-by: Jeff Johnston <jjohnstn@redhat.com>
IP-Clean: Jeff Johnston <jjohnstn@redhat.com>
Tested-by: Jeff Johnston <jjohnstn@redhat.com>
2013-03-06 16:00:34 -05:00
Jesse Weinstein
953a92a2fe Bug 402071: Update Navigate menu docs
Two descriptions are still missing; need to research what exactly they
do.

Change-Id: If1e650375194999a3c5c4e74496ec8559f391837
Reviewed-on: https://git.eclipse.org/r/10789
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-03-06 12:57:39 -05:00
Nathan Ridge
3df391336b Bug 402409 - Dependent expressions and auto type resolution
Change-Id: I71c8f2237bf22ffd0d9e79b15dce8cd693556564
Reviewed-on: https://git.eclipse.org/r/10839
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-03-06 12:56:09 -05:00
Marc Khouzam
23d72af75b Bug 402217 - [breakpoints] Make use of the new "thread-groups" MI field
from GDB 7.6 breakpoint output

Change-Id: Iab94ffb3d706a2c5b53b9082e03c0f4e96028599
Reviewed-on: https://git.eclipse.org/r/10806
Reviewed-by: Mikhail Khodjaiants <mikhailkhod@googlemail.com>
IP-Clean: Mikhail Khodjaiants <mikhailkhod@googlemail.com>
Tested-by: Mikhail Khodjaiants <mikhailkhod@googlemail.com>
Reviewed-by: Marc Khouzam <marc.khouzam@ericsson.com>
IP-Clean: Marc Khouzam <marc.khouzam@ericsson.com>
Tested-by: Marc Khouzam <marc.khouzam@ericsson.com>
2013-03-06 07:45:54 -05:00
Doug Schaefer
617eb9e7be Make download location pluggable. 2013-03-04 00:13:07 -05:00
Doug Schaefer
993bf8d6aa Add llvm to the build. 2013-03-03 23:48:27 -05:00
Doug Schaefer
b4ccbb2748 Bug 338553 - import plugins from llvm4eclipse. Just importing everything
they had in svn.
2013-03-03 22:50:09 -05:00
Nathan Ridge
f9f94676a2 Bug 402257 - Incorrect overload resolution with SFINAE and nested types
Change-Id: Id97160bcccaa0daaa7eaeab965cc74fe816adef5
Reviewed-on: https://git.eclipse.org/r/10811
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-03-03 21:35:16 -05:00
Nathan Ridge
5eb0fb0451 Bug 402085 - UnsupportedOperationException in
ASTAmbiguousNode.getEvaluation()

Change-Id: I0ccad524d9ca717fd7a68fc571baf704159760ab
Reviewed-on: https://git.eclipse.org/r/10767
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-03-03 21:33:50 -05:00
Nathan Ridge
ec7a25ee6d Bug 401743 - NullPointerException in EvalBinding.instantiate() - tpMap
is null

Change-Id: Ie33a99c582adccb44152033ca29ba0b88b5823ad
Reviewed-on: https://git.eclipse.org/r/10805
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-03-03 20:39:00 -05:00
Nathan Ridge
664da44695 Bug 401973 - sizeof... operator on a template parameter pack
Change-Id: Ia502928ddf8fc2003f3a034ef13d38622ad9f0b9
Reviewed-on: https://git.eclipse.org/r/10803
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-03-03 19:37:34 -05:00
Andrew Gvozdev
c19b1ebaea Merge remote-tracking branch 'cdt/master' into sd90 2013-03-01 15:54:39 -05:00
Andrew Gvozdev
8364d2fbce bug 401734: CDT LanguageSettingsProviders do not support project-relative include paths 2013-03-01 14:46:45 -05:00
Andrew Gvozdev
72702f1a04 bug 401734: move LanguageSettingsImages.java from org.eclipse.cdt.internal.ui.newui to org.eclipse.cdt.internal.ui.language.settings.providers 2013-03-01 13:51:58 -05:00
Jesse Weinstein
d89d6a63f6 Bug 402071: Updating File menu docs
Change-Id: I6c427a126efdedbdff69c86a955dc88d1775aaf4
Reviewed-on: https://git.eclipse.org/r/10762
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-03-01 12:52:53 -05:00
Jesse Weinstein
9aa1b6ec2c Bug 402071: Updating verb tense in Edit menu
Change-Id: I9eb0e3eb5a88db8fd0b5c56d63eb04e9966f176c
Reviewed-on: https://git.eclipse.org/r/10763
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-02-28 21:24:44 -05:00
Andrew Eidsness
719982b23b Recognize Q_SIGNAL and Q_SLOT on single functions
Qt allows signals and slots to be marked directly on the function, e.g.,

class T
{
    Q_SIGNAL void some_signal();
    Q_SLOT   void some_slot();
};

This change modifies the Qt signal/slot tagger to look for these tags in
addition to the previously implemented search for the visibility label.

Change-Id: Ibf43df8d80d4ca9f8b62776e7a35a4fc067a289e
Reviewed-on: https://git.eclipse.org/r/10701
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
IP-Clean: Doug Schaefer <dschaefer@qnx.com>
Tested-by: Doug Schaefer <dschaefer@qnx.com>
2013-02-28 18:19:59 -05:00
Sergey Prigogin
5cad4cd8be Bug 402006 - [formatter] Crashes on sizeof() macro 2013-02-28 11:44:23 -08:00
Marc Dumais
91de353168 Bug 396268 - [Visualizer] Add CPU/core load information to the multicore
visualizer

Change-Id: I28432354b497732b4ecf7924bb7227e0b8d25508
Reviewed-on: https://git.eclipse.org/r/10077
Reviewed-by: William Swanson <traveler@tilera.com>
Reviewed-by: Marc Khouzam <marc.khouzam@ericsson.com>
IP-Clean: Marc Khouzam <marc.khouzam@ericsson.com>
Tested-by: Marc Khouzam <marc.khouzam@ericsson.com>
2013-02-28 11:05:22 -05:00
Sergey Prigogin
054a1f7bf3 Javadoc adjustments. 2013-02-27 19:35:59 -08:00
Sergey Prigogin
52c0edd492 Revert "Bug 401743 - NullPointerException in EvalBinding.instantiate() - tpMap is null"
This reverts commit 773aa77a2a.
2013-02-27 15:49:15 -08:00
Sergey Prigogin
0de53f5f2a Comment adjustment. 2013-02-27 12:44:51 -08:00
Sergey Prigogin
d806cdcf2d Code streamlining. 2013-02-27 12:34:14 -08:00
Sergey Prigogin
ba6c3f6316 Cosmetics. 2013-02-27 12:25:14 -08:00
Nathan Ridge
96a4a227aa Bug 401479 - Error involving variadic templates and function objects
Change-Id: Ie4fcbc1a14d9a3b034789b3dd5c2b24dd05c196d
Reviewed-on: https://git.eclipse.org/r/10578
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-02-27 14:51:06 -05:00
Nathan Ridge
773aa77a2a Bug 401743 - NullPointerException in EvalBinding.instantiate() - tpMap
is null

Change-Id: Iea69ddf7f1872f0e1b0a918faed400b6d5d4f2f7
Reviewed-on: https://git.eclipse.org/r/10641
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-02-27 14:25:47 -05:00
Doug Schaefer
9c4d88dab4 Fix up a few formatting things and the version number for tags. 2013-02-26 23:08:13 -05:00
Andrew Eidsness
6c6ab24c23 Bug 400020: Allow tagging of IBindings
Addresses review comments from https://git.eclipse.org/r/#/c/10648.

Fixes the junit problems by making sure that the dummy PDOM acquires its
write lock before calling exercising the tag index.

Original commit message:
This new extension point allows contributors to put their own
information into the PDOM and to later retrieve it for their own
purposes.

There are many details in the bug.  The idea is that contributors
provide an implementation of IBindingTagger, which is given a chance to
examine IBindings when they are created.  The ITagWriter interface
allows the contributor to create a new tag which can then have data
written to it.

The ITagService interface (accessible from CCorePlugin.getTagService()
provides a way for the contributor to later get an instance of
ITagReader to retrieve tags from bindings.

ITags are copied to the PDOM when the associated binding is persisteed.

Contributors use a unique id (based on their plugin id), so that
multiple contributors are able to independently tag a given binding.

In-memory tags are not cached.  I've done some timing tests using my
sample implementation and found no measurable difference.  The full log
lines look like:

	!MESSAGE Indexed 'simple-01' (2 sources, 184 headers) in <see below>
sec: 21,550 declarations; 35,394 references; 0 unresolved inclusions; 1
syntax errors; 0 unresolved names (0.00%)

I did 5 tests using the current master (no tagging-related code), the
times were:
	18.86 sec
	 9.17 sec
	 5.91 sec
	 4.79 sec
	 4.83 sec

And then I ran the same sequence of tests using the code in this
commit:
	18.73 sec
	 9.39 sec
	 6.50 sec
	 4.78 sec
	 5.27 sec

If performance does become a problem, then caching could be introduced
with a new implementation of ITaggableService.  The two problems are
finding a key other than the identity of the IBinding (since IBindings
are re-created often) and properly evicting stale entries when the
binding is no longer valid.

The process of copying tags from an in-memory IBinding to a PDOMBinding,
is a synchronization.  This means that tags that are no longer
applicable, will be removed from the persistent store.

While developing this I found that PDOMBindings are not deleted from the
Database (only the names that reference them are deleted), so there is
no provision for deleting all tags at once.

New database locks are not needed.  By the time the persistent tags are
accessed, higher levels of code have already taken a read or write lock
as appropriate.

There are new unit tests covering the changes to the PDOM.

Change-Id: I6ae1afc949082f7f4484b3faa1550670be43312f
Reviewed-on: https://git.eclipse.org/r/10659
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
IP-Clean: Doug Schaefer <dschaefer@qnx.com>
Tested-by: Doug Schaefer <dschaefer@qnx.com>
2013-02-26 21:17:01 -05:00
Sergey Prigogin
470b57572c Represent TU by its file name instead of content. 2013-02-26 17:39:12 -08:00
Sergey Prigogin
361aa35205 Cosmetics. 2013-02-26 17:36:45 -08:00
Sergey Prigogin
29efae5311 Reverted commit 2279927: Bug 400020: Allow tagging of IBindings 2013-02-25 16:36:23 -08:00
Sergey Prigogin
f331210279 Bug 389009 - Enumerator with dependent value. Fixed issues described in
comments #24 and #25.
2013-02-25 16:10:24 -08:00
Sergey Prigogin
185fe357cf Cosmetics. 2013-02-25 16:03:03 -08:00
Vivian Kong
3ef0d403ac Bug 307542 - [Accessibility] Error Parser Options is not accessible by
keyboard
2013-02-25 14:36:20 -05:00
Thomas Corbat
d24992f0a6 Bug 401661 - CPPClassType.getScope() at split definition and declaration
Now CPPClassType.getScope() returns the scope of the surrounding class
or namespace independent of the location of the definition.
2013-02-25 14:18:07 +01:00
Andrew Gvozdev
6e5ac901f4 bug 355488: Cannot delete variables from C/C++ build environment 2013-02-24 15:33:41 -05:00
Andrew Gvozdev
fffc3a13e3 bug 348781: Problem adding environment variables to preferences 2013-02-24 15:33:24 -05:00
Jesse Weinstein
8da0b43d30 Bug 400955: add Source menu docs
Some of the descriptions are not very good, and will be improved in a
future commit.

Change-Id: I1150a76c504fe0cf71911acb3c0a1c6e72ee3686
Reviewed-on: https://git.eclipse.org/r/10557
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-02-22 19:07:33 -05:00
Jesse Weinstein
3fc0510ecd Bug 400955: update Edit menu docs
Change-Id: I743c5ca8a412eb059bba478aaecc223dd04b2080
Reviewed-on: https://git.eclipse.org/r/10541
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-02-22 19:05:08 -05:00
Jesse Weinstein
b502c8ab5d Bug 400955: move some styling into css classes
The edit menu docs will be updated in a later patch.

Change-Id: I5a8975d1159e39e580e87f502160d3f46d71b3f0
Reviewed-on: https://git.eclipse.org/r/10604
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-02-22 19:02:59 -05:00
Nathan Ridge
f0a597bc2b Bug 401400 - Another error involving variadic non-type template
parameters

Change-Id: Ic5c64de6d32a203d13274053da61923d9d8e2ad3
Reviewed-on: https://git.eclipse.org/r/10559
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-02-21 16:51:21 -05:00
Sergey Prigogin
d3b06fadd2 Cosmetics. 2013-02-21 12:29:18 -08:00
Mikhail Khodjaiants
895e0aa394 Bug 398913 - 'Connect' button remains disabled after being used
Change-Id: I301e897b5c4c76e3edbcd6f517c15793e4323d04
Reviewed-on: https://git.eclipse.org/r/10345
Reviewed-by: Mikhail Khodjaiants <mikhailkhod@googlemail.com>
IP-Clean: Mikhail Khodjaiants <mikhailkhod@googlemail.com>
Tested-by: Mikhail Khodjaiants <mikhailkhod@googlemail.com>
2013-02-21 14:07:44 -05:00
Andrew Gvozdev
0142bde6ea Merge remote-tracking branch 'cdt/master' into sd90 2013-02-21 13:54:35 -05:00
Sergey Prigogin
aefd301b2e Code streamlining. 2013-02-20 13:53:08 -08:00
Jeff Johnston
18ff30de24 Bug 400972: Creating new C/C++ project in existing read-only
directory should be disallowed

Change-Id: I75090498bd4f408d77ad17491f50f4fd66850c97
Reviewed-on: https://git.eclipse.org/r/10404
Reviewed-by: Jesse Weinstein <Jesse.Weinstein@clinicomp.com>
Reviewed-by: Jeff Johnston <jjohnstn@redhat.com>
IP-Clean: Jeff Johnston <jjohnstn@redhat.com>
Tested-by: Jeff Johnston <jjohnstn@redhat.com>
2013-02-20 16:16:50 -05:00
Andrew Eidsness
1908efec38 qt slot/signal auto-complete
Tags signal and slot methods when the index is created.  Uses these tags
to suggest values inside of SIGNAL and SLOT macro expansions.  Enabled
only for projects with the QtNature.

Recognizes QObject::connect function calls and suggests SIGNAL(a) and
SLOT(a) for the 2nd and 4th parameters.

When expanding the SIGNAL and SLOT macros within a call to
QObject::connect, suggests signals and slots based on the type of the
previous parameter.

E.g. in

    QObjectA a;
    QObjectB b;
    QObject::connect( &a, SIGNAL(*), &b, SLOT(**) );

The content assistant will suggest the methods of type QObjectA that
have been marked as signals at *, and the methods of QObjectB that have
been marked as slots at **.

Change-Id: Ia6aaa71724547b0977e322399a500f072004767a
Reviewed-on: https://git.eclipse.org/r/10532
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
IP-Clean: Doug Schaefer <dschaefer@qnx.com>
Tested-by: Doug Schaefer <dschaefer@qnx.com>
2013-02-20 16:13:49 -05:00
Nathan Ridge
24ba7ff688 Bug 401142 - Error involving variadic non-type template parameters
Change-Id: I7735649c59354431a91980142055e4b86a82e6f6
Reviewed-on: https://git.eclipse.org/r/10467
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-02-20 12:51:30 -05:00
Nathan Ridge
ee08bee24b Bug 401140 - NullPointerException in CPPTemplates.addDefaultArguments()
Change-Id: I05fa8a3935904cb1bd293348dcbf10810e677b5c
Reviewed-on: https://git.eclipse.org/r/10466
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-02-20 12:37:58 -05:00