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

12275 commits

Author SHA1 Message Date
Sergey Prigogin
63053a556c Cosmetics. 2014-08-14 13:59:30 -07: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
Alena Laskavaia
a458a0fe9f Fixing NPE in ACBuilder
ACBuilder now fails to add a marker if some other marker have no
linumber attribute. Added default line and severity for marker
comparision purposes.

Change-Id: I9c42f660cae08c3303382d8c35aa6404e7130652
Signed-off-by: Alena Laskavaia <elaskavaia.cdt@gmail.com>
Reviewed-on: https://git.eclipse.org/r/31398
Tested-by: Hudson CI
2014-08-12 08:46:41 -04:00
Sergey Prigogin
4dd9a12177 Cosmetics. 2014-08-11 20:17:08 -07:00
Nathan Ridge
de6b33924c Bug 437675 - Handle PDOM function instances in
CPPTemplates.instantiateBinding()

Change-Id: I3bf9ee9f5db0521e60c302b96db39513873aeb1b
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/31347
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-08-11 13:35:40 -04:00
Nathan Ridge
3e540156b6 Bug 404245 - Check that a function call has enough arguments after
template argument deduction

Change-Id: I2824e908dc6ea9796c9400e81f3ef34d97406dc6
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/31345
Tested-by: Hudson CI
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-08-11 13:33:27 -04:00
Nathan Ridge
42235704cb Bug 438348 - Allow decltype-specifiers in base-specifiers
Change-Id: Ib027b78aa207e1fe0e1aef56fae7eeace041118c
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/31341
Tested-by: Hudson CI
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-08-11 13:30:57 -04:00
Alena Laskavaia
b7ec8deec4 Bug 242405 - Binary file editor does not refresh when binary is rebuilt
Change-Id: I0af100959f8f61b2d2735f9d0d9cd42b6c91e590
Signed-off-by: Alena Laskavaia <elaskavaia.cdt@gmail.com>
Reviewed-on: https://git.eclipse.org/r/31300
Tested-by: Hudson CI
2014-08-11 11:28:30 -04:00
Thomas Corbat
4d4ab6cafd Bug 440710 - [ASTRewriter] UnhandledASTModificationException when ...
When a statement has been inserted into a replaced compound statement
createModifiedChildArray is called for the new compound statement. The
insert modification is attached to its sibling node. The implementation
for handling this insert was on the parent (compound statement) though.
I moved this (adapted) functionality to handling of the sibling nodes.
With the way insert modifications are stored the previous implementation
cannot have worked. Furthermore, there is no test code which covers the
deleted code.

Change-Id: I9615787177c12a870df7c9663170f38b2c28accb
Signed-off-by: Thomas Corbat <tcorbat@hsr.ch>
Reviewed-on: https://git.eclipse.org/r/30796
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Hudson CI
2014-08-11 07:19:41 -04:00
Thomas Corbat
21a7118692 Bug 440447 - ASTRewrite Loses Nested Modifications
Modified ChangeGeneratorWriterVisitor to cope with nested modifications
as described in the ticket.

Also added some related change generator tests to the corresponding
tests suites.

Refined change to cope with sibling changes too.

Change-Id: Ia04f3d01e50375828588e7fa65e2ec3782c58e79
Signed-off-by: Thomas Corbat <tcorbat@hsr.ch>
Reviewed-on: https://git.eclipse.org/r/30525
Tested-by: Hudson CI
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-08-11 05:07:07 -04:00
Sergey Prigogin
cbc4e67f8e Moved TextUtil class to a more prominent place. 2014-08-08 18:45:28 -07:00
Sergey Prigogin
191b4111f8 Cosmetics. 2014-08-08 18:42:02 -07:00
Sergey Prigogin
ebac470813 Added support for radio buttons corresponding to non-boolean preferences 2014-08-08 18:40:47 -07:00
Sergey Prigogin
4d0919d7d2 Code streamlining. 2014-08-08 18:39:28 -07:00
Sergey Prigogin
2009946e05 Cosmetics. 2014-08-08 18:38:13 -07:00
Sergey Prigogin
f0a593fbb7 Fixed compiler warnings.
Change-Id: I271db5f3e4f64f13e260e66d1ea103eedfbdde4d
2014-08-08 18:36:57 -07:00
Marc Khouzam
f3971c0510 Missing @since tags
Change-Id: I6399f0151f1d1d9dd3b1a63ccb9757b2b3bf80fe
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2014-08-08 15:16:47 -04:00
Nathan Ridge
8e80f515fa Bug 441394 - Fix an NPE in EvalFunctionSet.isConstantExpression()
Change-Id: I1a4d887d064d8467e2e5e9371ab4ad0a93532089
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/31247
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-08-08 12:46:39 -04:00
Nathan Ridge
b65c120429 Bug 438348 - Leave parameter pack of nested template intact when
substituting arguments to enclosing template

