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

2546 commits

Author SHA1 Message Date
Doug Schaefer
65003d3ab2 Patch for Andrew Niefer:
Core:
- refactor symbol table function names to start with lower case letters
- added better constructor support :
        - IDerivableContainerSymbol.addConstructor
        - IDerivableContainerSymbol.lookupConstructor
        - IDerivableContainerSymbol.getConstructors
- implicit user-defined conversion sequences now only use constructors not 
marked explicit
- user-defined conversion sequences are now only applied at most once 
(12.3-4 in spec) 
- changed ParserSymbolTableException.r_Unspecified to r_InternalError 
which is thrown on internal symbol table inconsistancies (likely from bugs 
rather than semantic problems with the parsed code)

Core.tests:
- updated tests to reflect function name refactoring
- added ParserSymbolTableTest.testConstructors
2003-08-07 14:46:58 +00:00
Alain Magloire
ca668ed712 update. 2003-08-07 03:32:15 +00:00
Alain Magloire
3811ef4cfd updated. 2003-08-07 03:29:35 +00:00
Alain Magloire
372a84559f added new method for parsing. 2003-08-07 03:29:26 +00:00
Alain Magloire
e25438c76b cleanup of the casting methods. 2003-08-07 03:29:12 +00:00
Alain Magloire
3c01dde2ff cleanup and new helper methods. 2003-08-07 03:28:59 +00:00
Alain Magloire
e67d9935f9 new constructor and cleanup 2003-08-07 03:28:44 +00:00
Alain Magloire
873f29c14c updated. 2003-08-06 21:14:27 +00:00
Alain Magloire
743edf77ef doc 2003-08-06 21:14:17 +00:00
Alain Magloire
136dfb9d17 Implement isEditable() method. 2003-08-06 21:14:06 +00:00
Mikhail Khodjaiants
d391011d82 Added the implementation of the 'getType' and 'getTypeName' methods of the 'CVaraible:ErrorVariable' class. 2003-08-06 20:51:19 +00:00
Mikhail Khodjaiants
812c1785ab Uncommented the 'sizeof' method of 'ICDIVariableObject'. 2003-08-06 20:18:33 +00:00
Mikhail Khodjaiants
1d79549307 Fixes for 'Variable' and 'VariableObject'. 2003-08-06 20:15:56 +00:00
Alain Magloire
1bc4e43764 Remove unneeded method 2003-08-06 19:52:27 +00:00
Alain Magloire
110459666f updated 2003-08-06 19:52:09 +00:00
Alain Magloire
de21ec7208 Move methods to ICDIVariableObject. 2003-08-06 19:51:58 +00:00
Mikhail Khodjaiants
06784eca01 Use the 'getReferencedProject' method to obtain all referenced projects. 2003-08-05 21:13:51 +00:00
Mikhail Khodjaiants
6d5684edff Invalidate error variables when the session is resumed. 2003-08-05 17:49:30 +00:00
David Inglis
02bab456aa 2003-08-05 Mikhail Khodjaiants
* src/org/eclipse/cdt/launch/sourcelookup/DefaultSourceLocator.java
	Check if the project saved in the launch configuration equals to the project set 
	in the source lookup tab.
2003-08-05 17:06:19 +00:00
John Camelon
287009d748 Patch for Andrew Niefer.
This patch contains modifications to BasicSearchMatch and 
BasicSearchResultCollector so that the collector will not accept matches 
that have already been seen.

( Addresses the problem of seeing a class definition in a header file 
multiple times because that header was included from multiple cpp files)

This patch also fixes a small bug in finding the resource for header files 
we enter while parsing.
2003-08-01 19:26:58 +00:00
John Camelon
87e177ade2 Patch for Andrew Niefer
This patch improves support in the parser symbol table for forward declarations
2003-08-01 17:43:10 +00:00
John Camelon
8513838955 Patch for Sean Evoy
I am in the process of documenting the build model and as I go along, a 
number of things will have to be cleaned up in the actual model itself. 
This patch is purely a bookeeping change to make it easier for me to 
maintain the build model in the face of these changes as we go forward. 
Where I used to access XML elements using hard-coded strings, I have moved 
the string into the appropriate interface class. If the name of the 
attribute changes in the future, I only have to update it one place.

