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

13276 commits

Author SHA1 Message Date
Sergey Prigogin
90ad016967 Bug 509898 - IndexFileSet.containsDeclaration is slow and is causing UI
freezes

Added tracing of unusually expensive bindings in IndexFileSet.

Change-Id: I316257d32b4af7357644a2958177efd2df58f864
2017-02-03 12:43:11 -08:00
Nathan Ridge
e7d8ba0ec3 Bug 511186 - Noexcept specifier in type template argument
Change-Id: If0c3299c563829a9b3549f78b346a19e68042456
2017-02-03 13:53:35 -04:00
Nathan Ridge
6a8afa21a6 Bug 511108 - Update the set of supported feature reported in __has_feature
Since the last update, C++14 relaxed constexpr and a few new type traits
have been implemented.

Change-Id: I6fb780973c113820bfecf6a2bc7f1b7f5b1494e9
2017-02-03 13:52:06 -04:00
Nathan Ridge
4c172b2407 Bug 511108 - When parsing as clang, enable the extensions supported by clang in the scanner extension configuration
Change-Id: I43fe278e08b3274c465374503f994e6dc46668e6
2017-02-03 13:51:41 -04:00
Nathan Ridge
8b64d79199 Bug 511108 - Only report support for type trait primitives in __has_feature if such support is actually enabled by the active scanner extension configuration
Change-Id: I0631f555935fdbdd1f2a98fe737a129ef5b90eda
2017-02-03 12:51:07 -05:00
Sergey Prigogin
dd92d1c9d5 Code streamlining.
Change-Id: If94003c41bac154601ddd8ce87a0418fbf4f1b0c
2017-02-03 01:10:07 -04:00
Sergey Prigogin
66c965df2e Bug 511606 - ClassCastException: CPPTypedefSpecialization cannot be cast
to IArrayType

Change-Id: Iac14f1a84323e2a0fee01cb23fb1ce33ee27757c
2017-02-03 00:08:55 -05:00
Nathan Ridge
5a4e821cfb Bug 511048 - Offer completion proposals for nonstatic methods in a using-declaration
Change-Id: Ifb3aee10c354aebe606c439cdda1453b1cc29095
2017-02-03 00:47:57 -04:00
Nathan Ridge
7b8bf74386 Bug 511122 - Instantiation of dependent destructor name
Change-Id: I090439b6c525cae3bf054f65f67190811232d64c
2017-02-03 00:46:07 -04:00
Nathan Ridge
fbc18a270f Bug 511108 - Do not attempt to resolve the name in an EvalID if the name owner is still dependent
Change-Id: I63dcfa4413569554f30be0c6a94c2b1691515aa4
2017-02-03 00:44:19 -04:00
Nathan Ridge
8c7c06646b Bug 511429 - Handle TypeOfDependentExpression in PDOMCPPLinkage.unmarshalBinding()
Change-Id: I2eca438be88bb0d78dae5f511fa1fde46965fa65
2017-02-02 23:39:50 -05:00
Nathan Ridge
5babeafa31 Bug 510834 - Propagate substitute failure in EvalID.instantiate() with field owner
Change-Id: I27088b7da18f7fe52d77bd669e32b225a1e99d21
2017-02-03 00:39:34 -04:00
Nathan Ridge
e832c49faf Bug 510706 - Follow-up to ensure a UniqueType's contribution to a signature is unique
Change-Id: Iceaf946c073455f10ffd8d95013442da91309be3
2017-02-01 12:53:53 -04:00
Nathan Ridge
52299c9124 Bug 499374 - Extend the preview code on the Syntax Coloring preference page
The code now includes a template parameter and a task tag, so their
respective colorings can be seen in the preview window.

Change-Id: Ie74a0af04b016ef506d665a9472775aa8f6d757c
2017-02-01 12:51:36 -04:00
Nathan Ridge
4ed57293e6 Bug 510998 - Use the semantic highlighter to color the preview code on the Syntax Coloring preference page
Previously, the highlighted ranges in the preview widget were hard-coded.

Change-Id: Ib1221ae69fcbe7138549d1483da10bad2251430e
2017-02-01 12:50:04 -04:00
Nathan Ridge
b10699be77 Bug 510998 - Fix a deprecation warning in CEditorColoringConfigurationBlock
Change-Id: I6da1652d9b6fcc7a9775d427a57c858cb7323f1e
2017-02-01 12:49:40 -04:00
Marc-Andre Laperle
02a04cebad Fix API errors with Eclipse 4.7
- Adding default methods can now be ignored
- Adding fields is now an error but we probably want to ignore this
because it is quite restrictive

