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

12346 commits

Author SHA1 Message Date
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
Sergey Prigogin
62ba90a145 Bug 427958 - Extension mechanisms for Find References and Call Hierarchy
This change introduces two new extension points - callHierarchyProviders
and externalSearchProviders.

Change-Id: I5e2e5e6c17b596eddfebe97b6be32a7cc62954f6
Reviewed-on: https://git.eclipse.org/r/21862
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-02-14 16:58:45 -05:00
Serge Beauchamp
493f6ad273 Bug 418817 - Control dependency is not observed after clicking "Restore
Defaults" button

Change-Id: I7f0aaac8f227c7f2ca0e05e144a7f1862d7bea95
Signed-off-by: Serge Beauchamp <sergebeauchamp@mac.com>
Reviewed-on: https://git.eclipse.org/r/17110
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-02-11 18:36:03 -05:00
Sergey Prigogin
15fb26ea6a Cosmetics. 2014-02-11 14:10:07 -08:00
Sergey Prigogin
f584975ffd Bug 427854 - Encountered an ambiguous node error message produced by
parser. Adjusted ordering of ambiguity resolution for nested classes.
2014-02-11 11:25:57 -08:00
Sergey Prigogin
ef9771f9fa Bug 427854 - Encountered an ambiguous node error message produced by
parser
2014-02-10 20:16:35 -08:00
Sergey Prigogin
ffa470ee1a Improved consistency of test method names. 2014-02-10 20:12:55 -08:00
Sergey Prigogin
37da12d84f Use ArrayDeque instead of LinkedList. 2014-02-10 17:56:52 -08:00
Sergey Prigogin
db6c3b4486 Cosmetics. 2014-02-10 16:11:08 -08:00
Sergey Prigogin
233f182df3 Don't throw UnsupportedOPerationException from ASTAmbiguousNode methods. 2014-02-10 12:22:12 -08:00
Thomas Corbat
6752994402 Bug 416430 - Test for missing sequence token in GCC attributes.
Change-Id: I92bd877bd415b27f0275276c0d3ca9c1b74ddbff
Signed-off-by: Thomas Corbat <tcorbat@hsr.ch>
2014-02-07 13:31:01 +01:00
Marco Trudel
55761d622a Bug 416430. Fixed loss of GCC attribute token
Change-Id: Idce28724b7b7b1bc8c43528036b2697386ec76b7
Signed-off-by: Marco Trudel <marco@mtsystems.ch>
Reviewed-on: https://git.eclipse.org/r/21659
Reviewed-by: Thomas Corbat <tcorbat@hsr.ch>
IP-Clean: Thomas Corbat <tcorbat@hsr.ch>
Tested-by: Thomas Corbat <tcorbat@hsr.ch>
2014-02-07 07:12:08 -05:00
Sergey Prigogin
aa3df633a7 Allow CSearchElement to adapt to IFileStore and to IIndexFileLocation. 2014-02-05 11:38:24 -08:00
Marc Khouzam
412727c5cb Up o.e.cdt.core version and update @since tag based on 8.3 release
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2014-02-04 20:37:02 -05:00
Sergey Prigogin
3fb603c849 Cosmetics. 2014-02-04 14:07:59 -08:00
Anton Leherbauer
c516d8d4ab Fix potential synchronization issue in Spawner 2014-02-04 16:55:57 +01:00
Sergey Prigogin
8dc69e1ca0 Use StringBuilder instead of StringBuffer. 2014-01-31 11:38:27 -08:00
Lukas Felber
2e2e1763bd Bug 426888 -fixed comment assignment bug.
Change-Id: I3fb9b68c6c543c09ee9c7d546a2c61086f808a44
Signed-off-by: Lukas Felber <l.felber@gmx.ch>
Reviewed-on: https://git.eclipse.org/r/21307
Reviewed-by: Thomas Corbat <tcorbat@hsr.ch>
IP-Clean: Thomas Corbat <tcorbat@hsr.ch>
Tested-by: Thomas Corbat <tcorbat@hsr.ch>
2014-01-30 05:18:32 -05:00
Sergey Prigogin
99de8fdda1 Removed unused constants. 2014-01-29 17:23:26 -08:00
Sergey Prigogin
acef14f15d Removed an unused constant. 2014-01-29 17:04:46 -08:00
Andrew Eidsness
d046e0a25f Bug 423679: CEditor navigation actions disabled outside of CEditor
The Open Declaration (F3), etc. actions use code in the ASTProvider.  If
the provider is not able to get an AST then the actions are disabled.
The implementation of the ASTProvider has an "instanceof CEditor" check
the result being that ASTProvider can only be used when the editor is a
CEditor.

This breaks our use case where we have a CEditor embedded as a tab in a
multi-pane editor (see org.eclipse.papyrus.infra.core.sasheditor
.editor.AbstractMultiPageSashEditor).

This patch modifies the ASTProvider to use #getAdapter instead of only
the instanceof check.  I've kept the common case (where the editor is a
CEditor) unchanged and added the new code as extra handling.

I've also introduced a public interface, ITranslationUnitProvider, to
avoid forcing clients to adapt to the internal CEditor class.  The only
part of CEditor that ASTProvider cares about is the ITranslationUnit.
The existing implementation has an unchecked cast.  The new interface
provides the required type directly.