Change-Id: I9c5fcca535bc4cecb05186fc498708159954a1a5
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
Reviewed-on: https://git.eclipse.org/r/31249
Tested-by: Hudson CI
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-08-08 12:45:21 -04:00
Alena Laskavaia
15402f6488 Bug 441385 - Binary editor on big files blocks UI
Change-Id: I4ac0c8eff4e77045657f0fe5921a86a966a22922
Signed-off-by: Alena Laskavaia <elaskavaia.cdt@gmail.com>
Reviewed-on: https://git.eclipse.org/r/31238
Tested-by: Hudson CI
2014-08-08 11:28:53 -04:00
Sergey Prigogin
6ff7af7dc6 Cleanup of Messages.properties and Messages.java files continued.
Change-Id: Ia8dd64344b368c00d72006a9abdea7cc2019d637
2014-08-04 12:40:50 -07:00
Sergey Prigogin
5cc7505a12 Cleanup of Messages.properties and Messages.java files.
Change-Id: Iea47d46a3ea201722fbe666a03c89dde7e5e4961
2014-08-04 11:15:40 -07:00
Sergey Prigogin
914dc65ffb More descriptive names of temporary files.
Change-Id: Ib3627818fdff1d2d8c63cabe7ed2c3790448f09d
2014-08-04 09:44:21 -07:00
Sergey Prigogin
af7c0a635b Cosmetics.
Change-Id: I3f589111ad5e765ebfaa56829ff24ec437f084f8
2014-08-01 18:33:31 -07:00
Sergey Prigogin
bfb4854e5d Cleanup of temporary files created by tests.
Change-Id: Iaca298c1fd237787ea06cba5307cc473034ad314
2014-08-01 13:59:17 -07:00
Sergey Prigogin
794e81355f Renamed messages.properties to Messages.properties.
Change-Id: I764a4d9b4d1cd17543b92dd6fd53578508337b3d
2014-08-01 12:22:27 -07:00
Sergey Prigogin
1f25d0cb80 Corrected a version in pom.xml
Change-Id: I1f529ed791be34b316a2b151d7f05a57f605d660
2014-08-01 12:12:21 -07:00
Sergey Prigogin
093b2efacf Proper enablement of Build Configurations Build/Clean commands.
Change-Id: I7446a357cc2bafdb5015c3a988a1ad0b6f23a8c6
2014-08-01 11:55:31 -07: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
Sergey Prigogin
7880c684eb Slightly reduced clutter in the project's context menu.
Change-Id: I78b5a8b37ce297a9ceaf8ecf9cb94b8df014e61d
2014-07-30 19:07:38 -07:00
Sergey Prigogin
31f37f5b63 Proper enablement/disablement of Clean/Build Selected Files commands.
Change-Id: I6f56eeb111759ccf7a0bc8fbbfd57ffd8689bf01
2014-07-30 16:47:55 -07:00
Sergey Prigogin
6a94e17ca7 Cosmetics. 2014-07-30 16:45:26 -07: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
Eric Woestman
b149d46eb4 Bug 440466. Fixing a concurrency issue when parsing ASTs.
Change-Id: Iffbeaf1820bc334bf49c45cb760db98a53f4fbe1

Change-Id: Iffbeaf1820bc334bf49c45cb760db98a53f4fbe1
Signed-off-by: Eric Woestman <eric.woestman@gmail.com>
Reviewed-on: https://git.eclipse.org/r/30695
Tested-by: Hudson CI
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-07-29 17:09:54 -04:00
Thomas Corbat
0544d1d000 Bug 440231 - NullPointerException with Synthetic if-elseif-statement
Added null checks to the ASTWriter.doNodesHaveSameOffset and a test case
reproducing the problem.

