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

3043 commits

Author SHA1 Message Date
Sergey Prigogin
820b901b69 Cosmetics. 2014-06-24 20:17:28 -07:00
Sergey Prigogin
cf4556f05f Cosmetics. 2014-06-17 15:12:01 -07:00
Nathan Ridge
17900f3f59 Bug 409882 - Visibility of lambda with class owner
Change-Id: Ia16221cb441de535cad0b22786e2878e084fca3d
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/26783
Tested-by: Hudson CI
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-05-18 15:14:17 -04:00
Nathan Ridge
438a42b367 Bug 418996 - Guard against infinite recursion in
AbstractCPPClassSpecializationBases.getBases()

Change-Id: I84d56a12d4a2133d93bf54f5a70a1e801b981878
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/26781
Tested-by: Hudson CI
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-05-18 15:12:21 -04:00
Nathan Ridge
92e5739ba6 Bug 434467 - Fix NPE caused by incorrect caching of enumerators
Change-Id: I7b0df5ea7d7b89ac89c42e8dc4091b3d5bf944f2
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/26696
Tested-by: Hudson CI
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-05-16 16:23:35 -04:00
Nathan Ridge
2664b7c6f7 Bug 432701 - Expose the default value of a function parameter in the AST
and store it in the index

Change-Id: I4e180442bf2f2fe49d71e406a73253c6796e381b
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/26499
Tested-by: Hudson CI
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-05-14 22:49:29 -04:00
Sergey Prigogin
f099336ec8 Renamed DBTest to DatabaseTest to match the name of the tested class and
added ability to test very large databases.
2014-05-09 14:43:06 -07:00
Sergey Prigogin
2c5f599327 Cosmetics. 2014-05-09 14:40:28 -07:00
Nathan Ridge
1ae15f57fa Move some tests that do not involve templates out of AST2TemplateTests
Change-Id: Icc6bc9be16d482094792d8903e3bf13511095796
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/25938
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-05-07 19:48:05 -04:00
Sergey Prigogin
a55526430c Cosmetics. 2014-05-06 18:08:03 -07:00
Sergey Prigogin
ae2d1154f9 Bug 434150 - Infinite recursion with decltype 2014-05-06 17:48:54 -07:00
Sergey Prigogin
c4e47cdaa2 Cosmetics. 2014-05-06 17:46:17 -07:00
Doug Schaefer
4353aad6d5 Remove the eclipse.inf file from core.tests. It conflicts with the
pom driven packing.
2014-05-05 14:31:15 -04:00
Sergey Prigogin
9d7a23cde5 Bug 414692 - Organize Includes has to honor @headername{<header>} in
doxygen comments
2014-05-02 10:46:19 -07:00
Sergey Prigogin
355027f0c9 Cosmetics. 2014-05-02 10:43:52 -07:00
Sergey Prigogin
8e871b492f Bug 433556 - Unqualified name of the containing template is not resolved 2014-04-25 22:22:05 -07:00
Sergey Prigogin
9ea599ef7b Failing test for bug 433556. 2014-04-25 19:01:15 -07:00
Sergey Prigogin
87539d04dd Added a failing test for inherited constructor template. 2014-04-25 17:04:53 -07:00
Sergey Prigogin
fcccfe3807 Corrected few comments. 2014-04-25 17:03:58 -07:00
Sergey Prigogin
b96e29ae62 Bug 424068 - [C++11] Inheriting constructors.
Inheriting of template constructors is not supported yet.
2014-04-24 17:00:35 -07:00
Sergey Prigogin
2724fbbe45 Improved reliability of indexer cancellation - a safer version. 2014-04-22 16:07:29 -07:00
Sergey Prigogin
bbc8a48c8c Cosmetics. 2014-04-18 16:24:45 -07:00
Sergey Prigogin
103f577926 Moved testU8TokenAfterIfdef_429361 to AST2Tests 2014-04-18 12:24:27 -07:00
Nathan Ridge
d66e5c04bf Bug 429891 - Limit the total number of computation steps in a constexpr
evaluation

