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

1336 commits

Author SHA1 Message Date
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
Doug Schaefer
b3898357e2 Patch for Bogdan:
UI 
- This patch changes the search context menu in the CEditor, CContentPage and CView: 
    Search > C/C++ Search... 
                File Search > Workspace 
                             WorkingSets 
- C/C++ Search pops up the search dialog with the chosen element filled out. 
- File Search does a text based file search on the Workspace or a chosen WorkingSet 

Core 
- Added some error checking to the dependency generator.
2003-09-11 17:13:03 +00:00
John Camelon
32f2565b50 Patch for Hoda Amer
- Removed any reference to jdt.ineternal package for property files 
        in TextManipulationMessages and CUIMessages 
        - Added a CUIMessages.properties file to org.eclipse.cdt.internal.ui
2003-09-11 14:58:30 +00:00
John Camelon
64911fc186 Patch for Sean Evoy
Hi All,
Details are in the change log, but this patch contains work that partially 
implements incremental build. There are 2 major use cases not implemented: 
full rebuild on project settings change and properly handling header file 
changes. Both problems require build model work, so I will deliver that 
functionality in another patch. There are also fixes for bugs 41412 and 
42735.

As always, I have run the JUnit tests on Solaris (Motif) and Linux (Gtk).
2003-09-11 14:46:18 +00:00
Doug Schaefer
5a1119fd18 Got rid of the old parser. 2003-09-10 14:26:08 +00:00
John Camelon
d4cfca7836 Patch for Hoda Amer
Core: 
        - Solved the double reference problem 
        - solution to bugs #42822, #42823, & #42822B 

