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

106 commits

Author SHA1 Message Date
John Camelon
77ed10f94c Patch for Victor Mozgin.
Fixed PR 39501 : Parser problems with throw clauses.
Improved filtering of expected failures/inconclusives in TortureTest.
2003-07-03 18:44:40 +00:00
John Camelon
b2aacbd3c1 CORE
Further restructuring of Parser for ISourceElementRequestor. 
	Added interfaces/implementation for Simple Declarations.  
	Cleaned up DOM's representation of Constructor chains.  

TESTS
	Added DOMTests::testAssignmentExpression()
	Added PreprocessorConditionalTest to ParserTestSuite.
2003-06-30 22:08:38 +00:00
John Camelon
bc44d5b65f Completed Quickparse expression representation.
Updated ExpressionEvaluation and associated tests.
2003-06-28 22:39:35 +00:00
John Camelon
c4df8f4e6f Patch for Victor Mozgin.
Initial pass at Task Bar/IProblem support.
2003-06-28 19:48:12 +00:00
John Camelon
728848ffc6 Update IASTExpression.
Move Parser.Backtrack and Parser.EndOfFile to external interface.
2003-06-27 00:20:07 +00:00
John Camelon
87e8a2b4d3 CORE
Fixed bug39348 - sizeof elaborated types fail in parsing expression
TESTS
	Added DOMFailedTest::testBug39349(). 
	Added DOMTests::testBug39348().
2003-06-26 00:11:32 +00:00
John Camelon
6a7293f951 Create new interface and support for calculating lineNumber/offset mapping.
Updated IASTClassSpecifier for qualified name query.  
Began structuring expressions and declarators in Parser for ISourceElementRequestor.  
Updated other packages to use new interfaces.
Updated automatedtests/torture test to use new line number information.
2003-06-25 22:47:52 +00:00
John Camelon
effbc07d12 Updates for ISourceElementRequestor - elaborated types & enumerations. 2003-06-24 20:18:16 +00:00
John Camelon
65fb06058c SimpleDecl support for migration towards ISourceElementRequestor. 2003-06-23 21:28:14 +00:00
John Camelon
f61006c9fe Updated Factory infrastructure, constructors, etc.
Introduced Preprocessor class for transitive closure calc. client.
2003-06-23 18:05:31 +00:00
John Camelon
4347f9b681 Patch for Victor Mozgin.
Fixes problem with offsets of elements that were created as macro expansions (PR 36463).
2003-06-20 17:16:05 +00:00
John Camelon
5ef908593a Patch for Victor Mozgin.
K&R Support.  God help us.
2003-06-18 19:36:20 +00:00
John Camelon
727db1c990 Patch for Victor Mozgin
Implemented correct handling of nested declarators in CModelBuilder.
Added proper support for function pointers as parameters.
2003-06-18 13:56:58 +00:00
John Camelon
15f0d21085 Patch for Victor Mozgin.
implemented support for pointers to class members;
added handling of declarations for nested scopes (like A::B::C);
fixed handling of parameter lists for typedefs for functions;
some errorhandling in CModelBuilder;
2003-06-16 21:41:54 +00:00
John Camelon
22eb93f0e4 2003-06-13 John Camelon
Added Class/Base infrastructure to public interfaces & requestor callback. 
	Moved many internal interfaces to external packages. 
	Organized imports.
2003-06-13 20:03:15 +00:00
John Camelon
729fbe3c68 Patch for Victor Mozgin.
Fixing AutomatedTest.java after PST/HEAD merge.
2003-06-13 18:24:26 +00:00
John Camelon
89913324d4 Merge Parser_SymbolTable branch into HEAD. 2003-06-13 15:01:26 +00:00
John Camelon
362dd49676 Patch for Brent Nicolle.
Added some Interface tests of (IInclude, IMacro, IStructure). 
Made sure all the Test Suites have names in the JUnit hierarchy.
2003-06-10 22:57:05 +00:00
John Camelon
d4a1629964 Patch for Victor Mozgin.
This patch enables parsing of conversion operators. Fixes PR 38657 and the rest of PR 36769.
2003-06-10 14:41:42 +00:00
John Camelon
1aae7b2fa4 Patch for Victor Mozgin.
This patch should improve parsing of new-expressions, including placements, array allocations and multiple parameters in initializers. Fixes PR36932.
2003-06-09 22:02:31 +00:00
John Camelon
e9adc8cbbb Patch for Victor Mozgin.
Fix for PR36701 (Preprocessor stringizing)
2003-06-09 18:40:17 +00:00
John Camelon
de2f7c52bc Patch for Victor Mozgin.
Here is the patch that should take care of parsing templated constructor/destructor/operator declarations.
2003-06-09 18:21:28 +00:00
John Camelon
c3bab5f786 Patch for Victor Mozgin
Update of ChangeLog & ui.tests for PR 38065.
2003-06-06 15:01:36 +00:00
John Camelon
fc9a1bc154 Patch for Victor Morgzin.
Fix Bug 38065     Handling include statements with backslashes in Outline
2003-06-05 20:16:30 +00:00
John Camelon
f5f345cdff CORE
Fix Bug 38380  "Include" class public methods fails JUnit tests 
	Updated CModel, DOM, Scanner and current Parser callback to set the information appropriately.  

