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

1175 commits

Author SHA1 Message Date
Alain Magloire
4695acb1d8 Refactoring of LocalSelectionTransfer to CLocalSelectionTransfer. 2003-09-23 19:50:48 +00:00
Alain Magloire
1a59094cd1 Remove warnings. 2003-09-23 19:49:56 +00:00
John Camelon
9eab565dd0 Patch for Bogdan Gheorghe
Fixed  Bug 42685, Bug 43474. 

This patch: 
  - removes the old CTags Indexer 
  - removes the remaining Indexer block UI item under  Project Properties 
  - enables the Indexer on all projects
2003-09-23 15:17:20 +00:00
David Inglis
183a84fce3 help ids added for error parser page and binary parser page 2003-09-23 14:40:12 +00:00
John Camelon
3e361ae186 Core :
Solution to bug#43162 : Code Assist not showing the right return value: 
        Saved a function return value string in the BasicSearchMatch object. 
        Created a new package org.eclipse.cdt.internal.core.parser.util and 
        added ASTUtil class with static methods to help convert an ASTFunction 
        return type from IASTAbstractDeclaration to String. Note that this was 
        previously implemented in the CModelBuilder. I just moved it to a common 
        library for others (BasicSearchMatch) to use. 
UI: 
        Solutions to 
        bug#43162 : Code Assist not showing the right return value 
        Bug#43145 : foo function still showing in Code Assist even if "f" is deleted 
        Bug#42810 : Code Assist adding characters after pressing <enter> 
        Bug#42861 : Code Assist should be case insensitive. 

Tests: 
        Solution to bug#43162 : Code Assist not showing the right return value. 
        Solution to Bug#42861 : Code Assist should be case insensitive. 
        Modified the CompletionProposalsTest to include upper and lower cases 
        and to include functions with different return values.
2003-09-23 13:54:28 +00:00
John Camelon
e806c7013d Patch for Andrew Niefer
core : 
  - modified MatchLocator to not report local declarations when boolean is 
set
  - modified SearchEngine.search to take an additional parameter 
"excludeLocalDeclarations"

core.tests:
  - modified resources/cfiles/CompletionProposalsTestStart.cpp
  - modified CompletionProposalsTest.testCompletionProposals
  - updated calls to SearchEngine.search

ui:
  - update calls to SearchEngine.search.  CodeCompletion passes true for 
excludeLocalDeclarations
2003-09-22 18:38:30 +00:00
John Camelon
6e61fb28d8 Patch for Andrew Niefer
- associate context ID ICHelpContextIds.C_SEARCH_PAGE with the CSearchPage dialog
- add C_SEARCH_PAGE to the ICHelpContextIds.
2003-09-22 15:17:30 +00:00
Alain Magloire
149fe5aa01 disable the task Properth and preference page 2003-09-22 14:41:49 +00:00
Alain Magloire
0be6729dc5 Contribution from Keith Campbell to add better support for
Drag & drop.
2003-09-22 04:31:51 +00:00
Alain Magloire
0fb8fc18c1 updated 2003-09-22 03:24:17 +00:00
Alain Magloire
6695a014e9 add support for '#' style of comment. Pr 41960. 2003-09-22 03:24:00 +00:00
Doug Schaefer
03576ad8a7 Patch for Sean Evoy:
- Since I forgot to do this last release, I am removing the
original managed build model schema and extension
points from the cdt core and ui projects.
2003-09-22 02:38:47 +00:00
Doug Schaefer
0abb42e093 Patch for Sean Evoy:
- I have removed the binary parser selection from the
new managed project wizard and hard-coded the proper
parser ID in the plugin spec for the build model. There is
an updated JUnit test that verifies this change to the
build model. 
- There is also a fix for the library problem on *nix. The
makefile pattern was also changed slightly to better
capture the dependencies between the build target and
the outputs of other managed projects.
2003-09-22 02:32:08 +00:00
David Inglis
7c7237d20c remove make view ID 2003-09-19 20:46:54 +00:00
John Camelon
8c79a22ec0 Patch for Andrew Niefer
Core :
        - modified Symbol table interfaces to use List & Map instead of 