I have also begun the process of renaming certain attributes of the schema 
to make them better reflect what they are doing. My hope is that if they 
have intuitive names, toolchain implementers will have less difficulty 
understanding their intent. In any case, I have changed four attribute 
names; optionRef -> optionReference, toolRef -> toolReference, optionValue 
-> listOptionValue, and  optionEnum -> enumeratedOptionValue. 

Unfortunately, these changes will invalidate the dot-cdtbuild files for 
any managed build projects in your workspace. If you can't bear to create 
a new project, move the files over, and set-up the compiler options again, 
you can always hand-edit the changes in the file yourself. Just remember 
to restart CDT after you do so.
2003-07-31 13:20:37 +00:00
John Camelon
c2e6e9ec5b Patch for Victor Mozgin
Fixed PR 39540 : Parser fails on const qualifier after class specifier
2003-07-31 13:14:32 +00:00
Mikhail Khodjaiants
022ba9b789 Moved the 'getReferencedProject' method to 'CDebugUtils'.
Added the cycle checking.
2003-07-30 20:22:31 +00:00
John Camelon
5aae8a1f5d Patch for Hoda Amer.
- The core patch modifies the CModelBuilder to recognize pointers to functions. 
- The tests patch changes the CModelElementsTests and puts the pointer to function test back in its original place (as a variable). 
- The ui patch modifies the NewClassWizard to use search in finding a base class ( the new indexer must be on for it to work ).
2003-07-30 19:17:14 +00:00
John Camelon
7b4de80105 Patch for Victor Mozgin.
Fixed PR 39532 : Parser fails on fully-qualified class names.
2003-07-30 13:04:53 +00:00
John Camelon
57c348fffa CORE
Updated AST to better represent pointers to functions/methods.
	Implemented typedef declaration/x-ref infrastructure.  

TESTS
	Updated QuickParseASTTests for pointer to function updates.
	Updated CompleteParseASTTests for typedef work.
2003-07-30 01:31:14 +00:00
John Camelon
3d7a522e3e Patch by Andrew Niefer.
This patch is a refactoring of the C++ search result collecting.

There are 2 new classes:
- BasicSearchMatch implements IMatch
- BasicSearchResultCollector implements ICSearchResultCollector

IMatch itself has been modified to reflect a minimum set of information 
that will be returned by the search.

The old CSearchResultCollector now extends BasicSearchResultCollector and 
the old Match is now gone.

The CSearchResultLabelProvider has been moved from 
org.eclipse.cdt.internal.ui.search  to  org.eclipse.cdt.ui, and it has 
been modified to reflect changes to IMatch.

The result of this is that anyone wishing to take advantage of the search 
engine (ie ClassWizard ) can now do it without implementing their own 
ICSearchResultCollector and IMatch objects.
2003-07-29 22:47:59 +00:00
Mikhail Khodjaiants
84d61d9cfc Fix for PR 40911: Double clicking on breakpoint with no source causes internal error. 2003-07-29 20:23:55 +00:00
Alain Magloire
d0c813b653 updated 2003-07-29 19:51:30 +00:00
Alain Magloire
0e40557ca2 Check for .debug* 2003-07-29 19:51:19 +00:00
John Camelon
ae3a1417f5 Patch for Sean Evoy
In order to meet certain internal guidelines and to test the makefile 
generator, the build model replied to some answers with hard-coded 
information. This patch moves the information into the build model. Tests 
have been updated to reflect these changes, and the patch has been 
smoke-tested on Unix.
2003-07-29 14:28:40 +00:00
John Camelon
5423bbc79e Patch for Victor Mozgin.
Fixed PR 39546 : Parser fails on 'signed' casts.
2003-07-29 14:21:07 +00:00
John Camelon
a3e052456b Patch for Andrew Niefer
core:
- fixed a couple of bugs to do with searching for globally qualified 
patterns
- fixed a bug to do with the '?' wildcard
- fixed a bug to do with searching for functions/methods using patterns 
specifying parameters

