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

12180 commits

Author SHA1 Message Date
Sergey Prigogin
fa7aff1975 Fixed an "Unsafe method call" exception. 2014-03-25 15:32:42 -07:00
mhussein
f9e4bbf0a3 Bug 430610: Fix ClassCast in TemplateEngineUIUtil.showError
Change-Id: I12505001e3c2fa1ee996ad5ba55ab615be34c731
Signed-off-by: mhussein <mohamed_hussein@mentor.com>
Reviewed-on: https://git.eclipse.org/r/23550
Tested-by: Hudson CI
Reviewed-by: Mikhail Khodjaiants <mikhailkhod@googlemail.com>
IP-Clean: Mikhail Khodjaiants <mikhailkhod@googlemail.com>
Tested-by: Mikhail Khodjaiants <mikhailkhod@googlemail.com>
2014-03-24 13:59:20 -04: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
Doug Schaefer
35daa1d321 PR 383941 - Support binaries with dots in their name. 2014-03-24 11:25:45 -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
Nathan Ridge
8be981a088 Bug 430282 - Break out of recursion when creating
RecursionResolvingBindings

Change-Id: I568a6f551969adc771ef48113c25b089b69657df
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/23588
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-22 12:54:57 -04:00
Nathan Ridge
d02be6bf77 Bug 430282 - Trace indexer exceptions for easier diagnosis of bugs
Change-Id: I208a77af84cc3f3dd017456133edd5e3fa4c7743
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/23743
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-22 12:53:13 -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
sprigogin
c35254e018 Fixed a typo. 2014-03-19 11:40:23 -07:00
sprigogin
c38c1e4204 Test - please ignore
Change-Id: Ie4a5e20b458152f18360f2dd20ad05efd33061a1
2014-03-19 11:31:33 -07: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
db4c3d2c3e Bug 430230. Few follow up fixes. 2014-03-13 17:06:04 -07:00
Sergey Prigogin
aa2ae49463 Bug 430230 - Invalid constructor call is ignored by SFINAE template
resolution.
2014-03-13 16:30:08 -07:00
Sergey Prigogin
d5db93891d Cosmetics. 2014-03-13 16:29:58 -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
Marc-Andre Laperle
f6fcccfcad Bug 421041 - NPE in EvalBinding.getBinding
This happens when constructor EvalBinding(IBinding binding, IType type,
IBinding templateDefinition) is called with a null binding. A binding
can be null for example when TypeMarshalBuffer.unmarshalBinding returns
null. Instead of returning null, unmarshalBinding can return a
ProblemBinding and the assumptions that the binding in EvalBinding is
not null can be maintained.

Change-Id: Icebf875e059f2962cc2ddd91d3b79c51b88eddac
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/18064
2014-03-12 22:01:36 -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
Sergey Prigogin
78c1d3237b Bug 430029 - CPPASTBaseDeclSpecifier.copy() doesn't copy isThreadLocal. 2014-03-10 10:10:34 -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
a2a05a515a Bug 372004 - Locally declared extern variable
Change-Id: I33d634d6c63138910b2958b81f6d8df358e89e7d
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/23098
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-10 12:44:07 -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
Sergey Prigogin
6e2d669821 Improved logging of indexer statistics. 2014-03-07 14:08:46 -08: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
Sergey Prigogin
c0e82d24a7 Bug 429837 - Unresolved symbol with declspec and const. 2014-03-06 22:47:18 -08:00
Sergey Prigogin
f5238bf93f Reduced use of deprecated types and methods. 2014-03-06 15:15:19 -08:00
Sergey Prigogin
c6557f0a86 Added InstanceOfPredicate. 2014-03-06 12:02:47 -08:00
Sergey Prigogin
aae4792550 Bug 429624 - Template function resolution problem when using index. 2014-03-05 20:04:12 -08:00
Thomas Corbat
551f5eb2df Fix for failing comment handling test (Windows only).
Change-Id: I2723d04a9de5088bcd7de6b05d833d0d5d059bf3
2014-03-05 15:46:36 +01:00
Nathan Ridge
9f9ed938d2 Bug 425033 - Restrict name lookup to types when
elaborated-type-specifier is present

Change-Id: Ib4e681056edfab92d19072ccc74a54ffd7cec418
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/22835
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-04 15:15:28 -05:00
Sergey Prigogin
68b2dd67dc Minor code cleanup. 2014-03-03 15:35:52 -08:00
Sergey Prigogin
f36a34d6a5 Bug 425595 - Opening 'C/C++ General-> Formatter' of a project properties
cuases NPE
2014-03-03 15:07:36 -08:00
Sergey Prigogin
4918f94f20 Cosmetics. 2014-02-28 13:38:39 -08:00
Sergey Prigogin
843cd2bf00 Bug 429364 - NPE in Organize Includes. 2014-02-28 13:38:22 -08:00
Andrew Eidsness
f7d49e5bde Bug 425711: User preference to limit tokens per translation unit
This adds a new scalability preference that aborts parsing when too many
Tokens are created for a single translation unit.  This is a heuristic
that fairly close predicts the files that will be too complex for the
indexer to handle.

