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

720 commits

Author SHA1 Message Date
Andrew Niefer
b2ff153008 Refactor core.tests/suite/org.eclipse.cdt.testplugin and
ui.tests/src/org.eclipse.cdt.testplugin
packages to  org.eclipse.cdt.core.testplugin and org.eclipse.cdt.ui.testplugin respectively.

This fixes a problem where the tests were incorrectly loading the wrong test plugin class.
2005-01-27 18:48:00 +00:00
Alain Magloire
a03bc42e1a Changing in the Inteface of the CModel. 2005-01-27 03:39:28 +00:00
Andrew Niefer
47c65486a6 External C bindings 2005-01-26 21:19:45 +00:00
Andrew Niefer
eea3244085 C++ bindings
- Field references before their declaration in inline class members
- references in parameter declarations for member functions defined outside their scope
- constructor references
2005-01-26 21:13:52 +00:00
John Camelon
b811a0479b Further DOM/AST fixes (w/viewer). 2005-01-26 20:21:07 +00:00
John Camelon
1466819ee6 Fixed Bug 83664 - [Offset/Location] found a couple with my simple K&R C test 2005-01-26 18:39:40 +00:00
John Camelon
c2664b26e1 Function style macro parameters working through IASTTranslationUnit#getMacroDefinitions() 2005-01-26 16:41:02 +00:00
John Camelon
63ffe8d959 Fixed name bug for macro names. 2005-01-26 16:07:13 +00:00
Andrew Niefer
22d59f21f5 C++ bindings:
- namespace aliases
- constructor chain references
2005-01-25 23:20:28 +00:00
Andrew Niefer
0a1793e33f - fix up how we resolve function parameter bindings in C 2005-01-25 22:16:03 +00:00
John Camelon
ae4dff5290 Implemented IASTTranslationUnit#getIncludeDirectives() for both C & C++.
Implemented IASTTranslationUnit#getMacroDefinitions() for both C & C++.
2005-01-25 20:42:19 +00:00
Andrew Niefer
06739b170f - remove IBinding.getPhysicalNode, add private interfaces ICBinding & ICPPBinding
- constructor references in new expressions
- get bindings from scope as shortcut
2005-01-24 22:38:34 +00:00
Andrew Niefer
0988982be3 - Modify CVisitor.visit* to enable better control over visiting the AST.
- Merge ClearBindingAction & ClearBindingFromScopeAction
- Modify CollectDeclarationsAction to avoid creating bindings as much as possible
2005-01-23 18:23:31 +00:00
John Camelon
e22c304553 IASTNodeLocation support for #inclusions. 2005-01-21 21:12:17 +00:00
Andrew Niefer
0f10569314 Bindings in the new Parser:
- Class Scopes
- Implicit member functions
2005-01-21 21:07:42 +00:00
John Camelon
f8c0954d72 Patch for Devin Steffler.
This patch updates the following for the K&R C support in GNUCSourceParser:
- updated the existing K&R C tests to test CTranslationUnit#getDeclarations(IBinding) and CVisitor.clearBindings(IASTTranslationUnit)
- GNUCSourceParser now uses simpleDeclaration instead of parseDeclarationOrExpression when parsing the K&R C Parameter Declarations
- added a couple more tests
- fixed a couple K&R C bugs related to CVisitor/CStructure
2005-01-21 15:08:59 +00:00
John Camelon
8d833f012a Patch for Devin Steffler.
This patch adds basic K&R C support to the GNUCSourceParser.
- added support for K&R C syntax
- added support for ASTProblemDeclaration with faulty K&R C syntax
- added simple tests
2005-01-19 20:24:01 +00:00
John Camelon
2a48843261 Some refactoring of class names.
Consistency is key.
2005-01-19 15:21:38 +00:00
Andrew Niefer
9e5cafe0d9 handle namespace that are split into pieces 2005-01-18 22:00:09 +00:00
John Camelon
d0606bd516 Cleaned up DOMLocationTest 2005-01-18 20:20:45 +00:00
John Camelon
7e265eb12a Updated DOMLocationTests. 2005-01-18 20:13:22 +00:00
John Camelon
0a8634d93f Base case DOMScanner/LocationMap support. 2005-01-18 19:46:43 +00:00
Andrew Niefer
2713b4695c initial work for IProblemBindings 2005-01-18 15:45:05 +00:00
Andrew Niefer
3ba300630d patch from Devin Steffler: field designators 2005-01-17 19:07:16 +00:00
Andrew Niefer
8ee8577dc8 tests :
- method reference after function call eg: get()->size()
2005-01-17 16:24:30 +00:00
Andrew Niefer
60e3bceae6 expanding the CompleteParser2Tests
-fixes for method references
2005-01-14 21:47:13 +00:00
Andrew Niefer
4dcca4a96a Patch from Devin Steffler: getDeclarations 2005-01-14 16:52:45 +00:00
John Camelon
9e365df5f5 Slow road for IASTNodeLocation. 2005-01-14 16:35:02 +00:00
Andrew Niefer
8d0a12de55 Label bindings in the new parser 2005-01-14 16:34:59 +00:00
Andrew Niefer
c20d990dc3 patch from Devin Steffler:
removing IBindings from IScopes
2005-01-13 20:29:34 +00:00
John Camelon
cdfc350d10 Added lengths to ASTNodes. 2005-01-12 02:16:26 +00:00
John Camelon
0f2803f134 Patch for Devin Steffler.
This patch adds getProblems() to the CVisitor and CPPVisitor classes.  This is required to get IASTProblems since the new parser doesn't use a callback anymore.
Also, updated tests accordingly.
2005-01-10 21:11:53 +00:00
John Camelon
d019346a04 Fixed 81887 [Parser2] if () {...} else if () ... else {...} parsed incorrectly
Started DOMScannerTests.
2005-01-06 20:52:07 +00:00
John Camelon
d91724f835 IASTProblems are now attached to the AST rather than reported. 2005-01-05 16:43:46 +00:00
John Camelon
334abb5ab0 Continuation of IProblem/Backtrack migration for Parser2. 2005-01-04 18:51:08 +00:00
Andrew Niefer
b8955a476e more CompleteParser2Tests
- member visibilty
- destructors
2004-12-24 00:13:43 +00:00
Doug Schaefer
0583121e43 Updated the version numbers to 3.0.0. 2004-12-22 19:49:22 +00:00
Andrew Niefer
65428b9be0 more CompleteParser2Tests and
- constructors
- visiting array declarators
2004-12-22 19:10:20 +00:00
Andrew Niefer
fcc304bee1 expand some of the CompleteParser2Tests
- enumerator getType()
- class decls with qualified names
2004-12-22 00:00:43 +00:00
John Camelon
2c4cc97119 Fixed Bug 80978 - [Parser2] C Parser doesnt handle variable length arrays 2004-12-21 20:45:57 +00:00
John Camelon
02b95b6d5c Fixed Bug 80992 - [Parser2] C Parser only handles 1 type-qualifier in array modifier 2004-12-21 19:53:15 +00:00
John Camelon
ee26471851 Patch for Devin Steffler.
Fix for 108 Perrors in Dave's test associated with testTypedefExample4b (changes made to GNUCSourceParser)
	Better support for Function Types