Change-Id: I538806cf32683f5689dbf582b7a7dcb6615a899e
Signed-off-by: Thomas Corbat <tcorbat@hsr.ch>
Reviewed-on: https://git.eclipse.org/r/30334
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-07-25 02:26:39 -04:00
Marc Khouzam
f94e6d3aad Increment parent pom version
Change-Id: Icd9b413ce754a83f43ee56976bc52ee3edb9b3f5
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2014-07-22 16:05:46 -04:00
Sergey Prigogin
d8154bd340 Inremented branding plugin version to 8.5 2014-07-21 17:39:01 -07:00
Thomas Corbat
0f355b1929 Fixed tautologic comparison in ASTFileLocation.equals()
Signed-off-by: Thomas Corbat <tcorbat@hsr.ch>
2014-07-17 12:55:12 +02:00
Thomas Corbat
7fa06c6dc5 Added Anders Dahlberg to the copyright header of AST2CSpecTest. 2014-07-16 08:42:01 +02:00
qdagans
91ee2851a4 Bug 84144 - [Parser2] GCC: labels as values
Cleanup test cases in AST2CSpecTest

Signed-off-by: qdagans <anders.xb.dahlberg@ericsson.com>
Change-Id: I4d546019a2ec61418d33d7b0cb1e888e609b4006
Reviewed-on: https://git.eclipse.org/r/29830
Tested-by: Hudson CI
Reviewed-by: Thomas Corbat <tcorbat@hsr.ch>
Tested-by: Thomas Corbat <tcorbat@hsr.ch>
2014-07-16 02:37:53 -04:00
Thomas Corbat
f81b783269 Bug 84144 - Occurrence marking for label references. 2014-07-10 13:20:38 +02:00
Thomas Corbat
6dff32c96a Bug 84144 - ASTWriter extension for IGNUASTGotoStatements and label
reference operator. Including tests.

Signed-off-by: Thomas Corbat <tcorbat@hsr.ch>
2014-07-10 10:26:51 +02:00
Thomas Corbat
4f239a093a Cosmetics and refactoring related to commits of bug 84144
Signed-off-by: Thomas Corbat <tcorbat@hsr.ch>
2014-07-10 09:28:20 +02:00
qdagans
bf0ac98464 Bug 84144 - [Parser2] GCC: labels as values
Add support for GNU goto label references.

"http://gcc.gnu.org/onlinedocs/gcc-3.3.2/gcc/Labels-as-Values.html#Labels%20as%20Values
GCC extensions to C allow taking the address of labels. These addresses can be used in a goto statement where any expression of type void * is allowed:

foo:
  void* labelPtr = &&foo;
  goto *labelPtr;", comment from Andrew Niefer

Add new classes and necessary changes in existing classes to support the above.
Updated to not change API.

Signed-off-by: Anders Dahlberg <anders.xb.dahlberg@ericsson.com>
Change-Id: Ibb69ce7748f201c15bdf2da05348c157cdd5aaae
Reviewed-on: https://git.eclipse.org/r/29574
Tested-by: Hudson CI
Reviewed-by: Thomas Corbat <tcorbat@hsr.ch>
Tested-by: Thomas Corbat <tcorbat@hsr.ch>
2014-07-09 05:10:09 -04: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
qdagans
8649b65570 Bug 84144 - [Parser2] GCC: labels as values
Add support for GNU goto label references.

"http://gcc.gnu.org/onlinedocs/gcc-3.3.2/gcc/Labels-as-Values.html#Labels%20as%20Values
GCC extensions to C allow taking the address of labels. These addresses can be used in a goto statement where any expression of type void * is allowed:

foo:
  void* labelPtr = &&foo;
  goto *labelPtr;", comment from Andrew Niefer

Add new classes and necessary changes in existing classes to support the above.

Change-Id: I60b64957af3fdfd5463e89c2a36eea13bd280887
Signed-off-by: qdagans <anders.xb.dahlberg@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/28826
Tested-by: Hudson CI
Reviewed-by: Elena Laskavaia <elaskavaia.cdt@gmail.com>
2014-07-05 20:34:13 -04:00
Sergey Prigogin
fbca073d79 Navigate to template definition by default. 2014-06-25 15:07:34 -07:00
Sergey Prigogin
e6b392ffbc Bug 438114 - Friend function declaration is not reconciled with other
declarations
2014-06-24 20:20:54 -07:00
Sergey Prigogin
820b901b69 Cosmetics. 2014-06-24 20:17:28 -07:00