LinkedList and HashMap
        - fixed warnings in ParserSymbolTable
        - fixed bug43106 - Symbol Table support needed to resolve types
        - fixed bug43156 - require ability to add implicit inheritance 
copy constructor
        - fixed bug43159 - TypeInfo.equals() not working properly
        - fixed bug43238 - Postfix_Subscript expressions confuse function 
resolution

Tests:
        - removed testConditionalExpression_Bug43159 from 
FailedCompleteParseASTExpressionTest
          and uncommented it (testConditionalExpression) in 
CompleteParseASTExpressionTest
        - uncommented the following tests in 
CompleteParseASTExpressionTest :
            testPostfixSubscript, 
            testPostfixSubscriptA, 
            testPostfixSubscriptB,
            testPostfixSubscriptWithReferences
        - updated ParserSymbolTableTests to use new addOperatorExpression 
function
        - added testDerivedReference, testAddCopyConstructor to 
ParserSymbolTableTests
        - fixed warning in ClassDeclarationPatternTests
2003-09-19 16:00:53 +00:00
David Inglis
5484799800 small change... isValild should always start off as true. 2003-09-18 20:30:26 +00:00
John Camelon
6a5af0ed88 Patch for Hoda Amer
UI: 
      The menu item could not be hidden since the "New" menu belongs to the "C Perspective". 
The wizard was disabled for C Projects.
2003-09-18 19:46:12 +00:00
David Inglis
433976a043 added workbench build/rebuild to content menu 2003-09-18 18:25:39 +00:00
John Camelon
433a4ca106 *** empty log message *** 2003-09-18 17:56:47 +00:00
John Camelon
43d8ca642d Patch for Hoda Amer
Core: 
         In completeParseASTFactory.getExpressionResultType(): Added  the support 
         for expression types: PM_DOTSTAR, PM_ARROWSTAR, CONDITIONALEXPRESSION
 Tests: 
         Added more success test cases to CompleteParseASTExpressionTest 
         and more failure test cases to FailedCompleteParseASTExpressionTest 
         in testing PM_DOTSTAR, PM_ARROWSTAR, CONDITIONALEXPRESSION
2003-09-18 15:22:48 +00:00
John Camelon
51a73af86d Patch for Andrew Niefer
core :
        - add parameter references to index
        - modify CharOperation.match to allow escaping wildcards 
(bug43063)
        - modify AbstractIndexer.bestPrefix to handle wildcard escaping in 
name (bug43063)
        - modify CSearchPattern to handle escaping wildcards (bug43063)
        - modify enterFunctionBody and enterMethodBody to fix bug42979
        - search for Parameter References
        - added setThrowExceptionOnBadCharacterRead to IScanner to help 
with wildcard bug43063

tests:
        - modified resources/search/classDecl.cpp & include.h to include 
some operators
        - added testOperators_bug43063_bug42979() to 
MethodDeclarationPatternTests
        - added testParameterREferences to OtherPatternTests
