1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-07 09:46:02 +02:00
Commit graph

1430 commits

Author SHA1 Message Date
Michi
3cf9300566 Bug 459047 - [AccessContext] namingClass not found for nested class
specializations

if a binding is a member of a ClassInstance (owner) we should not try to
find a corresponding class template (target).

Change-Id: Ic865161f137ecb2a300afd03761cc26ee758b38b
Signed-off-by: Michi <woskimi@yahoo.de>
2015-02-04 11:55:03 -05:00
Sergey Prigogin
d0476b4ae0 Cosmetics. 2015-01-26 22:04:18 -08:00
Sergey Prigogin
4738597265 Bug 436656 - [Organize includes] Add include for base class when code
using derived class
2015-01-26 21:43:06 -08:00
Nathan Ridge
0613bf527a Bug 458317 - Fix an NPE in MethodHighlighting.consumes()
Change-Id: I6a88e26aa60d57dd8c95079672ce0c1ceff8b3d7
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2015-01-24 05:23:26 -05:00
mazab
69aa2d0bf0 Bug 438549. Add mechanism for parameter guessing.
Change-Id: I5545d179cfd7c54e2a52f856ea21da43e57587d6
Signed-off-by: mazab <mohamed_azab@mentor.com>
2015-01-23 20:22:33 -05:00
Thomas Corbat
786e2137eb Bug 399215 - Toggle Function breaks the code...
- Test case for reproducing the problem.
- The code is lost because a copy of the body, which contains macro
references is not rewritten, but its raw signature is taken. The raw
signature of a copy is empty in this case. I've solved this issue by
using the raw signature of the original node for get raw signature. This
is a fundamental change of ASTNode.getRawSignature(). We could also
solve this in the StatementWriter to get the original node before
accessing the raw signature.

Change-Id: I64b408b09444df818d30d99d99de4a1974eacf93
Signed-off-by: Thomas Corbat <tcorbat@hsr.ch>
Reviewed-on: https://git.eclipse.org/r/39406
Tested-by: Hudson CI
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2015-01-16 09:26:19 -05:00
Sergey Prigogin
3fa103dbf8 Bug 457374 - A 'using' declaration confuses Organize Includes 2015-01-13 12:07:47 -08:00
Sergey Prigogin
49997a17b3 Bug 457301 - Organize Includes ignores IWYU pragma: keep 2015-01-12 18:37:19 -08:00
Sergey Prigogin
f0e6a286fb Added a test for renaming a source root folder. 2015-01-08 16:14:20 -08:00
Sergey Prigogin
a44b1c9ba8 Fixed a typo. 2015-01-08 16:14:19 -08:00
Sergey Prigogin
2dbdd831ec Cosmetics. 2015-01-08 16:14:17 -08:00
Sergey Prigogin
07997cb72a Fixed deprecation warnings. 2015-01-08 16:14:15 -08:00
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
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
bcc3aad840 Bug 456099. Added a test for NameComposer.createByExample method. 2015-01-05 19:09:44 -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
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
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
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
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
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
Nathan Ridge
c78d2fe823 Bug 451772 - Syntax-color names of structures in C files
Change-Id: I193648ffd15f581af75f71d62261068543a5769d
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/36887
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-11-23 21:43:42 -05:00
Nathan Ridge
17ec42f5cd Bug 451772 - Allow testing syntax coloring in C files
Change-Id: Id97c56b5f076764fea29e3fef002f7b96edb8c73
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/36886
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-11-23 21:42:16 -05:00
Nathan Ridge
34f513ccfa Bug 442754 - Avoid using a static constant to give production code
different behavior during a test

Change-Id: I115677ee2a5b6b7ccceb75949678d31a08f01732
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/36885
Tested-by: Hudson CI
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-11-23 11:26:07 -05:00
Sergey Prigogin
6a1c54cc57 Cosmetics. 2014-11-21 14:42:37 -08:00
Nathan Ridge
dd919f8f93 Bug 379626 - Incorrect syntax coloring of dependent method call
Change-Id: Id1b327a814d91ff88984362402666a9e640248f5
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/35519
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-11-15 01:26:24 -05:00
Nathan Ridge
356478286c Bug 442754 - Refactor the test harness for semantic highlightings
Change-Id: I649b80e96f87481802c6b2f29029ed42bdb491a8
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/35518
Tested-by: Hudson CI
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-11-15 01:25:41 -05:00
Sergey Prigogin
32b06b4c26 Cosmetics. 2014-10-07 14:36:36 -07:00
Daisuke Nojiri
58af86640b Bug 443436 - Auto indenter uses spaces where it should use tabs
This change makes auto indentation following a new line use tabs where
possible when "Use tabs only for leading indentations" is disabled.