TESTS
	Moved testBug23478A() & testBug23478B() from failed tests to TranslationUnitTests.java.
	Removed TranslationUnitFailedTests.java as it was empty. 

I also had to apply Alain's partial fix to the Parser_SymbolTable branch to get this working.
2003-06-05 20:01:54 +00:00
John Camelon
23a5c599d4 Symbol table/Parser interworking.
First blood has been drawn.
2003-05-05 20:31:08 +00:00
John Camelon
775f0761ca Patch for Andrew Niefer
core: Structural changes to ParserSymbolTable:
- moved TypeInfo & Declaration inside ParserSymbolTable
- removed the stack & push/pop/peek
- moved nonstatic add/lookup fuctions from the table to Declaration
- began undo framework: added AddDeclarationCommand
 
tests: 
Rewrote ParserSymbolTableTest to reflect structural changes to the symbol table.
2003-05-05 17:01:04 +00:00
John Camelon
805567f342 Patch for Andrew Niefer.
core:
  Fixed Bug 36287 - Parser failure with new CDT 1.1 parser
  Fixed Bug 37011 - Scanner: #define A "//" not properly handled
 
UI.tests
  Updated FractionalAutomatedTest to use threads
  Modified ScannerTestCase::testBug36287
  Added ScannerTestCase::testBug37011
  Added ScannerTestCase::testOtherPreprocessorDefines
2003-05-01 20:04:51 +00:00
John Camelon
44ca9f0cc5 Patch for Hoda Amer.
Fix for bug 36797: Templates of Variables and structs + JUnit test
2003-05-01 19:46:42 +00:00
John Camelon
2ae31ff0e2 Update IParser.java and Parser.java javadoc.
JC
2003-04-30 22:14:55 +00:00
John Camelon
0ab192cb95 CORE
Fixed Bug 37019  - RTS: Parser fails on variable defn using constructor 
	Fixed Bug 36767  - STL Testing: Parser is confused and goes into template function body 

TESTS
	Moved testBug37019() from DOMFailedTests to DOMTests.
2003-04-28 20:00:35 +00:00
John Camelon
5b0250419e Added tCHAR to Parser::primaryExpression(). 2003-04-28 18:16:48 +00:00
John Camelon
b918254917 Patch for Hoda Amer
The CModelBuilder assigns template classes and template functions the correct offsets.
2003-04-28 17:36:24 +00:00
John Camelon
771d05100d CORE
Partial fix for Bug37002 - Order of Offsetables is wrong 

TESTS
	Added DOMTests::testOrder().
2003-04-28 16:01:38 +00:00
John Camelon
1c7ed5ec08 CORE
Partial fix for Bug 36932 - RTS: Parser fails on "new" in ctor initializer
	Fixed Bug 36704 - Problem parsing Loki's Reference Typelist.h 
	Fixed Bug 36699 - Problem parsing Loki's Reference SmartPtr.h Impl 
	Fixed Bug 36691 - Problem parsing Loki's Reference HierarchyGenerators.h Impl 

TESTS
	Added testBug36932() to DOMTests. 
	Moved testBugFunctor758() from LokiFailures to DOMTests.
	Moved testBug36704() from DOMFailedTest to DOMTests.  
	Moved testBug36699() from DOMFailedTest to DOMTests.  
	Moved testBug36691() from DOMFailedTest to DOMTests.
2003-04-27 22:53:58 +00:00
John Camelon
4d93d6c4df Patch for Hoda Amer.
Logging debug messages of the parser and the C model builder only if CCorePlugin.debug is set to true.
2003-04-27 20:56:07 +00:00
John Camelon
2417cd02cb Patch for Andrew Niefer
Core
    Fixed bug36771 - Outline view shows include with no name
    Fixed bug36714 - Parser fails on initial assignment using floating-suffix 
    Revisted bug36816 - Incomplete #include stops outline view 
Tests
    Moved ACEFailedTest::testBug36771 to DOMTests
    Moved DOMFailedTest::testBug36714 to DOMTests
    Updated ScannerTestCase::testBug36816
2003-04-27 20:28:16 +00:00
John Camelon
c8a467dc65 CORE
Fixed bug36852  - outline window doesn't show all functions 
	Fixed bug36764  - Bit fields cause parse errors 
	Fixed bug36702  - Parser error when having function pointers as parameters 

TESTS
	Added DOMTests::testBug36852(). 
	Added DOMTests::testBug36764().
	Moved DOMFailedTests::testBug36702() to DOMTests(). 

JohnC
2003-04-25 16:13:17 +00:00
John Camelon
1afa3710ae Patch for Hoda Amer
Fix for bug : const & volatile modifier missing from pointer to function signature  
+ 2 more STLFailedtests
2003-04-25 15:58:44 +00:00
John Camelon
fcd010f569 CORE
Fixed Bug36799  STL Testing: Parser fails on Variable Definition 

