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

12383 commits

Author SHA1 Message Date
Michi
d6a510ab06 Bug 456752 - [Code Assist] - Accessibility check is broken for base
class templates of a class template

There are 2 changes. Finding the proper naming scope, which basically is
the same as what is done in CPPUnknownTypeScope.getBindings when
retrieving the bindings themselves.
The second change was picking the right scope for the actual
accessibility check for base templates.

Change-Id: I535c8cdd9d07272d37da9d23a03edb9e6b1b3a7a
Signed-off-by: Michi <woskimi@yahoo.de>
Reviewed-on: https://git.eclipse.org/r/39016
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2015-01-07 12:54:23 -05:00
Marc Khouzam
5beb56ed69 Bug 455094 - StepIntoSelection cleanup after review
Change-Id: Id591e5c46ed86744b92c0931079fc798e39498ed
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/38177
2015-01-07 11:01:56 -05:00
Sergey Prigogin
0498b96805 Bug 449391 - Include guard name style 2015-01-06 21:03:55 -08:00
Sergey Prigogin
693185186e Cosmetics. 2015-01-06 21:02:42 -08:00
Sergey Prigogin
91d2fb6a4b Removed unused messages. 2015-01-06 16:41:28 -08:00
Sergey Prigogin
504a9e864a Suppressed a usage warning. 2015-01-06 16:41:27 -08:00
Sergey Prigogin
90703c8f55 Cosmetics. 2015-01-06 16:41:25 -08:00
Sergey Prigogin
252eaf4c0f Incremented CDT feature version to 8.6.0.
Change-Id: Ic90c8e6a68d21e5b90ec3fac997da6a95a29bedf
Signed-off-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Reviewed-on: https://git.eclipse.org/r/39066
Tested-by: Hudson CI
2015-01-06 19:40:38 -05:00
Sergey Prigogin
39c8cf14fd Fixed include guard adjustment when renaming a project. 2015-01-06 15:40:33 -08:00
Sergey Prigogin
4efe6e815e Cosmetics. 2015-01-06 15:38:52 -08:00
Alena Laskavaia
5626442f0e Added API to construct Addr64 from long
Change-Id: Iccb489f290711d806d499cfa763a06dab4e61f4d
Signed-off-by: Alena Laskavaia <elaskavaia.cdt@gmail.com>
Reviewed-on: https://git.eclipse.org/r/38496
Tested-by: Hudson CI
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
2015-01-06 09:46:31 -05:00
Sergey Prigogin
bcc3aad840 Bug 456099. Added a test for NameComposer.createByExample method. 2015-01-05 19:09:44 -08:00
Sergey Prigogin
75900af3ae Improved "Expand Selection To Enclosing Element" command for template
definitions.
2015-01-05 19:08:39 -08:00
Sergey Prigogin
5d6e09d1cb Cosmetics. 2015-01-05 18:58:03 -08:00
Sergey Prigogin
52f60a00ba Added a test for string concatenation with macro. 2015-01-05 16:02:33 -08:00
Sergey Prigogin
3637dd4923 Cosmetics. 2015-01-05 16:02:31 -08:00
Michi
bb17286834 Bug 422401 - [Content Assist] no binding for nested types of a base
class

The problem was with template base classes as in the unit test.
Accessibility check did not find the proper AccessContext.namingClass
and always ended further up in the class tree.

Change-Id: I447567cabd20ad5c57c05a9ffa5f0f12c5321ccf
Signed-off-by: Michi <woskimi@yahoo.de>
Reviewed-on: https://git.eclipse.org/r/38944
Tested-by: Hudson CI
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2015-01-04 19:58:05 -05:00
Michi
ff7056130e Bug 456579 - Improve CSourceHover and OpenDeclaration for TemplateIds
When the nodeSelector detects an IASTNode that has a TemplateId parent
we use that instead of the original. The benefit is that we also get the
template parameters so we can find template specialization matches.

