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

22952 commits

Author SHA1 Message Date
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
Marc-Andre Laperle
535ad23797 Fix intermittent test failures in codan
Sometimes, index-based checkers (AbstractIndexAstChecker) were skipped
because the indexer was not fully initialized so expected errors were
not getting reported.

Change-Id: Ibb764224f11ae4a867a4aa6b9de2b8ec55e90c55
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/23428
Reviewed-by: Nathan Ridge <zeratul976@hotmail.com>
Tested-by: Hudson CI
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-03-15 12:05:03 -04:00
Sergey Prigogin
c1ca5aeef0 Bug 430428 - Function resolution problem with lambda and typedef. 2014-03-14 19:17:30 -07:00
Marc-Andre Laperle
cc287ba76f Upgrade to Tycho 0.20 2014-03-14 14:59:48 -04: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 Khouzam
ea81f8bf27 Bug 430304 - "Add C/C++ Watchpoints" no longer shows for variables and
expressions view 

Change-Id: I0ed59f1f2ce4a6c145b601b79bc9394071686f06
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/23342
2014-03-13 13:22:38 -04:00
Marc-Andre Laperle
b1b11e28bd Change target definitions to use JavaSE-1.7 Execution Environment
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2014-03-13 02:23:31 -04: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
David Kaspar
73a912f95b Bug 429488: Fix for deadlock in QMakeProjectInfo.updateActiveConfiguration
To prevent a deadlock between two the workspace and QMakeProjectInfo.sync
locks, QMakeProjectInfo class has been rewritten to not call any method
under sync-lock except for IQMakeEnv.init/destroy method.

All methods should allow calling under workspace lock.

Added a new IQMakeEnv2 interface to provide an explicit init method.

Original QMakeProjectInfo has been split to
QMakeProjectInfo and QMakeProjectInfoManager.

This change is fully backward compatible.

Change-Id: I880f22dd9bd999af1d3f47e4a3c4c0ab216b4ad2
Signed-off-by: David Kaspar <dkaspar@blackberry.com>
Reviewed-on: https://git.eclipse.org/r/23270
Tested-by: Hudson CI
Reviewed-by: Andrew Eidsness <eclipse@jfront.com>
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
IP-Clean: Doug Schaefer <dschaefer@qnx.com>
2014-03-12 20:50:01 -04:00
Jeff Johnston
e62ed2c8b7 Bug 429963 - m4 editor not handling quotes properly
- Fix Autoconf editor to not arbitrarily apply to any
  m4 file, but instead list a set of filenames known to
  be part of autoconf (i.e. expect [] quotation)

Change-Id: Ib6b5a6b8c215d63b0a2423f5a01de5d9131a92c6
Reviewed-on: https://git.eclipse.org/r/23217
Reviewed-by: Jeff Johnston <jjohnstn@redhat.com>
IP-Clean: Jeff Johnston <jjohnstn@redhat.com>
Tested-by: Jeff Johnston <jjohnstn@redhat.com>
2014-03-12 15:26:59 -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
Teodor Madan
d8a4f20401 Bug 429874 - GDB Hardware Debugging Launcher "Main" tab does not check
for valid program path

Change-Id: Ibe02a00fefb4a5b933396f567d29e3adbb74ba2d
Signed-off-by: Teodor Madan <teodor.madan@freescale.com>
Reviewed-on: https://git.eclipse.org/r/23037
Reviewed-by: Marc Khouzam <marc.khouzam@ericsson.com>
IP-Clean: Marc Khouzam <marc.khouzam@ericsson.com>
Tested-by: Marc Khouzam <marc.khouzam@ericsson.com>
2014-03-12 04:08:02 -04:00
Teodor Madan
1a65b23a5d Bug 429251: Breakpoint problem marker is not displayed in external
source files

Enable ExternalSearchAnnotationModel displaying BP problems by setting attribute C_MODEL_MARKER_EXTERNAL_LOCATION

