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

1197 commits

Author SHA1 Message Date
John Camelon
939af66d2e Patch for Andrew Niefer
partial fix for bug 43664 - Search cannot report matches outside of 
workspace.

This enables non-ui reporting of matches outside the workspace.  So 
clients of search, like code assist will get external results.

We still need a resource to report a match to the search view so no 
external matches in the UI.

core:
Modify Matchlocator to not try and create a link if we have no resource, 
instead just use the path

core.tests:
added testNoResourceSearching() to OtherPatternTests

ui:
modify CSearchResultCollector to accept matches without resources, but not 
attempt to report
them in the UI.
* src/org/eclipse/cdt/internal/ui/search/CSearchResultCollector.java
2003-09-25 19:51:50 +00:00
John Camelon
ba0a125734 Patch for Hoda Amer
Core: 
        - Last part of solution to bug#42453: Expression result types not computed 
        Added the handling of POSTFIX_TYPENAME_IDENTIFIER 
        Completed bug#43221: POSTFIX_TYPENAME_IDENTIFIER not implemented 
        - Solution to bug#43644 : 6 triangle icons appearing in outline viewer when typing ... 
Tests: 
        Enabled CompleteParseASTExpressionTest.testPostfixTypenameIdentifier() 
UI: 
        Solution to bug#43646: Code Assist won't work if missing end bracket
2003-09-25 19:40:39 +00:00
Doug Schaefer
f13c66b5ca Fix for Sean. 2003-09-25 19:14:50 +00:00
John Camelon
9cd42c12c5 Patch for Hoda Amer
Core: 
        Partial solution to bug#42453: Expression result types not computed 
        Added the handling of the NEW_TYPEID, CASTEXPRESSION, POSTFIX_DYNAMIC_CAST, 
        POSTFIX_REINTERPRET_CAST, POSTFIX_STATIC_CAST, and POSTFIX_CONST_CAST 

Tests: 
        Added testNewTypeId(), testCastExpression(), testPostfixDynamicCast(), 
        testPostfixReinterpretCast(), testPostfixStaticCast(), and testPostfixConstCast() 
        to CompleteParseASTExpressionTest.
2003-09-25 14:26:33 +00:00
Alain Magloire
33cfdee33a updated. 2003-09-25 14:10:30 +00:00
Alain Magloire
4464c93627 New Help ids for the CEditor Preference Page 2003-09-25 14:09:59 +00:00
David Inglis
74fd9f04c9 added seach to default c perscetive 2003-09-25 13:45:28 +00:00
David Inglis
d1e8e5afbd new class wizard enablement should only be on ccnature 2003-09-25 13:45:12 +00:00
John Camelon
a6efadb09a CORE
Partial fix for Bug 43221 : POSTFIX_TYPENAME_IDENTIFIER not implemented 

TEST
	Updated CompleteParseASTExpressionTest::testPostfixTypenameIdentifier() for Hoda.
2003-09-25 13:33:33 +00:00
Doug Schaefer
5f524fb890 Patch for Sean Evoy:
To help out with bug 43051, I have changed the behaviour of the managed 
builder when asked for scanner information. The search feature needs the 
absolute paths to files. Since all the user-specified include paths 
specified in the managed builder UI are either absolute or relative to the 
build project directory, it is relatively easy to convert everything to 
absolute paths before answering the clients of this information.
2003-09-25 03:19:31 +00:00
John Camelon
a317cc46f9 CORE
Fixed Bug 43106 : Symbol Table support needed to resolve types
	Fixed Bug 43375 : isExtern not returning true for extern declarations 

TESTS
	Added testBug43375() to CompleteParseASTTest. 
	Moved testConditionalExpressionWithReferencesB_Bug43106 from failed tests to passed tests. 
	Moved testPMDotStar() and testPMArrowStar to failed tests w/defect number 43579.
2003-09-24 17:26:45 +00:00
Alain Magloire
18908c982d updated. 2003-09-24 15:07:43 +00:00
Alain Magloire
7c16d44639 remove on unused method 2003-09-24 15:07:30 +00:00
Alain Magloire
b91a9b0446 Remove unuse method parser(Inputstream in) 2003-09-24 15:02:32 +00:00
Alain Magloire
56ca1ac8d7 updated 2003-09-24 14:48:29 +00:00
Alain Magloire
4a9b8b97ef NPE when monitor cancel change the other
of the checkline(true) for the flushing.
2003-09-24 14:48:19 +00:00
Alain Magloire
f683a336e5 File and Folder Wizard removed in plugin.xml
not needed.
2003-09-24 14:22:29 +00:00
Doug Schaefer
e09b94f945 Patch for Sean Evoy:
This patch adds a "hook" for F1 help on the new managed project wizard 
configuration selection page. It also adds functionality to the managed 
build project property page to allow the user to edit the make command and 
build artifact name. They can also add and delete configurations from a 
target. There is no support for adding another target to a project in this 
release.
2003-09-24 14:20:49 +00:00
David Inglis
366e74c5bc IBinary speed up
CDescriptor fix #43533
CExtension - null removes attributes
2003-09-24 13:55:26 +00:00
John Camelon
18e0534368 Patch for Andrew Niefer
core:
- modifications to CSearchPattern.scanForNames()
- add getSimpleName to MethodDeclarationPattern

tests:
- Added FunctionMethodPatternTests.testBug43498()
2003-09-24 13:36:50 +00:00
John Camelon
02c194aaf4 CORE
Fixed Bug 43084 : need to restructure TypeId to allow dynamic_cast<> type expression references.
	Fixed Bug 39504 : sizeof-expressions are not handled properly

TESTS
	Replaced ASTFailedTests::testBug39504A() with CompleteParseASTTest::testBug39504(). 
	Moved testPostfixTypeIdExpression2() && testPostfixTypeIdTypeId2() to CompleteParseASTExpressionTest. 
	Restructured expression reference tests so that the order of arrival will not cause JUnit failures.
2003-09-23 22:58:34 +00:00
John Camelon
ef856ea3e1 Patch for Hoda Amer
Core: 
        Solution to bug#43373: No reference to static member in definition  (Major) 
        Solution to bug#43371: constructor incorrectly marked private (Normal) 
Tests: 
        Added CompleteParseASTTest.testBug43373() 
        Added QuickParseASTTests.testBug43371() 
UI: 
        Solution to bug#43143: Naming of Code Assist Menus/Tab are not consistent 
        changed both names to Content Assist. No tests provided.
2003-09-23 20:46:22 +00:00
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