Change-Id: I3751efdb15e868b4aa6688ad338227e0d0c5bcd8
Signed-off-by: Michi <woskimi@yahoo.de>
Reviewed-on: https://git.eclipse.org/r/38923
Tested-by: Hudson CI
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2015-01-04 02:34:22 -05:00
Michi
d7e2618b8f Bug 424565 - 'Open Declaration' on use of alias template defined in base
class 

This should work now for AliasTemplates from AST and PDOM.

SourceHover is also affected.

Are there any unit tests for this?
Change-Id: I54a9c2d6cd0851f901b917a57d79616298699299
Signed-off-by: Michi <woskimi@yahoo.de>
Reviewed-on: https://git.eclipse.org/r/38919
Tested-by: Hudson CI
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2015-01-04 01:40:19 -05:00
Michi
84add6a4bd Bug 456340 ClassCastException when typedef refers to basic type
Change-Id: If1a65f6160e9398e1c40df194281414a4e422036
Signed-off-by: Michi <woskimi@yahoo.de>
Reviewed-on: https://git.eclipse.org/r/38845
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-12-30 20:58:52 -05:00
Sergey Prigogin
7eb2e1340a Bug 456099. Added change description. 2014-12-30 17:12:33 -08:00
Sergey Prigogin
fb6cf9f410 Bug 456099. More flexible file name matching algorithm. 2014-12-30 16:05:35 -08:00
Sergey Prigogin
6de0d0163b Cosmetics. 2014-12-30 14:45:33 -08:00
Sergey Prigogin
8758a144a7 Bug 456099. Moved a premature assertion. 2014-12-30 09:57:56 -08:00
Sergey Prigogin
b235e472b5 Disabled a flaky test. 2014-12-29 10:10:09 -08:00
Michi
690fc119bb Bug 456101 - class template is refering to itself in code completion
a CPPASTQualifiedName that represents some template instance can never
refer to a template of the same type

Change-Id: Iaf9a452e4797fc0e797e5ed5ccaadfb00ff4fb8f
Signed-off-by: Michi <woskimi@yahoo.de>
Reviewed-on: https://git.eclipse.org/r/38730
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-12-29 10:39:01 -05:00
Nathan Ridge
cc7bf7b392 Bug 456207 - Skip ICPPASTFunctionDeclarator.getNoexceptExpression() in
ASTComparer

Change-Id: I298f52e9ad21643d8fe58283e0c30e95c12b92ad
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/38788
Tested-by: Hudson CI
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-12-27 18:14:22 -05:00
Nathan Ridge
787d0e1642 Bug 456131 - Remove duplicate builtin symbol for __atomic_add_fetch
Change-Id: Icb753202c7678ec75f603edac003dbd199513b07
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/38787
Tested-by: Hudson CI
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-12-27 18:13:02 -05:00
Sergey Prigogin
f11fcce2ee Bug 456099. Corrected include replacement in partner files. 2014-12-23 21:18:40 -08:00
Sergey Prigogin
b74feb2c3d Bug 456099 - Renaming a class should also rename related files 2014-12-23 10:30:31 -08:00
Sergey Prigogin
f86ee9bbf7 Cosmetics. 2014-12-23 10:30:29 -08:00
Sergey Prigogin
d26dc27212 Adjusted method visibility. 2014-12-23 10:30:28 -08:00
Sergey Prigogin
5cd381dfe8 Cosmetics. 2014-12-23 10:30:26 -08:00
Michi
c647a52118 Bug 434446 - [code assist] struct not being recognised as a valid base
class

structs are now being shown as candidates for base classes

while I was at it I also fixed proposals for typedefs, template
parameters and template aliases.