TESTS
	Moved fixed tests from FailedTests to DOMTests. 
	Added DOMTests::testBug36799().
	Cleaned up tests to reduce amount of code necessary to maintain these things. 

JohnC
2003-04-24 21:01:25 +00:00
John Camelon
6f23a3d075 Patch for Andrew Niefer:
This patch fixes 2 scanner bugs:
   Bug36816 Scanner infinite loop on incomplete #include
   Bug36255 Parser hangs/goes infinite
 
This patch also introduces a new automated test, 
FractionalAutomatedTest, which tests the parser on incomplete files.
2003-04-24 18:50:02 +00:00
John Camelon
ce2d966a88 CORE
Fixed bug36693 - Problem parsing Loki's Reference SmallObj.cpp Impl
	Fixed bug36696 - Problem parsing Loki's Reference SmartPtr.h Impl
	Improved our error handling robustness so that we don't mistake function bodies for CElements. 
	Fixed bug36713 - Parser fails on definitions of pointers to functions 
	Fixed Dave's performance test parse failure. 
	Fixed bug36811 - The using directive causes parser to fail
	Fixed bug36794 - ClassCastException for A template with no parameters 

TESTS
	Moved fixed tests from FailedTests to DOMTests. 
	Added LokiFailures.java to failed tests directory.

JohnC
2003-04-24 18:36:22 +00:00
Doug Schaefer
30b5b45010 Patch for John Camelon:
CORE 
        Revisited bug36247      Parser confused by symbols #defined elsewhere   
        Fixed Bug36708          Problem parsing Loki's Reference TypeTraits.h   
        Fixed Bug36690          Problem parsing Loki's Reference Functor.h Implementation   
        Fixed Bug36692          Problem parsing Loki's Reference Singleton.h Impl 
        Fixed Bug36703          Problem parsing Loki's Reference TypeInfo.h Impl   
        Fixed Bug36689          Problem parsing Loki's Reference AbstractFactory.h Impl 
        Fixed Bug36707          Problem parsing Loki's Reference TypeManip.h   

TESTS 
        Updated DOMTests::testBug36247().   
        Moved testBug36692(), testBug36703(), testBug36708(), testBug36707(), testBug36689() 
        and testBug36690() from DOMFailedTests to DOMTests and updated them.
2003-04-22 15:22:31 +00:00
Doug Schaefer
966d0a1670 Patch for Hoda Amer:
-reversed the change to the ICElement interface.
-solves the method template with body bug
-solves bug #36726: ElementDeltaTests::testElementDeltas()
failure in Junit
2003-04-21 20:02:58 +00:00
Doug Schaefer
eaf3aacd4e Patch for John Camelon:
CORE/UI
Fixed Bug36551 Bad parse on attached file.
Partial Fix for Bug36631 remove linear search algorithm from OffsetMapping 
TESTS 
Added DOMTests::testBug36551(). 
Adjusted AutomatedTest to turn on line numbering. 
Added DOMFailedTests and 11 failed test cases.  
Changed CModelElementTests so that I can get on with my work.
2003-04-21 18:34:44 +00:00
Doug Schaefer
bff475c968 Patch for Andrew Niefer:
Fixed Bug36475 - Scanner does not concatenate strings
Fixed Bug36509 - Scanner turns strings into identifiers when expanding macros
Fixed Bug36521 - Scanner gets confused over commas in function like macros
Fixed Bug36695 - Scanner looses escaping on chars (ie '\4' to '4')
 
 
Moved ScannerFailedTest::testBug36475 to ScannerTestCase::testBug36475() 
Moved ScannerFailedTest::testBug36509 to ScannerTestCase::testBug36509()
Moved ScannerFailedTest::testBug36521 to ScannerTestCase::testBug36521()
Added ScannerTestCase::testBug36695()
 
Updated ScannerTestCase::testBug36047
Updated ScannerTestCase::testBug36045
2003-04-21 18:04:53 +00:00
Doug Schaefer
67b40d2e68 Patch for Hoda Amer:
"Function template with body" bug fix + JUnit test
2003-04-21 16:16:59 +00:00
Doug Schaefer
bfbb6e209b Patch for Hoda Amer:
- A fix for bug 36379: The parser to set Line information when scanning as
well.
2003-04-21 14:49:26 +00:00
Doug Schaefer
ec6fd870a4 Patch for John Camelon:
CORE 
        Fixed error in Elaborated Enumeration Types.   
        Fixed Bug36559  - Parsing Templates...  
        Fixed Bug36634  - Enum start line error  

TESTS 
        Updated DOMTests::testBug36600(). 
        Updated LineNumberTest::testDOMLineNos().   
        Added DOMTests::testBug36559().
2003-04-17 18:59:18 +00:00
Doug Schaefer
8fc0923c61 Patch for Hoda Amer:
- Fix for bug 36604 : NPE in CModelBuilder for given input
2003-04-17 18:34:47 +00:00