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

11538 commits

Author SHA1 Message Date
Nathan Ridge
7a715b258f Bug 402498 - Name resolution error for unqualified function call with
dependent argument

Change-Id: I31b86885e2e715c38b10efeed3aef4aee1c0d249
Reviewed-on: https://git.eclipse.org/r/11073
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-13 14:00:10 -04:00
Sergey Prigogin
6a55086327 Don't reuse the same progress monitor across test runs. 2013-03-12 20:08:16 -07:00
Sergey Prigogin
6c4ec01412 Code streamlining. 2013-03-12 15:47:34 -07:00
Jesse Weinstein
e063f00b67 Bug 240692 -- Fix rename for templates
Just a failing test, so far.

Change-Id: Idb923862614ff2f1b7736495d8a2d8967e278de7
Reviewed-on: https://git.eclipse.org/r/11064
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-12 18:29:23 -04:00
Sergey Prigogin
4d12093432 Fixed a typo. 2013-03-12 15:02:45 -07:00
Sergey Prigogin
44d1c404f5 Added ArrayUtil.removeDuplicates method. 2013-03-12 14:54:56 -07:00
Andrew Eidsness
8883fb1af5 Bug 402177: Btree.insert returns wrong value
The javadoc for BTree.insert says "don't insert if the key was already
there, in which case we return the record that matched".

However, the implementation was returning the new record even when it
was not actually inserted.

This is a fix for the problem and a test case to demonstrate the issue.

Further Changes:
----------------
I have modified the code style as described in the comments in
https://git.eclipse.org/r/#/c/10804.

However, I'm still not sure what style is expected.  I've looked through
the CDT wiki a few times, especially the 'new developer' parts, but
haven't found anything relevant.  When I asked the question a few weeks
ago, the only reply was to use the "eclipse built-in style", which I
can't find in my preferences.  The default seems to be "K&R Style" (that
is what it is set to now, and I don't think that I would have changed
it), so that is what I've used here.

If I've missed the section in the wiki then a pointer would be greatly
appreciated.  Otherwise this topic would be a great topic for someone
that knows the answers to add to the wiki.

Change-Id: If079f235871fcdfbd35f1cba3f64cc3e33edaaec
Reviewed-on: https://git.eclipse.org/r/10804
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
IP-Clean: Doug Schaefer <dschaefer@qnx.com>
Tested-by: Doug Schaefer <dschaefer@qnx.com>
2013-03-12 12:24:05 -04:00
Jesse Weinstein
88411d63e5 Bug 393883 - Implement Method loses throw()
Change-Id: Ic14046dd3a97f209a56704a22f7d3f2e417a69c9
Reviewed-on: https://git.eclipse.org/r/11013
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-11 15:44:53 -04:00
Nathan Ridge
0d2decffcf Bug 402861 - Error involving pointer-to-member of template class
Change-Id: I418b5698757650f86000c31b8b7ea12e0192fcee
Reviewed-on: https://git.eclipse.org/r/11034
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-11 14:18:27 -04:00
Nathan Ridge
c8e936ae11 Bug 402854 - Qualified name lookup finds name in enclosing scope
Change-Id: Iebf9f427b3291a1af695936055daecb5d28e56f6
Reviewed-on: https://git.eclipse.org/r/11032
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-11 14:08:57 -04:00
Nathan Ridge
072b8512ea Bug 402807 - Partial specialization for vararg function type
Change-Id: I2fa7bdede392a5b51da065d1d6196b10f2a52d6a
Reviewed-on: https://git.eclipse.org/r/11025
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-11 14:06:23 -04:00
Andrew Gvozdev
147e2efc70 Some JavaDoc for Build Variables change listeners 2013-03-11 09:27:44 -04:00
Andrew Gvozdev
7a5bc79821 Removed CygwinEFSExtensionProvider 2013-03-10 08:04:53 -04:00
Andrew Gvozdev
3375a098c4 Merge remote-tracking branch 'cdt/master' into sd90 2013-03-10 08:02:12 -04:00
Andrew Gvozdev
338da6c867 More detailed JavaDoc to ICListenerAgent 2013-03-10 07:49:08 -04:00
Andrew Gvozdev
ae1e68cd09 bug 290631: Missing LSP change notification event when provider being serialized equals extension 2013-03-10 07:48:43 -04:00
Andrew Gvozdev
e034731fee bug 357442: Protect EnvVarCollector against NPE when array of environment variables contains null 2013-03-10 07:48:11 -04:00
Nathan Ridge
6190dce232 Bug 402409 - Dependent expressions and auto type resolution
Change-Id: Ic391705ea80adf28a4d664198c79817d54e9bddd
Reviewed-on: https://git.eclipse.org/r/11014
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-09 17:39:14 -05:00
Nathan Ridge
7f2273c8b8 Bug 402409 - Dependent expressions and auto type resolution
Change-Id: Ib4ed63ade9349c5be74305825884acac103e334b
Reviewed-on: https://git.eclipse.org/r/10957
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-08 19:38:25 -05:00
Nathan Ridge
395e7c941e Bug 402498 - Name resolution error for unqualified function call with
dependent argument

Change-Id: I7de7ea4898c91f2c994b8b19e61c4f283620620e
Reviewed-on: https://git.eclipse.org/r/10922
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-08 12:58:53 -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
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
Sergey Prigogin
5cad4cd8be Bug 402006 - [formatter] Crashes on sizeof() macro 2013-02-28 11:44:23 -08: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
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
Andrew Gvozdev
0142bde6ea Merge remote-tracking branch 'cdt/master' into sd90 2013-02-21 13:54:35 -05:00