Change-Id: I97d787a003763697e281bb4a8af0f4760cbd81fb
Signed-off-by: Daisuke Nojiri <dai.nojiri@gmail.com>
Reviewed-on: https://git.eclipse.org/r/32955
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-09-05 18:43:14 -04:00
Sergey Prigogin
62f4735f8e Bug 443356 - Organize Includes adds an unnecessary include for a
function referenced by a macro
2014-09-04 15:44:59 -07:00
Sergey Prigogin
096fae2b3e Bug 442841 - Organize Includes adds an unnecessary include for the base
class of the type of a field
2014-08-29 22:11:21 -07:00
Marc-Andre Laperle
97079f6ad0 Add missing arg for jacoco in in tests. Update jacoco.
Jacoco arguments are missing when executing certain tests. This happens when
argLine is being overriden. We had the same problem in Linux Tools. We solved
it by prepending the argLine with ${tycho.testArgLine}. This should help
improving the Code coverage metric in Sonar.

Also update the jacoco version to fix a bug when building with Java 8.

Change-Id: I7f73f40488efc01fc7d643940c1ac0d5950c900d
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/32507
Tested-by: Hudson CI
Reviewed-by: Alvaro Sanchez-Leon <alvsan09@gmail.com>
2014-08-28 15:40:26 -04:00
Sergey Prigogin
565aae76ba Bug 442742 - "Organize Includes" removes a header required for a
namespace alias
2014-08-27 14:14:59 -07:00
John Dallaway
e23f4ef14b Bug 442186: Code formatter handling of CRLF after single line comment
Change-Id: I1a17ec992fd881851e076c732629ac912effc2f1
Signed-off-by: John Dallaway <john@dallaway.org.uk>
Reviewed-on: https://git.eclipse.org/r/32024
Tested-by: Hudson CI
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-08-22 14:42:08 -04:00
Thomas Corbat
ac8965a904 Bug 418493 - [Content Assist] Show default values within parameter hints
Preferences:
- Displaying parameters with default argument
- Displaying default arguments

Default arguments for functions and templates.

Conflicts:
	core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/contentassist/DOMCompletionProposalComputer.java

Conflicts:
	core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/contentassist2/CompletionTests.java
	
Rebased to changed parent

Change-Id: Ifb505f5723dc26212c34f492d3d49b7badf366ea
Signed-off-by: Thomas Corbat <tcorbat@hsr.ch>
Reviewed-on: https://git.eclipse.org/r/30646
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Hudson CI
2014-08-14 02:55:59 -04:00
Thomas Corbat
ebb9bced0d Bug 440422 - Completion in Using Declarations
Fix for content assist in the context of using declarations:
- No parameter hint for using declaration (template and function)
- No trailing semicolon if one is already present
- Parameter hint for invocation in template arguments
- Space after comma in function suggestions

Some refactoring to content assist test infrastructure.


Change-Id: Id2483ddefe1c35572a9554fdadb0b6416402446a
Signed-off-by: Thomas Corbat <tcorbat@hsr.ch>
Reviewed-on: https://git.eclipse.org/r/30584
Tested-by: Hudson CI
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-08-13 09:06:04 -04:00
Marc-Andre Laperle
86a08c918e Upgrade to Tycho 0.21.0
Change-Id: I1ef13eda4f297c10ee360cac64f43d58a91790e1
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/29954
Tested-by: Hudson CI
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
2014-07-31 11:19:17 -04:00
Thomas Corbat
312f6dc9ac Bug 440642 - [Content Assist] No Completion in Template Aliases
Fix for bug including test. This change will need to be adapted if Bug
440422 is submitted as currently proposed, because it replaces the
existing constants for selecting the comparison strategy with an enum.

Change-Id: I657c6f24217c5d1810a088080ee0ecadb3b83e9b
Signed-off-by: Thomas Corbat <tcorbat@hsr.ch>
Reviewed-on: https://git.eclipse.org/r/30661
Tested-by: Hudson CI
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-07-30 02:16:56 -04:00
Sergey Prigogin
d8154bd340 Inremented branding plugin version to 8.5 2014-07-21 17:39:01 -07:00
Thomas Corbat
f81b783269 Bug 84144 - Occurrence marking for label references. 2014-07-10 13:20:38 +02:00
Thomas Corbat
875e21efb0 Bug 430342 - Completion of template arguments.
Change-Id: Iaf1c43ce826f6676b941689f39fc81ea5e25daa8
Reviewed-on: https://git.eclipse.org/r/29440
Tested-by: Hudson CI
Reviewed-by: Thomas Corbat <tcorbat@hsr.ch>
Tested-by: Thomas Corbat <tcorbat@hsr.ch>
2014-07-07 03:05:57 -04:00
Sergey Prigogin
852659fa1d Bug 437630 - NPE in Organize Includes with a lambda expression 2014-06-17 15:18:24 -07:00
Sergey Prigogin
d962e2eee7 Automatic update of include statements and include guards when header
files are renamed or moved.
2014-06-17 15:14:50 -07:00
Sergey Prigogin
cf4556f05f Cosmetics. 2014-06-17 15:12:01 -07:00
Sergey Prigogin
a74fec3491 Adjusted test expectations to the modified treatment of unused includes. 2014-06-04 11:56:04 -07:00
Sergey Prigogin
dc63d60efd Bug 435340 - Add Include inserts an extra blank line 2014-05-20 14:12:41 -07:00