2003-09-18 15:15:09 +00:00
Alain Magloire
05fddd74ed Fix classpath after make refactoring. 2003-09-17 16:00:24 +00:00
David Inglis
9f68b6cf5e update standard make tests 2003-09-17 03:07:51 +00:00
Alain Magloire
2d9d50bb2e First draft on BinaryParserBlock to add dynamic
UI contribution for differen BinaryParserPage
extension.
2003-09-17 02:18:16 +00:00
Alain Magloire
2c1ef469c6 new Binary Parser to add flexibilit to change
commands like addr2line. Still work in progress
2003-09-17 02:11:24 +00:00
David Inglis
f3d847d96a remove unused builder will move other cbuilder later 2003-09-16 22:24:09 +00:00
David Inglis
9362cf3ae8 deprecate ties to old builder from nature and core plugin 2003-09-16 22:07:34 +00:00
Doug Schaefer
c7a74ef049 Patch for Sean Evoy:
- The fix is for bug 43017, something I need anyway. The 
incremental build work is to make a full rebuild happen when the build 
settings change through the UI. Tested the changes on Linux and Win32.
2003-09-16 21:27:58 +00:00
David Inglis
5d90b3e85b removal of old make ui componets (wizards/views/actions/properties) 2003-09-16 20:45:41 +00:00
David Inglis
5deee229dd fixed bug when setting selected parser. 2003-09-16 18:35:43 +00:00
John Camelon
c3f68d1518 Patch for Bogdan Gheorghe
This patch addresses a NPE that pops up on linux while running the 
indexer portion of tests of the core suite.
2003-09-16 17:31:43 +00:00
John Camelon
9b9bf1a17c IASTFunction::previouslyDeclared implementation 2003-09-16 15:34:43 +00:00
John Camelon
6f580b7c1a Patch for Hoda Amer
Core: 
        In completeParseASTFactory.getExpressionResultType(): Added the support 
        for expression type PRIMARY_THIS. 
        In createMethod(): changed the scope of a method definition to point to 
        the parent class. 

Tests: 
    Added CompleteParseASTExpressionTest.testPrimaryThis()
2003-09-16 14:45:39 +00:00
John Camelon
61976f1b51 CORE
Fixed Bug 39556 : 'restrict' qualifier is not supported (ANSI C99) 
	Fixed Bug 43126 : ISourceElementRequestor.acceptParameterReference accesses internal class
	Fixed Bug 43062 : Outline is confused on operator methods containing spaces 
	Cleaned up some warnings in the parser. 

TESTS
	Moved ASTFailedTests::testBug39556() to QuickParseASTTests.
	Cleaned up some warnings in parser tests.
2003-09-15 22:50:59 +00:00
John Camelon
994113f274 Patch for Niefer Andrew
Core: 
bug43106 - added getConditionalOperand to ParserSymbolTable

Core.tests:
added testGetConditionalOperand_bug43106 to ParserSymbolTableTests
2003-09-15 21:50:00 +00:00
Doug Schaefer
d18851f2d7 Patch for Sean Evoy:
- Move the managed builder to it's own plugins and feature.
2003-09-15 20:44:43 +00:00
John Camelon
780a8096ed CORE
Partially fixed Bug 42979 : Cannot search for operator overloaders 
	

TESTS
	Added CompleteParseASTTest::testBug42979().
	Updated CompleteParseASTTest::testAndrewsExample().
2003-09-15 19:04:48 +00:00
John Camelon
7c1af2188d This patch is for the following bugs:
bug42836 - Navigate/search: prepopulate template classes from Outline...
bug42902 - Search: Cannot find typedef
bug43016 - Search: Cannot find macro declarations
 
 Core:
 - add Typedefs to index as Types with suffix T (bug42902)
         - added addTypedefReference to AbstractIndexer
         - modified bestTypePrefix in AbstractIndexer
 - added TYPEDEF_DECL, TYPEDEF_SUFFIX to IIndexConstants
         - modified acceptTypedefReference in SourceIndexerRequestor
 -Searching for Typedefs: (bug42902)
         - modified setElementInfo in BasicSearchResultCollector
        - added TYPEDEF to ICSearchConstants
         - modified CSearchPattern & ClassDeclarationPattern
         - implemented acceptTypedef* in MatchLocator
 
 Core.tests
 - updated testIndexContents and testIndexAll and added them back into the 
   IndexManagerTests suite
 - modified resources/search/classDecl.cpp to include a typedef
  - added testbug42902_TypeDefs to ClassDeclarationPatternTests
  - updated testNamespaceReferenceInClassBaseClause in OtherPatternTests
 
 UI
 - modified performAction & determineInitValuesFrom in CSearchPage
 - modified getImage in CSearchResultLabelProvider