Change-Id: Icb0c2bf444aa1eb91a8da685c35a140e8174439b
Signed-off-by: Teodor Madan <teodor.madan@freescale.com>
Reviewed-on: https://git.eclipse.org/r/22748
Reviewed-by: Marc Khouzam <marc.khouzam@ericsson.com>
IP-Clean: Marc Khouzam <marc.khouzam@ericsson.com>
Tested-by: Marc Khouzam <marc.khouzam@ericsson.com>
2014-03-12 04:06:37 -04:00
Sergey Prigogin
f184e96fe7 Adjusted a test name based on Nathan's suggestion. 2014-03-11 08:56:14 -07:00
Xavier Raynaud
95c8e7ffdd Bug 429124 - MIThread, MIThtreadInfo, MIThreadInfoInfo can be overridden
Change-Id: If08bc919031bbe675ca59b90c0c2b782a59841a7
Signed-off-by: Xavier Raynaud <xavier.raynaud@kalray.eu>
Reviewed-on: https://git.eclipse.org/r/22553
Reviewed-by: Marc Khouzam <marc.khouzam@ericsson.com>
IP-Clean: Marc Khouzam <marc.khouzam@ericsson.com>
Tested-by: Marc Khouzam <marc.khouzam@ericsson.com>
2014-03-11 07:07:20 -04: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
Teodor Madan
c52eee2c40 Bug 429982 - GDB Hardware debug fails to start when using symbols with
offset in debug configuration

Use "add-symbol-file" instead of "add-sym"

Change-Id: Ie52eb32bbdca8c18223fbfdab0217afdb24f4465
Signed-off-by: Teodor Madan <teodor.madan@freescale.com>
Reviewed-on: https://git.eclipse.org/r/23107
Reviewed-by: Marc Khouzam <marc.khouzam@ericsson.com>
2014-03-10 08:56:41 -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
Serge Beauchamp
612cecbc3c Bug 418114 - Build artifact name can be set to an empty string, causing
a cluster of build errors

Change-Id: Ief7eca369edf60aa1a064495a7da98089cb88d5d
Signed-off-by: Serge Beauchamp <sergebeauchamp@mac.com>
Reviewed-on: https://git.eclipse.org/r/16805
Tested-by: Hudson CI
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>
2014-03-01 14:09:59 -05: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
Ling Wang
06854adaef Bug 414519: [Memory View] user specified start address is not honored.
Change-Id: I0e72b6a4d685197191427c93b67b9a96d80da682
Signed-off-by: Ling Wang <ling.wang@silabs.com>
Reviewed-on: https://git.eclipse.org/r/15214
Reviewed-by: Marc Khouzam <marc.khouzam@ericsson.com>
IP-Clean: Marc Khouzam <marc.khouzam@ericsson.com>
Tested-by: Marc Khouzam <marc.khouzam@ericsson.com>
2014-02-28 15:34:59 -05: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
Teodor Madan
4aa3f06bb4 Bug 428990 - Breakpoint problem marker has a too generic error message
Propagated GDB error message up to the top level

Change-Id: I98b33a4d35af7b0bc3582dfa1572cd6a5bc07b58
Signed-off-by: Teodor Madan <teodor.madan@freescale.com>
Reviewed-on: https://git.eclipse.org/r/22511
Reviewed-by: Marc Khouzam <marc.khouzam@ericsson.com>
IP-Clean: Marc Khouzam <marc.khouzam@ericsson.com>
Tested-by: Marc Khouzam <marc.khouzam@ericsson.com>
2014-02-27 11:02:49 -05:00
Marc Khouzam
d786838a0a Update GdbMemoryBlockRetrieval and DsfMemoryBlockRetrieval to fix
warnings.

Change-Id: I57a352b92b46f1e381185a72e41d534bc4f3ca45
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/22582
Reviewed-by: Alvaro Sanchez-Leon <alvsan09@gmail.com>
2014-02-27 09:55:46 -05:00