Change-Id: Ie57c69f54c64e4913d1498b02e86d00c93f8101a
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2017-01-30 14:11:36 -04:00
Nathan Ridge
1c60b844c5 Bug 509185 - Completion of constructor call with uniform initialization syntax
Change-Id: I3b0b3c5dd32ee09755e58cdb3dbc6af019ddd650
2017-01-29 17:15:00 -05:00
Nathan Ridge
a395647e48 Bug 510788 - Syntax coloring for template arguments in function template specialization
Previously, the arguments shared the color of the template-name.
Now, the arguments get their own colors.

Change-Id: I27af4146717a19095f1ac22188eedb8a71d9466c
2017-01-28 14:40:45 -05:00
Sergey Prigogin
e891f9e555 Cosmetics
Change-Id: Ib5d970ad0b34db58cbf7d87bdb67b457539985e4
2017-01-28 08:55:22 -08:00
Sergey Prigogin
7b05dbf791 Added protection against ClassCastException.
Change-Id: If22df485f21173841a0a5126ecc1246ea6651b4f
2017-01-27 22:37:12 -08:00
Sergey Prigogin
5aed7a6411 Bug 510662 - NPE in BuiltinOperators.<init>
Change-Id: I699a45e762dcc00593b0000c2cd3ecd5f2515773
2017-01-27 22:08:28 -08:00
Sergey Prigogin
2647895966 Bug 509898 - IndexFileSet.containsDeclaration is slow and is causing UI
freezes

Added a cache to IndexFileSet and remove a redundant cache from
CPPASTTranslationUnit.

Change-Id: Ifdd6037acf392ad11a4259f1de8cc51d5e153727
2017-01-27 19:57:23 -08:00
Sergey Prigogin
19d8c2a741 Removed unnecessary casts.
Change-Id: Id100ea3e2382598a666cb5596dafe70149aaf6f0
2017-01-27 16:25:22 -08:00
Nathan Ridge
5fd108cd66 Bug 510706 - Handle UniqueType in SignatureBuilder.marshalType()
Change-Id: I3686e3c32cacbcbad299de333eee32241a4697a5
2017-01-26 21:37:28 -04:00
Nathan Ridge
a3b4bc6852 Bug 510665 - User-defined literal operator in namespace
Change-Id: Idb93eac23caa16870040cd4092f24a4a02563251
2017-01-26 21:34:28 -04:00
Nathan Ridge
09476c126a Bug 461680 - Extend content assist's function parameter hints
In addition to showing the parameter list (with the current parameter
bolded), the hint now shows the function's name, return type, and
whether or not it is virtual.

Change-Id: I24be893ee8968fca8d9893230266ec98e2b9ae5a
2017-01-26 20:32:43 -05:00
Sergey Prigogin
8dd3aa2e3b Bug 511143 - Const qualifier confuses __is_class built-in type trait
Change-Id: Iff01dd7e7fe6a4fec0b783275d7a5d4babd07d25
2017-01-26 15:24:11 -08:00
Nathan Ridge
b332cdaf75 Bug 497190 - Do not use ParameterGuessingProposal at all when parameter guessing is disabled
Change-Id: I9feda3d365eeb935296adbc7144b0f504017f87a
2017-01-25 12:47:19 -04:00
Nathan Ridge
a90caec05e Bug 395562 - Follow-up to fix a regression where completing the method name in an out-of-line method definition would no longer insert parentheses
Change-Id: I8bbf083e874f6d01aa85c2ba4173685228160963
2017-01-24 22:07:55 -05:00
Nathan Ridge
3c20d6f0ea Bug 292229 - Consider files with other extensions for inclusion proposals
Proposals where the extension is not a known C/C++ header file extension
are ranked below proposals where the extension is one.

Proposals where the extension is a known C/C++ *source* file extension,
and proposals where the filename begins with a '.', are still not considered.

Change-Id: I80784f8f15a01b05977a288affbe3958f1400bdf
2017-01-24 17:29:01 -04:00
Nathan Ridge
c5f3bbb55a Bug 292229 - Refactor the content assist test suite to make adding new flags easier
Change-Id: I06bd3590e037e0761a62c454dec497d3043e7e08
2017-01-24 16:28:29 -05:00
Sergey Prigogin
1d6cf48198 Bug 510794 - Tab character is ignored at the beginning of line inside a
raw string literal

