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

11977 commits

Author SHA1 Message Date
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
Marc-Andre Laperle
fb12c43146 Bug 424635 - The wrench icon overlay for a source file does not appear
When the language settings providers functionality is enabled, also
check for build settings customization, not just the language setting
entries.

Change-Id: Ia9fec3bc377617dc9f2264dd924941879f1b64b0
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/20297
Tested-by: Hudson CI
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-01-06 15:53:33 -05:00
Andrew Eidsness
9d6055c4a3 Bug 422841: Add Q_GADGET to QtIndex
This extends the QtIndex to support C++ classes that have been annotated
with the Q_GADGET macro.  QGadgets are normal C++ classes that are able
to host Q_ENUMs.

The implementation classes for QObject have been modified to share
common parts with the implementation for QGadget.  The types are
intentionally not related in the QtIndex API.  This allows for divergent
changes in the Qt spec.

This patch includes new tests cases for Q_GADGET.

Change-Id: I59eb745ff5614c2897d67dd7d6807763091120af
Signed-off-by: Andrew Eidsness <eclipse@jfront.com>
Reviewed-on: https://git.eclipse.org/r/20236
Tested-by: Hudson CI
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
IP-Clean: Doug Schaefer <dschaefer@qnx.com>
2014-01-06 09:52:15 -05:00
Sergey Prigogin
3005e7ef26 Bug 424876 - Unable to extract a function containing nested loops 2014-01-03 18:39:31 -08:00
Sergey Prigogin
59b67cd28b Cosmetics. 2014-01-03 17:38:29 -08:00
Sergey Prigogin
281d5ddf79 Cosmetics. 2014-01-02 17:28:50 -08:00
Sergey Prigogin
4753969951 When a file is deleted from the index, the file in the context of which
it was parsed should be marked as having unresolved includes.
2014-01-02 17:22:12 -08:00
Sergey Prigogin
c95730601b Cosmetics. 2014-01-02 17:22:04 -08:00
Sergey Prigogin
cafab91ca1 Don't allow creation of EvalID without a name. 2014-01-02 11:49:39 -08:00
Sergey Prigogin
106afe4e80 Proper handling of subclasses in getAdapter method. 2013-12-26 09:44:54 -08:00
Nathan Ridge
628e0329b2 Bug 326750 - Field with same name as class
Change-Id: I6170ad204506d9eca3a0016930ad6506ba56e9cd
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/20147
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>
2013-12-23 14:08:13 -05:00
Marc Khouzam
80d5db7748 Bug 424397 - Don't print full stack trace in case spawner native is not
available

Change-Id: Id950622f6ca39639addeedc33e8d1c3fadd611e0
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/20028
2013-12-23 13:27:06 -05:00
Sergey Prigogin
db22538a25 Added a @Deprecated annotation. 2013-12-21 10:13:39 -08:00
Nathan Ridge
c1b801b036 Bug 332829 - Handle ambiguity between a type-id and an expression other
than an id-expression in a template argument

Change-Id: I1ec6157b09526a1f98850361f903fbea8b8c8a89
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/20140
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-12-21 13:04:43 -05:00
Marc-Andre Laperle
9e3bca14b5 Bug 353281 - Content assist for designated initializers, additional fix
Change-Id: I534f074f1308f03f341838c87096ef09e3c166a2
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/20094
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Hudson CI
2013-12-20 20:33:20 -05:00
Sergey Prigogin
ef93400be2 Cosmetics. 2013-12-18 14:08:46 -08:00
Sergey Prigogin
240a5ac13e Bug 424378 - __is_final GCC built-in type trait is not supported 2013-12-18 12:32:44 -08:00
Sergey Prigogin
bff4a3bf6c Cosmetics. 2013-12-18 12:27:03 -08:00
Nathan Ridge
e0d1910ed4 Bug 420995 - Specializations of constexpr functions
Change-Id: I7e08e21eb62867d6bb42aa6904ab0fab472cb0bc
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/19936
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>
2013-12-18 14:29:16 -05:00
Sergey Prigogin
227b03e6b8 An attempt at performance optimization.
Change-Id: Ia4b6839626381935af859ae468de418fa004c867
Reviewed-on: https://git.eclipse.org/r/19934
Reviewed-by: Nathan Ridge <zeratul976@hotmail.com>
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-12-18 12:40:39 -05:00