1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-07 09:05:24 +02:00
Commit graph

1306 commits

Author SHA1 Message Date
John Camelon
f9e17af94f CORE
Fixed Bug 44838 : exception when resolving parameter references in a constructor 
	Fixed Bug 46165 : fields referenced in constructor chains are not called back upon 
	Fixed Bug 45551 : Macro replacement in #include <file.h> directives 

TESTS
	Added CompleteParseASTTest::testBug44838().  
	Added CompleteParseASTTest::testBug46165().  
	Added ScannerTestCase::testBug45551().
2003-11-06 04:58:09 +00:00
John Camelon
5c13a1c935 CORE
Removed warnings from parser source tree.  
	Removed preliminary task tags support to clean up parser interfaces and implementation.   
	Added preliminary IProblem support to 

UI
	Updated parser clients to use new IProblem strategy.  

TESTS
	Updated parser clients to use new IProblem strategy.
2003-11-05 18:15:01 +00:00
John Camelon
29f63b1333 Added initial code assist/parser interface. 2003-11-03 14:20:38 +00:00
cvs2svn
3cd4819fac This commit was manufactured by cvs2svn to create branch 'cdt_1_2'.
Cherrypick from master 2003-11-03 14:17:15 UTC John Camelon <jcamelon@ca.ibm.com> 'Added initial code assist/parser interface.':
    core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/parser/ast/IASTCompletionNode.java
    core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/parser/ast/IASTNode.java
    debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/sourcelookup/SourceLookupFactory.java
    debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/sourcelookup/DefaultSourceLocator.java
2003-11-03 14:17:16 +00:00
John Camelon
be09974d58 Patch for Andrew Niefer
core:
Fixed Bug 44925 : Search: Elaborated type specifier
Partially Fixed Bug 44510 : C/C++ Search gives wrong results 

ui:
Fixed Bug 44337 : Disabling of "definition" not making sense in Search 
dialog
Fixed Bug 44947 : Navigate from Outline: Enumeration type not 
pre-populated
Fixed Bug 44948 : Navigate via Open Declarations: typedef decl not found
2003-11-03 14:01:00 +00:00
David Inglis
8303a99e46 merge from HEAD for bugs 45734 & 45736 2003-10-30 14:04:08 +00:00
Alain Magloire
a164a003c3 updated. 2003-10-29 17:01:59 +00:00
Alain Magloire
d4daad44a8 Change the scope of some fields. 2003-10-29 17:01:50 +00:00
Alain Magloire
bbb5b11bcf Also release the BinaryContainer of the project 2003-10-29 17:01:36 +00:00
Alain Magloire
b0182c5aa6 updated 2003-10-29 16:41:09 +00:00
Alain Magloire
2408483866 updated. 2003-10-29 16:40:05 +00:00
Alain Magloire
fd938a22ef Fix to make this work for link resources. 2003-10-29 16:39:54 +00:00
Alain Magloire
25d400816f When doing ther reset of the binary parser,
recreate the project.
2003-10-29 16:39:34 +00:00
Doug Schaefer
c94898ad2b Patch for Bogdan: (44366 & 45324)
- Moved off all dependency calculations to the Indexer thread,
created a new UpdateDependency job
- Modified CSearchOperation to only lock the workspace
when tagging resources with markers.
2003-10-27 20:45:09 +00:00
Hoda Amer
2282ebb711 Fix for outline flickers problem 2003-10-27 13:26:10 +00:00
John Camelon
7a757e55c1 CORE
Fixed Bug 39542 : Parser fails on 'struct' parameter types 
         Fixed Bug 39549 : Designated initializers are not supported (ANSI C99) 
         Fixed Bug 39551 : Complex and imaginary numbers are not supported  (ANSI C99) 
         Fixed Bug 45476 : preprocessor macro "defined" not handled  correctly 
         Fixed Bug 45477 : macro redefines prevent further parsing 

 TESTS
         Added testBug45476() to ScannerTestCase. 
         Added testBug45477() to ScannerTestCase. 
         Moved testBug39542() from ASTFailedTests to QuickParseASTTests.
         Moved testBug39549() from ASTFailedTests to QuickParseASTTests.
         Added testCDesignatedInitializers() to CompleteParseASTTests.
         Moved testBug39551A() from ASTFailedTests to QuickParseASTTests. 
         Moved testBug39551B() from ASTFailedTests to QuickParseASTTests. 
         Added testCBool() to QuickParseASTTests. 
         Added testBug39551A(), testBug39551B() and testCBool to  CompleteParseTests.