tests:
- new search tests:
                ClassDeclarationPatternTests.testClassReferenceInFieldType
                ClassDeclarationPatternTests.testClassReferences
 ClassDeclarationPatternTests.testEnumerationReferenceVisibleByInheritance
                ClassDeclarationPatternTests.testGloballyQualifiedItem
 ClassDeclarationPatternTests.testTypeReferenceVisibleByUsingDirective
                FunctionMethodPatternTests.testMethodDeclaration
                FunctionMethodPatternTests.testMethodDeclarationWithParams
                OtherPatternTests.testFieldDeclaration
                OtherPatternTests.testNamespaceDeclaration
                OtherPatternTests.testNamespaceReferenceInClassBaseClause
                OtherPatternTests.testNamespaceReferenceInUsingDirective
                OtherPatternTests.testVariableDeclaration
2003-07-29 12:40:17 +00:00
Mikhail Khodjaiants
5ad84a932b Minimize the number of the "evaluate expression" requests when changing the value of the floating point types. 2003-07-28 21:39:57 +00:00
John Camelon
95b11e1171 CORE
Fixed Bug 40842 - Parser: NPE while parsing class declaration in full parse mode 
	Fixed Bug 40843 - Parser: failParse doesn't set parsePassed = false on EOF.
	Fixed Miscellaneous overrides issues involving parameters & functions. 


TESTS
	Added/moved tests as necessary for bugfix 40842 & 40843.
2003-07-28 20:49:47 +00:00
David Inglis
33fdeeac10 see ChangeLog 2003-07-28 20:22:44 +00:00
Mikhail Khodjaiants
460eff2253 Refactoring: moved the 'isNaN', 'isPositiveInfinity' and 'isNegativeInfinity' to the 'CDebugUtils' class. 2003-07-28 19:59:27 +00:00
Mikhail Khodjaiants
622186c83c Refactoring: moved the 'CDebugUtils' class to the 'org.eclipse.cdt.debug.core' package - the methods of this class are mostly used in UI plugins. 2003-07-28 19:40:24 +00:00
Mikhail Khodjaiants
44c47aa497 Cleanup. Removed the unused 'getNumberOfChildren' method from the 'CValue' class. 2003-07-28 19:08:14 +00:00
Mikhail Khodjaiants
87128db4da Cleanup. Removed the 'reset' and 'getQualifiedName' methods from the 'ICVaraible' interface. 2003-07-28 17:25:01 +00:00
John Camelon
d84488d695 Patch for Andrew Niefer.
This patch creates a new failing test class : FullParseFailedTests.  This 
is for writing failed tests on the parser doing COMPLETE_PARSE.

The first failed test is for bug 40842 "Parser: NPE while parsing class 
declaration in full parse mode"
2003-07-28 17:21:50 +00:00
John Camelon
30f7903424 Fixed Bug 40730 - Parser is not searching the include path for #include"<name>" 2003-07-28 15:40:36 +00:00
John Camelon
9b571cb993 Patch for Victor Mozgin.
Fixed PR 39537 : Parser fails if template parameters contain '>' or
'<'  characters.
2003-07-28 14:18:39 +00:00
David Inglis
de98fe1839 cleanup
reduced # of open/close pre elf file
2003-07-28 13:41:00 +00:00
David Inglis
8daef5ac9c added range checks for section string 2003-07-28 13:36:57 +00:00
David Inglis
0a8f96e1d2 fixed supports cpu test so that it finds debugger that support a cpu which
== native but don't say they support native
2003-07-28 13:36:24 +00:00
John Camelon
c6b470a797 Fixed testBug40714() to faiil properly. 2003-07-28 00:28:24 +00:00
John Camelon
136320038c Patch for Victor Mozgin.
Fixed PR 39553 : Macros are not expanded in #include statements.
2003-07-28 00:02:34 +00:00
Doug Schaefer
432273ae87 *** empty log message *** 2003-07-25 20:17:57 +00:00