Change-Id: Ie7e68e8909928374fa11fe2b8a857f09d042fb5c
Signed-off-by: Andrew Eidsness <andrewe@jfront.com>
Reviewed-on: https://git.eclipse.org/r/20026
Tested-by: Hudson CI
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
IP-Clean: Doug Schaefer <dschaefer@qnx.com>
2014-01-29 16:23:34 -05:00
Andrew Eidsness
57b53b0e85 Bug 426238: Update head of external references list when needed
When a PDOMName is deleted and that name is the head of an external
references list, the list's head must be changed.

The Qt plugin is the only user of the external reference list.  One case
is the link from a SIGNAL or SLOT expansion to the C++ method binding
for the corresponding function.  In this case, the problem will appear
when all of the following are true:

1) The file containing the SIGNAL/SLOT expansion is changed and the
   index updated
2) The corresponding function is declared in a different file
3) The the function is the first entry in the external references list

When #2 is false, the binding (and the entire list) is removed as part
of updating the file containing the name.

When #3 is false, the list is updated with existing code using the
PDOMName's {next|prev}InBinding pointers.

Change-Id: I1e27c7c2356ca1fb68f57d69c40728289288ed66
Signed-off-by: Andrew Eidsness <eclipse@jfront.com>
Reviewed-on: https://git.eclipse.org/r/20972
Tested-by: Hudson CI
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
IP-Clean: Doug Schaefer <dschaefer@qnx.com>
2014-01-24 13:49:59 -05:00
Sergey Prigogin
5d7a19fa6c Enabled JDK 1.7.
Change-Id: Ic2a161ea3c318dc1e8ba01c271c936bf5ed8763d
Reviewed-on: https://git.eclipse.org/r/21020
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-01-24 13:38:55 -05:00
Sergey Prigogin
ad526b4fb0 Cosmetics. 2014-01-22 11:46:21 -08:00
Nathan Ridge
19c4c3d788 Bug 424765 - Implicit conversion from lambda to function pointer not
recongized

Change-Id: I33ae542ef428005dd2eaa5ca8010f53f04f54a27
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/20926
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-01-22 14:02:05 -05:00
Jiří Nytra
0c3bdb4d24 Added a space before the opening parenthesis
Change-Id: I08c2486686b2db540ba321334976a8d5830a2813
Signed-off-by: Jiří Nytra <jiri.nytra@gmail.com>
Reviewed-on: https://git.eclipse.org/r/20900
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-01-22 13:18:18 -05:00
Sergey Prigogin
1d166260a8 Bumped up CDT version to 8.4.
Change-Id: I1229344feaaed4a3551ceb7b1ef1410545048b55
Reviewed-on: https://git.eclipse.org/r/20908
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-01-21 17:35:29 -05:00
Teodor Madan
d3a8e639c8 Bug 425955: NPE in DwarfReader
- Fix parsing .debug_line section in version format, part of Dwarf 4.
- Refactor in a separate method reading initial length field to
consistently handle 64-bit dwarf format

Change-Id: I9f32862ed91540c24ce33227eeb384a5d6b141da
Signed-off-by: Teodor Madan <teodor.madan@freescale.com>
Reviewed-on: https://git.eclipse.org/r/20830
2014-01-21 04:12:53 -05:00
Daniel Pesch
eb5c0c8a55 Bug 425538 - Syntax errors in QML reported as "C/C++ Problems" because errors from Qt Linguist
The problem is solved by allowing to ignore duplicated markers in case
there is already loaded a plugin that could handle QML files

The ProblemMarkerFilter extension point allows to filter out unneeded
problem markers. For example during building of Qt base project with QML
files tool Qt Linguist could report syntax errors in some qml file.
These errors are presented as "C/C++ Problems" in qml files because they
match format CDT expects for errors. If there is already installed plug-in
that handles QML files it is a wise to ignore such errors because they
are already reported as "QML Problems" with more meaningful descriptions.

Change-Id: I3a0a1b58e9690bed9c2774e4328760c695d54a54
Signed-off-by: Daniel Pesch <dpesch@blackberry.com>
Reviewed-on: https://git.eclipse.org/r/20581
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-01-16 10:46:50 -05:00
Sergey Prigogin
93c60329b8 Removed the deprecated PDOMLinkage.getNode(long) method.
Change-Id: I7a1bf76e0261fc18b616387cdcec16f81f8b0bf3
Reviewed-on: https://git.eclipse.org/r/20692
Tested-by: Hudson CI
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-01-16 00:25:25 -05:00
Sergey Prigogin
5637d3dceb Cosmetics. 2014-01-15 20:36:03 -08:00
Sergey Prigogin
a0ce578175 Removed uses of the deprecated PDOMLinkage.getNode(long) method. 2014-01-15 20:32:09 -08:00
Sergey Prigogin
8d14ab8793 Bug 425833 - IllegalArgumentException I is not a member of Cls1
Change-Id: I61d52d2585142c15be21638e614d5b8daa13dfae
2014-01-15 20:06:08 -08:00
Sergey Prigogin
74c0954dc8 Bug 425595 - Opening 'C/C++ General-> Formatter' of a project properties
cuases NPE
2014-01-13 11:40:57 -08:00
Sergey Prigogin
e9b3224eaa Cosmetics. 2014-01-10 09:54:58 -08:00