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

609 commits

Author SHA1 Message Date
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
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
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
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
David Inglis
2a1f0dae78 removed not needed methods 2003-09-03 20:34:14 +00:00
David Inglis
0e9cc685a8 remove preference read/saving not needed 2003-09-03 20:33:31 +00:00
Alain Magloire
a5e90c433e Method to save the ErrorParsers ids. 2003-09-03 18:41:02 +00:00
John Camelon
6354f078c0 CORE
Fixed bug41445 - QualifiedLookup succeeds where it should fail.  
TESTS
	Added testBug41445() to CompleteParseASTTests.java.
2003-09-03 15:16:03 +00:00
John Camelon
7ce8f5c91e Patch for Andrew Niefer.
Added support to the parser symbol table for namespace aliases.

tests:
        added ParserSymbolTableTest.testNamespaceAlias()
        added ParserSymbolTableTest.testUsingNamespaceAlias()
2003-09-02 20:05:20 +00:00
Alain Magloire
58fba52bad updated 2003-09-01 21:50:10 +00:00
Alain Magloire
c91658733d Fix typo in class signature 2003-09-01 21:49:15 +00:00
Alain Magloire
77e2dfd706 Remove unused imports 2003-08-31 23:59:01 +00:00
Alain Magloire
c27dc686af updated. 2003-08-31 23:54:48 +00:00
Alain Magloire
f1966eafe3 Change implementation to save extension form the
CCorePlugin
2003-08-31 23:54:38 +00:00
Alain Magloire
9e854093ca Add method to save ErrorParsers 2003-08-31 23:54:16 +00:00
Alain Magloire
b9102ce931 updated 2003-08-31 04:46:02 +00:00
Alain Magloire
19076f897f New extension point for the ErrorParsers 2003-08-31 04:42:14 +00:00
Alain Magloire
87d6f1fbfa Added method to retrieve and instanciate the Error Parser. 2003-08-31 04:41:53 +00:00
John Camelon
f8a656fbcf Core:
-#39961: Template parameter signature documentation 
UI: 
        -#39968: Template Union missing an icon
2003-08-28 19:49:37 +00:00
Alain Magloire
2659282961 updated. 2003-08-28 19:20:16 +00:00
Alain Magloire
d5cb7e7ada Check if the Resource is valid. 2003-08-28 19:20:05 +00:00
John Camelon
55bd1089ae Core :
- Added resolving references in a method's qualified name in Complete parse mode. 
        Example (.cpp file ): 
        The method "A::B::C::aMethod(){};" used to be an IASTFunction, with name = "A::B::C::aMethod". 
        Now is an IASTMethod, with name = "aMethod", and references to class A, class B and class C. 

        - Added the checking for "isConstructor" and "isDestructor" for an IASTMethod in complete parse mode.
2003-08-28 15:50:31 +00:00
John Camelon
cb951980f4 CORE
Fixed bug39535 - Parser fails on namesapce aliases
	
TESTS
	Moved bug39535 from failedTests to quickParse success tests.
2003-08-28 15:02:52 +00:00
Doug Schaefer
8f3b6007eb Patch for Bogdan Gheorghe:
Indexer 
======= 
- Changed file extensions to prevent header files from being indexed (they will be indexed via inclusion) 

Search 
======= 
- Added scope checking to MatchLocator 
- Modified CSearchPattern to allow for destructor searches 
- Added debug tracing statements to SearchEngine 
- Added debug tracing statements to MatchLocator 

UI 
== 
- Converted CTags based OpenOnSelectionAction to OpenDeclarationsAction. For now, we do a search on all types with the selected name. 
- Hooked up OpenDeclarationsAction to search engine 

General 
======= 
- Modified start up code to set debug trace options (which are defined from the launcher). I've added the following trace components: 
        - dependency 
        - indexer 
        - indexmanager 
        - matchlocator 
        - model 
        - search 
        - parser 

- Added trace debug statements to CModelBuilder 
- Modified Util.java to make use of IDebugLogConstants
2003-08-26 19:16:03 +00:00
John Camelon
d66610119d Placement New Code Review w/Hoda. 2003-08-25 18:19:55 +00:00
John Camelon
c64fbade9d Modified the IASTFactory to take three expression lists for the createNewDescriptor() instead of just one.
They are : newPlacementExpressions, typeIdExpressions, and newInitializerExpressions.
2003-08-25 15:41:30 +00:00
John Camelon
4f65c461c3 CORE
Fixed bug39526 - Parser doesn't handle initializers correctly.  
	Fixed bug41520 - FullParse : Constructor Initializer is mistaken as function prototype 
	
TESTS
	Moved testBug39526() from ASTFailedTests.java to QuickParseASTTests.java.
	Moved testBug41520() from FullParseFailedTests.java to CompleteParseASTTest.java
2003-08-25 15:19:06 +00:00
John Camelon
c55ebd35d1 Patch for Bogdan Gheorghe. 2003-08-25 13:55:32 +00:00
John Camelon
7c632b299c Removed debugLog statements from Parser.java. 2003-08-25 12:23:13 +00:00
John Camelon
2f398f309b CORE
Fixed Bug 39530 - More problems with initializers. 
	Fixed Bug 37424 - Crash when opening big files
	Refactored pointerOperators & cvQualifiers to not throw backtracks in optional case.  
	Added tracing support to cdt.core plugin via .options file.  

TESTS
	Added QuickParseASTTests::testBug39530().
2003-08-25 12:19:43 +00:00
John Camelon
94b8758d5c patch to keep CDT working for Java 1.3 2003-08-25 11:54:00 +00:00
Doug Schaefer
eaab6a9736 Patch for Hoda Amer:
Core: 
        -Solutions to bug#38985 & bug#38986 
        In IStructure: 
                getField(String)                Implemented 
                getFields()                        Implemented 
                getMethod(String)                Implemented 
                getMethods()                Implemented 
                isAbstract()                Implemented 
                getBaseTypes()                Has been replaced by getSuperClassesNames() 
                getAccessControl(int)        Has been replaced by getSuperClassAccess(String name) 

        - Added some methods to IMethodDeclaration, namely: 
        isFriend(), isInline(), isVirtual(), and isPureVirtual(). 

Core Tests: 
        Enabled some tests in the IStructureTests, namely: 
        testGetFields(), testGetField(), testGetMethods(), testGetMethod(), 
        testIsAbstract(), testGetBaseTypes(), and testGetAccessControl().
2003-08-25 04:20:47 +00:00
Doug Schaefer
a80d2f71de Patch for Bogdan Gheorghe:
Indexer 
- Added additional file extensions to supported indexed files 
- Changed the parser instantiation to pass in retrieved build info 
- Added function decl index entry based on enterFunctionBody 
- Added method decl index entry based on enterMethodBody 
- Added forward decl refs 
- Added debug tracing to AbstractIndexer 

Search 
- Changed matching and reporting functions to handle nodes 
  of type IElaboratedTypeSpecifier 

UI 
- Added a search dialog pop up item to the context menu for the 
  CEditor and CContentOutlinePage
2003-08-20 20:53:50 +00:00