Change-Id: I319b06a195eed88a12969207a21584dc2477219e
Signed-off-by: Michi <woskimi@yahoo.de>
Reviewed-on: https://git.eclipse.org/r/38379
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-12-19 15:15:55 -05:00
Sergey Prigogin
5ba7b39f01 ICPPAliasTemplate and ICPPAliasTemplateInstance are not supposed to be
extended or implemented by clients.
2014-12-18 14:27:33 -08:00
Nathan Ridge
57fbe42664 Bug 429534 - NPE in CElementHyperlinkDetector.detectHyperlinks()
Change-Id: I9572985aa6585a47d5230adad813fdb6639748bf
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/38394
Tested-by: Hudson CI
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-12-17 13:38:12 -05:00
Nathan Ridge
5ccf40dd20 Bug 450969 - NPE in AbstractDocCommentProposalComputer.getResource()
Change-Id: I2e5eaf358f958e12463f98c81863a0c330695945
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/38393
Tested-by: Hudson CI
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-12-17 13:37:34 -05:00
Doug Schaefer
c8ba1b6c3a Get rid of the extra schema includes to expressions.
This causes build errors when using Mars.

Change-Id: I5b7aaa261e252b7aa7a2afe5a86398c4f24af0aa
Reviewed-on: https://git.eclipse.org/r/38174
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
Tested-by: Doug Schaefer <dschaefer@qnx.com>
2014-12-14 17:42:12 -05:00
Sergey Prigogin
0de7dec295 Adjusted JavaDoc. 2014-12-12 12:46:11 -08:00
Sergey Prigogin
5aa786349f Cosmetics. 2014-12-12 10:25:06 -08:00
Michi
702f5cb4c8 Bug 415495 - typedef/type alias change code completion proposals
Change-Id: I963ff5fc2ae073f233b04eb6a5a521d0e6610af7
Signed-off-by: Michi <woskimi@yahoo.de>
Reviewed-on: https://git.eclipse.org/r/38029
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-12-11 22:42:31 -05:00
Marc Khouzam
20c1166f1a No need to increase version a second time.
Change-Id: Ic219edbcbcc4dc718a586dc15482ffdcf5eecd23
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/37985
2014-12-10 13:29:57 -05:00
Nathan Ridge
1ea19101ff Bug 451091 - Make type of constexpr variable const-qualified
Change-Id: I2744ba8dbf2b629659f778d257b1d22483eb6c33
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/37929
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-12-10 10:20:49 -05:00
Marco Stornelli
54607bd07f Bug 241355 - Added format source code save action
Change-Id: I987dda03aae1fd6c8077e2d6cd930164acfaa783
Signed-off-by: Oliver Vinn <oliver@vinn.co.uk>
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
Reviewed-on: https://git.eclipse.org/r/21420
Reviewed-by: Elena Laskavaia <elaskavaia.cdt@gmail.com>
Tested-by: Elena Laskavaia <elaskavaia.cdt@gmail.com>
2014-12-09 21:10:49 -05:00
Matthew Khouzam
67f46bce5b Bug 454502: make dwarf use valueof instead of number constructor
This may improve both memory and cpu performance. (SLIGHTLY)

Change-Id: I05c06b017b9d8e4505a17e99cde6c024bca21dd4
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/37783
Tested-by: Hudson CI
Reviewed-by: Elena Laskavaia <elaskavaia.cdt@gmail.com>
2014-12-09 20:37:38 -05:00
Sergey Prigogin
a830f285fe Revert "Bug 451091 - Make type of constexpr variable const-qualified"
This reverts commit 39dce1d497.
2014-12-08 18:22:13 -08:00
Sergey Prigogin
a79825be23 Cosmetics. 2014-12-08 17:03:46 -08:00
Sergey Prigogin
24ab006419 Bug 450888. Fixed the problem decribed in comment #0 2014-12-08 16:17:59 -08:00
Sergey Prigogin
ef9d90c4f5 Cosmetics. 2014-12-08 11:55:33 -08:00
Nathan Ridge
39dce1d497 Bug 451091 - Make type of constexpr variable const-qualified
Change-Id: I432264fe733e27009dfc9cfbaa37631424af7d0c
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/37224
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-12-08 13:47:22 -05:00