2004-12-21 16:27:04 +00:00
Andrew Niefer
1d28de7fde using declarations 2004-12-20 18:09:05 +00:00
John Camelon
0cb94d4f49 Patch for Devin Steffler.
This patch adds the implementation of CFunctionTypes to the new parser.  In it I also cleaned up some of the old implementation that I had for other types so that it was easier to implement FunctionTypes.
2004-12-17 20:23:47 +00:00
John Camelon
c66fd5bdef Designated Initializers were not being seen in the physical AST. 2004-12-16 20:56:35 +00:00
Andrew Niefer
73f50ce64b More Tests for C++ bindings 2004-12-16 00:03:44 +00:00
Andrew Niefer
04105fe09e Array Types patch from Devin Steffler
plus small changes to fix broken GCCTests
2004-12-15 17:56:49 +00:00
Andrew Niefer
7c6a5a0094 C++: enumerations, enumerators and pointers to functions 2004-12-15 17:09:04 +00:00
John Camelon
8e1dc14197 Switch DOM tests to use DOMScanner.
Updated DOMScanner constructor.
Added __asm__ macro to GNUScannerConfiguration
2004-12-15 15:55:55 +00:00
Andrew Niefer
b6fa19a6f7 for statements, field references 2004-12-14 20:17:23 +00:00