The token counter is disabled by default.

When it is enabled, the default token limit is 25,000,000.  This value
was determined by counting the number of Tokens produced for each
translation unit in the boost-1.55.0 sources:

sqlite> select * from counts where count > 10000000;
count       location
-----------------------------------------------------------------
100000001   libs/local_function/test/all_decl.cpp
100000001   libs/local_function/test/all_decl_seq.cpp
100000001   libs/local_function/test/all_decl_seq_nova.cpp
100000001   libs/preprocessor/doc/examples/array_arithmetic.c
99808587    libs/function_types/build/preprocess_arity_loops.cpp
62380381    libs/preprocessor/doc/examples/delay.c
58096841    libs/serialization/performance/xml/string256_test.cpp
58096828    libs/serialization/performance/xml/int256_test.cpp
52898416    libs/mpi/src/python/collectives.cpp
52573708    boost/spirit/home/support/char_encoding/ \
                  unicode/create_tables.cpp
21315014    libs/utility/binary_test.cpp
18799536    libs/math/test/test_rational_instances/ \
                 test_rational_double1.cpp
17758615    libs/mpl/test/string.cpp
13100401    libs/container/bench/bench_set.cpp
11976021    libs/local_function/example/const_block.cpp
11381198    libs/math/test/test_tr1.cpp
10432186    libs/parameter/test/preprocessor.cpp

This value means that the indexer will process all files in boost
without running out of memory on a 1Gb heap.

Change-Id: Ia9fc73dfb38454cc8735f537e3ac6e661864fb4f
Signed-off-by: Andrew Eidsness <eclipse@jfront.com>
Reviewed-on: https://git.eclipse.org/r/22386
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
IP-Clean: Doug Schaefer <dschaefer@qnx.com>
Tested-by: Doug Schaefer <dschaefer@qnx.com>
2014-02-27 12:49:35 -05:00
Lukas Felber
c558463abe Bug 427002. [ast rewrite] Comments originating from other translation
units are now automatically taken into consideration when rewriting.

Change-Id: If535ab6cdd1ec293a0d95a6f726d848f6348f0ed
Signed-off-by: Lukas Felber <l.felber@gmx.ch>
Reviewed-on: https://git.eclipse.org/r/21761
Reviewed-by: Thomas Corbat <tcorbat@hsr.ch>
IP-Clean: Thomas Corbat <tcorbat@hsr.ch>
Tested-by: Thomas Corbat <tcorbat@hsr.ch>
2014-02-26 10:16:13 -05:00
Markus Schorn
d6b443f67a Bug 428922: Class cast exception parsing expression ambiguity within delete expression.
Signed-off-by: Markus Schorn <markus.schorn@windriver.com>
2014-02-24 16:46:31 +01:00
Markus Schorn
4f2fe55e90 Bug 413396: Language cannot be determined for files without extension.
Change-Id: I31579f0eb33f0797dd09dab0c2de9de88967fd4d
Signed-off-by: Markus Schorn <markus.schorn@windriver.com>
Reviewed-on: https://git.eclipse.org/r/22362
Reviewed-by: Andrew Gvozdev <angvoz.dev@gmail.com>
IP-Clean: Andrew Gvozdev <angvoz.dev@gmail.com>
Tested-by: Andrew Gvozdev <angvoz.dev@gmail.com>
2014-02-24 06:52:00 -05:00
Thomas Corbat
7b74217a34 Bug 427730 - Fix for missing suggestion in content assist for typedef
Change-Id: I1395ab30b73ab972bd7edf90205c206e363b7fd8
Signed-off-by: Thomas Corbat <tcorbat@hsr.ch>
Reviewed-on: https://git.eclipse.org/r/22233
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-02-21 02:29:48 -05:00
Sergey Prigogin
6677a74ae0 Removed redundant methods. 2014-02-18 18:05:42 -08:00
Sergey Prigogin
0c0523d642 Cosmetics. 2014-02-18 17:15:21 -08:00
Marc Khouzam
1ea82aff04 Bug 427958 - Update version of o.e.cdt.ui and @since tags for CDT 8.4
Change-Id: I84bccf9bdc6e169624908fee106080f840843e28
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2014-02-15 07:34:47 -05:00