Change-Id: I057d94a78e92d26c9ad824b2ea0c6a4ad896e948
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/24925
Tested-by: Hudson CI
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-04-13 21:20:31 -04:00
Sergey Prigogin
79a2087bfd Revert "Bug 379684 Support for User Defined Literals"
This reverts commit f5942dac81.
2014-04-12 10:49:35 -07:00
Richard Eames
f5942dac81 Bug 379684 Support for User Defined Literals
This patch adds preliminary support for C++11 user defined litrals:
* Syntax support
* Type deduction in expressions
* Template literal operators
* String literal concatenation

I made quite a few changes in CPPASTLiteralExpression so that it more
closely follows the spec when parsing numbers. And I'd like some
feedback on the changes I made to CPPSemantics with regards to 
template literal operators.

There are also some questions I have marked in comments, which I would
appreciate an answer to.

Change-Id: I242ecb8f5706f516a4c891fea268a668e5e4a694
Signed-off-by: Richard Eames <eclipse@naddiseo.ca>
Reviewed-on: https://git.eclipse.org/r/24367
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-04-12 12:47:34 -04:00
Sergey Prigogin
71592307c1 Disabled a failing test. 2014-04-07 18:16:45 -07:00
Sergey Prigogin
535f975b47 Bug 431945 - Unresolved template function with typedef. 2014-04-03 21:00:19 -07:00
Doug Schaefer
1c70ddf64a Bug 429196 Eliminate StackOverflow on adaptBinding.
A pretty simple and kludgy fix to the problem, but if we detect that
we are adapting a binding that we are just in the middle of adapting,
we bail and return null. Added Andrew's JUnit that reproduces the
problem in case someone wants to try a better solution.

Change-Id: Ib4a85c161be6aee073fee7ac0501464b70020fac
Reviewed-on: https://git.eclipse.org/r/24396
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
IP-Clean: Doug Schaefer <dschaefer@qnx.com>
Tested-by: Doug Schaefer <dschaefer@qnx.com>
Reviewed-on: https://git.eclipse.org/r/24409
Tested-by: Hudson CI
2014-04-03 14:02:22 -04:00
Lukas Felber
8c3ba9ec2d Bug 431684 - Intermittent test failures in IndexBugsTest
Improved reliability of BaseTestCase.waitForIndexer method.

Change-Id: Ifcfb4e90a1595e6cc2bc90856daad6cd265b6247
Signed-off-by: Lukas Felber <l.felber@gmx.ch>
Reviewed-on: https://git.eclipse.org/r/24080
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>
2014-04-01 13:32:09 -04:00
Sergey Prigogin
6b32a922ba Cosmetics. 2014-03-31 11:15:19 -07:00
Nathan Ridge
2384c6442a Bug 429891 - Fold conditional expression when condition's value becomes
known

Change-Id: Ic241428937864d2c93f6d252386c89fcd3172974
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/23768
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>
2014-03-24 12:31:56 -04:00
Marc-Andre Laperle
274b07f70f Remove test interdependencies in CPathEntryTest
testCPathEntries verifies the presence of the default path entries.
testPathEntryContainer modifies the path entries. Because the same
project is being used, if testPathEntryContainer executes first,
testCPathEntries fails. By creating and deleting the project every
time, the problem is fixed.

Also, removed some unnecessary code than seemed copy pasted but not actually used.

Change-Id: Ifcd06d3a133f29b5ce9e2e0fdee34e9493377625
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/23756
Tested-by: Hudson CI
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-03-23 23:49:38 -04:00
Nathan Ridge
6d82f0f7a4 Bug 429891 - Do not attempt to evaluate a constexpr function call if the
arguments are not constant expressions