2003-10-26 18:54:17 +00:00
cvs2svn
d8b28329bd This commit was manufactured by cvs2svn to create branch 'cdt_1_2'.
Cherrypick from master 2003-10-24 17:49:22 UTC John Camelon <jcamelon@ca.ibm.com> 'CORE':
    core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/parser/ast/IASTDesignator.java
    core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ast/ASTDesignator.java
    core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ast/complete/ASTInitializerClause.java
    core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/ast/quick/ASTInitializerClause.java
    core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/CygPath.java
    core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/ICygwinToolsProvider.java
    core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/IToolsProvider.java
    core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/coff/parser/BinaryExecutable.java
    core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/coff/parser/BinaryFile.java
    core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/coff/parser/BinaryShared.java
    core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/coff/parser/CygwinPEParser.java
    debug/org.eclipse.cdt.debug.ui/icons/full/obj16/ext_file_obj.gif
    debug/org.eclipse.cdt.debug.ui/icons/full/obj16/prj_file_obj.gif
    debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/preferences/SourcePreferencePage.java
    debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/sourcelookup/SourceListDialogField.java
    debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/ui/sourcelookup/SourceLookupLabelProvider.java
    releng/org.eclipse.cdt.releng/message.txt
2003-10-24 17:49:23 +00:00
John Camelon
ad9bebb9ca CORE
Fixed Bug 40007 : Parser reports success when it fails
	Fixed Bug 44305 : Scanner/preprocessor fails on conditionals using hexidecimal 
	Fixed Bug 41935 : parser provides wrong name on namespace aliases 
	Fixed Bug 39525 : Parser fails on expressions that take address of overloaded operators 
	Fixed Bug 45287 : Scanner does not accept character sequence literals 
	Fixed Bug 36550 : Error recovery with unterminated string is weak 
	Fixed Bug 41063 : Remove unused K&R C support from ANSI Parser 
	Fixed Bug 39528 : Function try-blocks are not supported by the parser (ANSI C++) 
	Fixed Bug 39538 : Parser fails on explicit instantiation of templated operators 
	Fixed Bug 39536 : Parser fails on templated constructors/conversion operators 
	Refactored Scanner to make it easier to debug.  

TESTS
	Moved testBug40007() from ASTFailedTests to QuickParseASTTests.  
	Added QuickParseASTTests::testBug40759().  
	Added QuickParseASTTests::testBug44633().  
	Added ScannerTestCase::testBug44305().  
	Added QuickParseASTTests::testBug41935(). 
	Moved testBug39525() from ASTFailedTests to QuickParseASTTests.  
	Added ScannerTestCase::testBug45287(). 
	Moved testBug39528() from ASTFailedTests to QuickParseASTTests.  
	Moved testBug39538() from ASTFailedTests to QuickParseASTTests.  
	Added QuickParseASTTests::testBug39536().  
	Moved testBug39536A() from ASTFailedTests to QuickParseASTTests.  
	Moved testBug39536B() from ASTFailedTests to QuickParseASTTests.
2003-10-21 23:22:36 +00:00
Doug Schaefer
b648b93070 Patch for Bogdan Gheorghe:
- Add in option (which is turned on by default) to limit the
scope of the code assist search to the file and it's inclusions
as opposed to the entire project.
2003-10-09 17:46:59 +00:00
Doug Schaefer
cc6084024d Patch for Sean Evoy:
Use natures to help select what tools are available.
2003-10-01 23:56:36 +00:00
John Camelon
bc158cc0fb Patch for Bogdan Gheorghe
This patch: 

- changes the indexer to use whatever source/header extensions are defined in CModelManager 
- updated the search shortcut so that Ctrl + H will bring up the C/C++ search in a source/header extension file 
- flushes the CDT log file after each index merge (ie. each time the indexer completes an index)
2003-10-01 22:15:38 +00:00
John Camelon
77fbc604e7 Patch for Andrew Niefer
core:
- fix bug 44026 by checking scope before reporting match in 
MatchLocator.report
ui:
-bug44032 - deleting/moving files breaks search
        * modified src/org/eclipse/cdt/ui/CSearchResultLabelProvider 