Tests: 

        Moved three failed tests (bugs #42822, #42823, & #42822B) 
        from FailedCompleteParseASTExpressionTest to CompleteParseASTExpressionTest
2003-09-10 13:21:53 +00:00
John Camelon
f2feec1e3c Patch for Bogdan Gheorghe
Here is a patch that should get the build going again...
2003-09-09 20:13:37 +00:00
John Camelon
7ff5917dad Patch for Hoda Amer
CORE
	-Added more IASTExpression.Kind handling to CompleteParseASTFactory.getExpressionResultType()	
TESTS
	-Seperated the Expression result type test in a new file : completeParseASTExpressionTests.
	-Added more test cases for simple types.
	-Added FailedCompleteParseASTExpressionTest for failed reference tests.
2003-09-09 20:01:23 +00:00
Alain Magloire
9f964e420c Fix ClassCastException. 2003-09-09 19:22:54 +00:00
John Camelon
93b627eabc CORE
Updated ScannerException to be more precise and include more information.  
	Updated Parser to be more careful of how it handles particular Scanner errors in COMPLETE_PARSE mode.  
	
TESTS
	Updated ScannerTestCase to keep up to date wrt ScannerException updates.
2003-09-09 18:02:40 +00:00
John Camelon
8f627892aa Core
- Hooked up the Indexer to the dependency tree. Everytime a header file 
gets modified, the including source files get reindexed. 
- Automated dependency calcuations - each time a file gets modified, its 
tree gets updated. 
- Added error logging via the PDE Error Log (Views->PDE Runtime->Error 
Log) - the indexer reports unsuccesful index attempts and the preprocessor 
reports unsuccesful inclusion resolution attempts 

UI 
- Changed the names on the search popup mens
2003-09-09 17:54:02 +00:00
John Camelon
ceee55836e Patch for Andrew Niefer
Core :
        Index
        Enumerator references
         - Added createEnumeratorFullyQualifiedName in AbstractIndexer
         - Added addEnumeratorReference in AbstractIndexer
         - implemented acceptEnumeratorReference in SourceIndexerRequestor

        Search
        pattern matching on function parameters:
         - modified scanForParameters in CSearchPattern
         - added getParamString in CSearchPattern
         - modified matchLevel in MethodDeclarationPattern
 
        Enumeration references
         - modified acceptEnumeratorReference in MatchLocator

core.tests:
        Modified resources/search/classDecl.cpp
         - to include more function declarations to test parameter 
matching
         - to include an enumerator reference to test enumerators
        Added testMethodDeclarationParameterMatching to 
FunctionMethodPatternTests.java
        Added testEnumeratorReferences to OtherPatternTests
2003-09-09 15:46:44 +00:00
John Camelon
8e62beb552 CORE & UI
Made scoping support more robust in CompleteParse mode. 
	Refactored ISourceElementRequestor (enter|exit)CodeBlock() to take IASTCodeScope rather than IASTScope. 
	Removed the now obsolete DOM.  
	Added enumerator references to ISourceElementRequestor.
	
TESTS
	Added CompleteParseASTTest::testThrowStatement(), testScoping(), testEnumeratorReferences().
	Removed LineNumberTest source as it is obsolete.
2003-09-08 19:17:53 +00:00
John Camelon
cecd8598a0 Patch for Andrew Niefer
Core : 
- Create ParserLanguage.java
- Modified ParserFactory functions to take ParserLanguage as parameter
- Modifier Parser, Scanner & ParserSymbolTable to use new ParserLanguage 
class
- Update call to ParserFactory in Indexer, Search, CModelBuilder & 
Dependency Tree

Core.tests:
- Updated calls to ParserFactory to specify which language to use

UI:
-CStructorCreator uses the parser, modified call to ParserFactory to 
specify CPP language.
  (this is the same behaviour as before)
2003-09-08 18:11:00 +00:00
David Inglis
b871d57ad8 added scheme for CProject extension 2003-09-08 14:03:15 +00:00
John Camelon
6c33540aab Patch for Hoda Amer
Core : 
    Added references to variables with pointers in solution of bug#42453:Expression result types not computed 
Tests: 
        Added tests to CompleteParseASTTest to test the expression result type for function calls that reference variables with pointers (bug#42453).
2003-09-08 12:31:30 +00:00
John Camelon
8b12ea5492 CORE
Continue to add support for parsing within function bodies.  
	Add workaround for 1.2 for inline function declaration-before-use chicken-and-egg.
	
TESTS
	Added CompleteParseASTTest::testSimpleIfStatement(), testSimpleWhileStatement(). 
	testSimpleSwitchStatement(), testSimpleDoStatement().
2003-09-05 19:24:11 +00:00
John Camelon
d1d3dec2fe Patch for Andrew Niefer
Core:
- fix patterns & indexing for Enumerators

Core.Tests:
- Added testEnumerators to OtherPatternTests.java
- Modified resources/search/classDecl.cpp to include some enumerators

UI:
- enable Selected Resources scope
- populate dialog base on selection when opened from outline view
- fix small bug that found namespaces when searching for enumerations
- tweak sorting by path to consider line number second
2003-09-05 18:31:52 +00:00
Alain Magloire
4a6ab5ef38 updated. 2003-09-05 16:23:23 +00:00
Alain Magloire
553b984d2f Wrap the master fd, since they are share by two streams 2003-09-05 16:23:11 +00:00
John Camelon
63ed749357 Patch for Hoda Amer
- Added references to variables in solution of bug#42453:Expression result types not computed 
        - Solution to bug#42560: Class Cast Exception during Method definition
2003-09-05 15:23:17 +00:00
David Inglis
dec04e4d8b fixed exception when no error parsers are present 2003-09-05 14:37:20 +00:00
John Camelon
d557f7864c CORE
Fixed NPE on nested declarations in code blocks.  
	
TESTS
	Updated CompleteParseASTTest::testSimpleForLoop()
2003-09-05 14:20:15 +00:00
John Camelon
ae96e590ff Patch for Andrew Niefer
Fixed NPE in CompleParseASTFactory.createClassSpecifier caused by a null 
name.
2003-09-05 13:45:16 +00:00
John Camelon
619b617056 CORE/UI
First pass of parsing function bodies with X-Reference information.
    Updated IASTFactory/ISourceElementRequestor to include IASTCodeScope
    constructs, clients should keep this in mind and update their implementations.

TESTS
    Updated ASTFailedTests::testBug39702() to fail more accurately.
    Added testSimpleFunctionBody(), testSimpleForLoop() to CompleteParseASTTest.java.
2003-09-04 20:47:05 +00:00
David Inglis
394aa2311a rename 2003-09-04 20:25:21 +00:00
Alain Magloire
bd3f9a8b37 Updated. 2003-09-04 19:07:21 +00:00
Alain Magloire
b08d8585ab Faulty login when checking the BuildConsole preferences. 2003-09-04 19:07:07 +00:00
David Inglis
8b7bd775ee new c option block when we move builder out of cdt 2003-09-04 17:39:43 +00:00
David Inglis
725c78475c - extern strings 2003-09-04 17:38:57 +00:00
David Inglis
c96aeb760e - extern strings
- fixed tab folder visiblity problem
2003-09-04 17:38:46 +00:00
Alain Magloire
962a76717e updated. 2003-09-04 15:37:20 +00:00
Alain Magloire
4baaaf3c10 Fix PR 42501.
Make: *** Warning: File .. has modification time in the future

This is now a warning in the Task bar.
2003-09-04 15:37:08 +00:00
Alain Magloire
68beea8757 monitor.setCancelled() is accessing the UI thread
which is illegal and can throw an SWT illegal access
exception.  IProgressMonitor should probably be fix ..
but meanwhile ...
2003-09-04 15:36:22 +00:00
John Camelon
1c6c93560a Patch for Hoda Amer
Core: 
        - Changed the ASTExpression of the complete package to store the 
        whole ITokenDuple for the typeId instead of just the string. 
        - Changed the ASTExpression in both quick and complete packages and 
        deleted the "id" parameter. 
        - Added partial solution to bug #42453: Exception result types not computed. 
        Now they are computed for simple types only. 
Tests: 
        Call to ASTExpression getTypeId() changed to getTypeIdString(). 
UI: 
         Solution to bug#42414 :Extraneous semi-colons in generated class methods
2003-09-04 14:39:20 +00:00
John Camelon
5022fcb844 Patch for Andrew Niefer 2003-09-04 14:13:02 +00:00
John Camelon
b8321abb0a Patch for Andrew Niefer
- set default C++ search sort order to be by path
- modified search dialog to use checkboxes instead of radio buttons

SearchFor buttons are now organized like this:
        Class / Struct          Function        Variable
        Union                   Method          Field
        Enumeration             Namespace       Any Element

When multiple buttons are selected, they are combined using the Or 
Pattern.
2003-09-04 13:50:42 +00:00
David Inglis
d6a9483ed2 fixed parser block 2003-09-04 03:03:45 +00:00
David Inglis
f6e061b3e0 added shared pref key for error parsers 2003-09-04 02:59:23 +00:00
John Camelon
45cfbc6cba Patch for Andrew Niefer
fix bug in PST that causes parse failure on > 2 constructors for a given 
class
Modified ParserSymbolTableTest.testConstructors to test > 2 constructors
2003-09-03 20:57:51 +00:00