Change-Id: I7f7e5cfd1e581c168bfcc65222e9ef87a15a8e4f
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/23744
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-03-23 23:44:29 -04:00
Marc-Andre Laperle
c8c5a78649 Remove test interdependencies in CDescriptorTests
Change-Id: I9b7660bed41357337505ec99bc9289071bcbce7e
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/23733
Tested-by: Hudson CI
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-03-21 16:33:00 -04:00
Marc-Andre Laperle
ac235ca6b7 Use the default indexer timeout instead of hard-coded ones in some tests
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2014-03-18 01:00:33 -04:00
Sergey Prigogin
c1ca5aeef0 Bug 430428 - Function resolution problem with lambda and typedef. 2014-03-14 19:17:30 -07:00
Sergey Prigogin
526fd1eb55 Bug 430230. Fixed loss of EvalTypeId arguments during
serialization/deserialization.
2014-03-14 11:04:45 -07:00
Nathan Ridge
2c78dee75f Bug 151329 - Accept '\r' as line delimiter in the lexer
Change-Id: Ie3fb2926270a605db2a8590f6e00c1dc6ab7855a
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/23096
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-03-14 12:16:29 -04:00
Sergey Prigogin
450504e505 Bug 430230. More involved test case and a fix for the issues it
uncovered.
2014-03-13 20:39:01 -07:00
Sergey Prigogin
aa2ae49463 Bug 430230 - Invalid constructor call is ignored by SFINAE template
resolution.
2014-03-13 16:30:08 -07:00
Marc-Andre Laperle
c221d768ac Always run CDescriptorTests methods in the same order
It appears this class was not written to with random test ordering in
mind. This should fix some of the intermittent test failures.

Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2014-03-13 02:00:03 -04:00
Thomas Corbat
039e2619d8 Bug 413615 - GCC __attribute__ produces syntax error after "override"
Added test and implementation of recognizing GCC attributes after
override.

Change-Id: I0a6661c7be2b921658240ccebba6fbcb24780f20
Reviewed-on: https://git.eclipse.org/r/23231
Reviewed-by: Thomas Corbat <tcorbat@hsr.ch>
IP-Clean: Thomas Corbat <tcorbat@hsr.ch>
Tested-by: Thomas Corbat <tcorbat@hsr.ch>
2014-03-12 04:24:18 -04:00
Sergey Prigogin
f184e96fe7 Adjusted a test name based on Nathan's suggestion. 2014-03-11 08:56:14 -07:00
Sergey Prigogin
e91e3669b7 Bug 429928 - False "invalid overload" due to undetected instantiation
failure.

Change-Id: I6f89baa929560468eb899255875865e29d254218
Reviewed-on: https://git.eclipse.org/r/23171
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-03-11 00:04:30 -04:00
Sergey Prigogin
d3793be6d1 Consistent capitalization of SFINAE in test names. 2014-03-10 10:14:20 -07:00
Thomas Corbat
b5cf6c388c Bug 427539 - C++11 attribute implementation
- Implemented C++11 attributes without breaking the current API for
attributes in CDT. Added attribute specifiers according to the standard,
which can be added to attribute owners and contain ICPPASTAttributes
themselves.
- Adapted current attribute implementation (Tokens and Offsets) to be
writable by ASTWriter.
- Added integration of GNU attributes into the AST for several missing
cases.

Change-Id: Ifb6a05989f0b4da0d504be24213df86c66428060
Reviewed-on: https://git.eclipse.org/r/22555
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-03-10 13:01:47 -04:00
Nathan Ridge
b930b2d66a Bug 429361 - 'u8' token after #ifdef
Change-Id: Idc780473ca6356397f6466adff7ad0ee92a23fd0
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/23087
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-03-09 19:46:19 -04:00
Nathan Ridge
83d0b2be3e Bug 429928 - SFINAE when resolving address of function
Change-Id: I2edb6becd4b79c7943e1e4b7c046afb25e398a31
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/23090
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>
2014-03-09 13:14:40 -04:00
Nathan Ridge
e74d8ad4d6 Bug 424898 - Parenthesis around reference argument in C++ file
Change-Id: Ief6cf4daa396a48f11a1aa5bcbec0746f6421ef0
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/23024
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-03-07 02:14:37 -05:00