getText to return empty string instead of null
-bug43130 - Selected resources is disabled but selected
        * src/org/eclipse/cdt/internal/ui/search/CSearchPage
2003-10-01 21:33:23 +00:00
John Camelon
e63b06fc5f Patch for Andrew Niefer
core:
  PST changes:
  - modify lookupConstructor to copy the constructor list before resolving 
on it
  - modify checkUserDefinedConversionSequence the same way
  - modify isValidFunctionOverload to check for forward declarations

core.tests:
- added testBug43951 to CompleteParseASTTest
2003-10-01 21:15:45 +00:00
John Camelon
9b33f17d3f CORE
Fixed Bug 43987 : Search results: Declaration of class not highlighted when selected 
	Fixed Bug 43997 : Search results: selection includes preceding whitespace 
	Fixed Bug 44034 : Scanner failure on #undef
2003-10-01 20:34:58 +00:00
Alain Magloire
c570364866 updated. 2003-10-01 20:27:22 +00:00
Alain Magloire
4c02dcaa92 Missing property 2003-10-01 20:27:12 +00:00
Doug Schaefer
fe07db2d72 Upversioning everything to 1.2.0. 2003-10-01 20:23:21 +00:00
John Camelon
93a1b87c76 Patch for Andrew Niefer
Search filtering was broken, it would have become more obvious when 
searching larger projects with includes.

core:
-modify BasicSearchMatch.equals()

tests:
modified OtherPatternTests.testBug42911() and renamed it 
testBug42911_43988
2003-10-01 19:55:04 +00:00
John Camelon
0d05a8342d Patch for Bogdan Gheorghe.
This patch fixes the indexer merge problem on large projects. 

Automation Test Suite run on Windows + Linux.
2003-10-01 19:43:06 +00:00
John Camelon
c3b63fb508 Patch for Andrew Niefer
Bug 43450 - Path strings containing backslashes need quoting by hand
The user needs to input strings in whatever manner necessary for their 
build tools to work.  If that means quoting them, then quote them.

However, if the user does quote them, then the scanner needs to handle 
that when looking for include files:

core:
-modify Scanner.handleInclusion

core.tests:
- added testBug43450 to ManagedBuildTests.java
- added a user include to plugin.xml
2003-10-01 17:10:20 +00:00
Doug Schaefer
02de2c9788 Patch for Sean Evoy:
the logic for managing the makefiles in the face of a header file 
modification. There seems to be a problem (maybe with the dependency 
calculation) for dependants in other projects when a header file is moved, 
but other than that the builder seems to respond properly.
2003-10-01 14:25:35 +00:00
Alain Magloire
bd8a994627 updated. 2003-10-01 14:18:23 +00:00
Alain Magloire
8a05fb1f3a Fix NPE 2003-10-01 14:18:13 +00:00
David Inglis
fc7419740e fixed preference saving bug with bin parser page 2003-10-01 14:15:13 +00:00
John Camelon
46a9e7fd6f Patch for Bogdan Gheorghe.
Here's a patch that creates and manages a CDT log file in the .metadata\.plugins\org.eclipse.cdt.core folder. This log file, for now, will contain indexer failure messages and parser failure messages - particularly inclusion failures. These messages were being logged to the PDE error log which, given the number of failures that we can expect on some files, was filling up rather quickly. I put a 5MB limit on the CDT log file after which it gets deleted and a new one gets created. The intent of this log file is to help a user figure out why something isn't being indexed properly - the usual reasons are: i) can't find an include file, ii) symbols not defined. 

Also in this patch are 2 minor UI fixes: i) dedicated to Brent - Ctrl+H now brings up the C++ Search Dialog for all C Editor supported extensions, and ii) especially for Alain - F3 will perform a Open Declarations.
2003-10-01 13:33:39 +00:00
John Camelon
007714a394 CORE
Fixed Bug 43503 : Search:f_SD_01 cannot be found in ManyClasses20 Project 
	Fixed Bug 43680 : Fix Parser Error Handling 

TESTS
	Updated CompleteParseASTTest::testBug42872()
	Moved FailedCompleteParseASTTest::testBug43503() to CompleteParseASTTest::testBug43503A().