Change-Id: Idc8dfba8900495933f681f809dc96c4d92a6db8a
2017-01-23 11:51:39 -08:00
Nathan Ridge
8956d2c7e6 Bug 72809 - Improve content assist inside inactive code
Change-Id: If24e354d00aaf886da1571fc525b556e08c94897
2017-01-22 21:21:39 -04:00
Nathan Ridge
d45ff124e3 Bug 510722 - Handle a null AST in ExpandSelectionJob and ControlFlowGraphView
Change-Id: Iafd1b9a32833fb67554902d13955023c149a132e
2017-01-21 16:15:52 -05:00
Sergey Prigogin
2726670258 Cosmetics
Change-Id: I52a10ff524628692e9fa94b6fb1cc6cf1708d7d1
2017-01-21 15:00:24 -04:00
Sergey Prigogin
94a97818bf Cosmetics
Change-Id: Ia9a8c9052f255bfbadf919b4aea029707d77b294
2017-01-20 15:49:17 -08:00
Nathan Ridge
89d1521d24 Bug 510484 - Restore the recursion protection set in CPPVariable.getInitialValue()
The set was moved to EvalUtil.getVariableValue() in bug 508254, but this
left some paths unprotected. This restores the set to
CPPVariable.getInitialValue() (while keeping the EvalUtil one too).

Change-Id: I4a579720f4bc23d41e50c484649a73c29698373d
2017-01-19 23:54:35 -05:00
Nathan Ridge
eb795e9518 Bug 483824 - Inline namespace reopened without inline keyword
Change-Id: Ia2e15b31356c2e2a2ab53ed6fd76138177ed40bb
2017-01-19 19:36:53 -05:00
Sergey Prigogin
37db6b290c Bug 510662 - NPE in BuiltinOperators.<init>
Change-Id: I1ed5c8d0e820a89fb52c4ae51bc2f2ab79ce37b3
2017-01-19 10:39:05 -05:00
Sergey Prigogin
2c8c7a9bca Cosmetics.
Change-Id: I157beb9b3ce003003173c95cd261826ac65dbeb7
2017-01-19 02:14:26 -04:00
Sergey Prigogin
1af8428deb Bug 509898 - CPPSemantics.isReachableFromAst is slow and is causing UI
freezes

Optimized IndexFileSet.containsDeclaration method for performance and to
reduce its memory footprint.

Change-Id: I0e867b96c6d6ab102561bc999127980d1be26a7b
2017-01-18 19:59:12 -08:00
Nathan Ridge
24f099f882 Bug 509186 - Require an exact match for help proposals when providing context information
Change-Id: I06ccd65a0304921ebf2adbd556a89c8685237a8a
2017-01-18 13:12:06 -04:00
Nathan Ridge
785b17a064 Bug 72391 - When completing a function, do not insert parentheses if they are already present
Change-Id: Ia4beb5e7ee288c48f2dbde45b1f34a562b939cab
2017-01-18 13:03:12 -04:00
Nathan Ridge
73d5df1550 Bug 391439 - Do not do replacement for help proposal with context information style
Change-Id: I4d8988e9601e1f1b9722830b61cbf2d4c564a4cd
2017-01-18 13:01:00 -04:00
Nathan Ridge
b434f0d78d Bug 509833 - Follow-up to fix propagation of the point of instantiation in ClassTypeHelper.findOverriders()
Change-Id: Ia59c361e075874dec5551803d985ed20329245da
2017-01-17 19:46:44 -05:00
Nathan Ridge
ccb64b8b63 Bug 510010 - Uniform initialization in template argument
Change-Id: I55853735e44fdf6240bebb53f2e7ab1a6885b273
2017-01-17 20:42:53 -04:00
Nathan Ridge
68e19daf1e Bug 509191 - Do not create parameter guessing proposal if we know we are not calling the function
Change-Id: I7e45501707e0f58ed6d8745506a3519e29c0763a
2017-01-17 20:38:26 -04:00
Nathan Ridge
9e60a646fd Bug 509182 - Completion of class type in using-declaration
Change-Id: Iacd0ab4bfead2df31cddc78840853eb697139b02
2017-01-17 20:36:39 -04:00
Nathan Ridge
b1d6194e14 Bug 456293 - Completion of destructor name
Change-Id: I53422b1daf693e8ab6c0ad64857e8b07c970444c
2017-01-17 19:34:26 -05:00