2003-09-15 17:31:28 +00:00
John Camelon
bc7648a24e Patch for Hoda Amer.
Core: 
        In completeParseASTFactory.getExpressionResultType() 
        - Added the handling of some more expression types. 
        See CompleteParseASTExpressionTest for details. 
Tests: 
    - Added lots of test cases to CompleteParseASTExpressionTest
2003-09-15 13:20:30 +00:00
John Camelon
edd344b8af CORE
Fixed Bug 42985 : Search: Qualified function call is treated as a declaration 
	Fixed Bug 40419 : parser fails on heavily templated expressions 

TESTS
	Created QuickParseASTTests::testBug42985(). 
	Moved LokiFailures::testBug40419() to QuickParseASTTests. 
	Deleted LokiFailures as it was empty.
2003-09-12 19:11:22 +00:00
Alain Magloire
277cbf5b68 updated 2003-09-12 18:51:45 +00:00
Alain Magloire
12b70e7a48 New trace attribute for deltaprocessor 2003-09-12 18:51:34 +00:00
Alain Magloire
7fd434f1b0 Catch NPE when dealing with fileextensions. 2003-09-12 18:51:18 +00:00
Alain Magloire
3652dfc5fc Debug trace for the deltaProcessor 2003-09-12 18:50:45 +00:00
John Camelon
9d95cfa455 CORE
Fixed Bug 43013 : IASTParameterDeclaration does not derive from IASTOffsetableNamedElement
2003-09-12 18:36:36 +00:00
Doug Schaefer
bd9cb0bd51 Patch for Keith Campbell.
- Add missing plugin dependency to eliminate warnings
about undefined extension points.
2003-09-12 18:19:05 +00:00
John Camelon
406f05d071 Patch for Andrew Niefer
This is my previous patch updated with a test and resubmitted.

It fixes some NPE's in function resolution if the parameter information is 
bad. 
It also tries to clarify conversion sequence ranking with comments and 
constants.
2003-09-12 15:08:40 +00:00
John Camelon
ceca2f6558 Patch for Andrew Niefer.
Core:
For bug42815
- Modified ICSearchResultCollector.createMatch to not take a parent 
parameter
- modified BasicSearchResultCollector to create the parent string from the 
fully qualified name of the node
- modified MatchLocator to keep track of most recent declaration for 
reporting purposes
- modified MatchLocator.report to use the most recent declaration

Core.Tests:
- Created search/SearchTestSuite
- Added SearchTestSuite to AutomatedIntegrationSuite and removed the 
individual search tests
- Added testReferencesInFunction to ClassDeclarationPatternTests
- Modified resources/search/classDecl.cpp
- Modified testNamespaceReferenceInClassBaseClause, testMacroPattern, 
testEnumerators, 
  and testEnumeratorReferences in OtherPatternTests to test the Match 
result strings

UI:
- bug42837 - fixed populating search dialog on function declarations
- bug42829 - prepopulated search dialog to any element declarations
- bug42815 - group together search results with same label
- modified CSearchResultLabelProvider to not display the "-" in the search 
label
  while sorting by name if there is no parent.
2003-09-12 13:13:58 +00:00
David Inglis
77a0015c90 deprecated ui componets due move of builders out of the core/ui 2003-09-11 20:44:26 +00:00
John Camelon
322dcaad49 CORE
Fixed Bug 42840 : Search: Cannot find things after double declarations 
	Fixed Bug 42798 : Selected #include <Angled> off by 1 char 
	Fixed Bug 42872 : dynamic cast not parsed properly 
	Partially fixed Bug 39504 : sizeof-expressions are not handled properly 
	Updated SourceElementRequestor callbacks to include IASTParameterReference callbacks. 

UI 
	Updated SourceElementRequestor callbacks to include IASTParameterReference callbacks. 

TESTS
	Added CompleteParseASTTest::testBug42840() & testBug42872().
	Moved testBug39504B(), testBug39505A() & testBug39505B() from failed to QuickParse tests.
2003-09-11 18:06:15 +00:00