2003-09-30 20:42:24 +00:00
John Camelon
1a408fd237 Patch for Hoda Amer
Core: 
        -Solution to [Bug 43053] require reference cleanup for expressions 
        Added purgeReferences() at the end of ASTExpression::acceptElement()
2003-09-30 19:44:22 +00:00
John Camelon
c4640566cb Patch for Andrew Niefer
UI:
Bug 43923 - Search: Results pane title missing Working Set's name
        - implement CSearchUtil.toString( IWorkingSet [] )
        * src/org/eclipse/cdt/internal/ui/search/CSearchUtil.java
2003-09-30 18:25:50 +00:00
John Camelon
3d6aba8db8 Patch for Andrew Niefer
Core:
-fix bug43862 - Cannot find macro delcarations using all occurences.
  * modified CSearchPattern.createMacroPattern()

Core.tests:
Updated OtherPatternTests::testMacroPattern() to test for bug43862
2003-09-30 18:18:26 +00:00
John Camelon
e3e3ba0e9e Patch for Andrew Niefer
Core:
PST changes for bug 43503 - parser needs to know the different between 
ambiguous functions
        and no functions when no parameter information is provided
        - throw r_UnableToResolveFunction if we have more than 1 function 
and no parameter info was given
        - handle this case in addUsingDeclaration.
        * note that r_UnableToResolveFunction doesn't necessarily mean 
ambiguous if we had enough information

Core.Tests:
added testBug43503_AmbiguousUsing() and 
testBug43503_UnableToResolveFunction() to ParserSymbolTableTest
2003-09-30 18:03:20 +00:00
Alain Magloire
cde1f83a0c new definition. 2003-09-30 17:08:28 +00:00
Alain Magloire
b60fc95e44 updated. 2003-09-30 17:08:15 +00:00
John Camelon
80271560e8 Patch for Hoda Amer
UI: 
         Fix for bug#43524 : Removing a define from a  .c file causes issues in the outline
2003-09-30 14:16:26 +00:00
John Camelon
9cef992b8e Patch for Andrew Niefer
Core:
-bug42911 - Search: cannot find beyond use of data member
   - fix NPE's in BasicSearchMatch.equals & hashCode

TESTS:
-added testBug42911 to OtherPatternTests
2003-09-30 14:10:28 +00:00
John Camelon
16c24c6cc9 Patch for Hoda Amer
Core: 
        Solution to bug#43679 : Exceptions in indexer 
Tests: 
        -Added testBug43679_A() & testBug43679_B() to CompleteParseASTTest 
        -Renamed FailedCompleteParseASTExpressionTest to FailedCompleteParseASTTest 
        -Added FailedCompleteParseASTTest::testBug43503()
2003-09-30 13:51:56 +00:00
John Camelon
c50efc6fd5 Patch for Andrew Niefer
core:
- modify CSearchPattern.scanForNames to use same naming convention as 
TokenDuple.toString()
- modify MatchLocator.report to use 
IASTOffsetableNamedElement.getNameEndOffset()

core.tests:
- added testBug43062 and testConstructorDestructor to 
FunctionMethodPatternTests
- modified resources/search/classDecl.cpp & include.h to include more 
operators and a constructor
2003-09-30 13:42:44 +00:00
Doug Schaefer
f72312491a Patch for Bogdan Gheorghe:
Here's a patch that simplifies how workspace scopes are built - instead of getting info from the CModelManager, we go straight to the workspace. This will improve shutdown/search performance.
2003-09-29 21:35:10 +00:00
John Camelon
746563ed2b Patch for Andrew Niefer
Core:
- fixed bug 43834 : Empty Parameter list and parameter list taking one 
void do not match
- fix NPE if IScannerInfoProvider returns null IScannerInfo

Tests:
- added testbug43834 to ParserSymbolTableTest
2003-09-29 19:49:19 +00:00
John Camelon
e95da4dade CORE
Continued work on Bug 43062 : Outline is confused on operator methods containing spaces 
	Partial fix for   Bug 43680 : Fix Parser Error Handling 

TEST
	Added testErrorHandling_1() to CompleteParseASTTest.java.
2003-09-29 19:22:09 +00:00
Doug Schaefer
3d7835a362 Initial contribution of AIX port. 2003-09-29 15:03:13 +00:00