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

308 commits

Author SHA1 Message Date
Andrew Niefer
71de5821df bug 53213- Externalize Strings 2004-03-04 18:00:20 +00:00
John Camelon
3f823a9e08 org.eclipse.cdt.core
Refactored parser for further content assist work.

org.eclipse.cdt.ui.tests
	Updated failed test to fail in new way as Content Assist feature work continues on ...
2004-03-03 20:07:59 +00:00
John Camelon
9ec8dc475a Updated ChangeLog. 2004-03-03 16:43:22 +00:00
John Camelon
fc37d2f92c org.eclipse.cdt.core
Added some trace statements to CompleteParseASTFactory.  
	Cleaned up usage of Enum.getValue() wrt encapsulation of enumerator value.  
	Refactored CompleteParseASTFactory for correctness and abstraction. 
	Added preliminary IProblem support to CompleteParseASTFactory.  
	Added (commented out unfortunately) assertions into CompleteParseASTFactory. 
	Updated IASTUsingDeclaration to return an Iterator for declarations mapped rather than just a single declaration.  

org.eclipse.cdt.core.tests
	Updated tests to deal with IASTUsingDeclaration interface changes.  

org.eclipse.cdt.ui
	Cleaned up usage of Enum.getValue() wrt encapsulation of enumerator value.
2004-03-03 15:59:56 +00:00
Andrew Niefer
0f74ca46c3 bug 52695: IASTClassSpecifier.getDeclarations returns an empty iterator 2004-03-01 21:18:11 +00:00
Andrew Niefer
95f42aeb9e Bug 53213: Externalize Strings 2004-02-26 23:10:24 +00:00
Bogdan Gheorghe
2e497d6a54 - First go at adding selection search to CDT. You can now search for Declarations, References in Workspace, WorkingSets triggered from the CEditor, CView or COutline.
- Added Dependency NPE check + test
- Selection Parser change from John
- Cleaned up search properties file
2004-02-25 23:24:04 +00:00
John Camelon
f070a52e93 org.eclipse.cdt.core
Fixed Bug 43051 : Search: cannot specify relative search paths
	Fixed Bug 45140 : refactor IScanner to allow use of Readers of IResource

org.eclipse.cdt.core.tests
org.eclipse.cdt.ui
	Updates for new ISourceElementRequestor interface updates.
2004-02-25 22:18:51 +00:00
John Camelon
ba9fc2e462 org.eclipse.cdt.core
Updated Scanner to allow for invalid identifier names despite C++'s best efforts at maintaining its honour.  

org.eclipse.cdt.core.tests
	Added ScannerTestCase::testGerman().
2004-02-25 15:30:21 +00:00
John Camelon
d0ae8c2f99 Refactoring Scanner.handleInclusion to be more modular. 2004-02-25 02:41:41 +00:00
Andrew Niefer
b4309ac47a Start of bug 51485: PST Templates: Explicit Specialization 2004-02-24 22:09:59 +00:00
John Camelon
35ad4ab120 Fixed https://bugs.eclipse.org/bugs/show_bug.cgi?id=52823 2004-02-24 18:18:56 +00:00
John Camelon
ac87e55ae0 Partial Fix for Bug 52534 - Selection Search offset limit reached is broken 2004-02-24 16:01:32 +00:00
Doug Schaefer
22dcf4b013 Undo! 2004-02-23 19:53:47 +00:00
Doug Schaefer
e10c748d02 Testing out asserts. 2004-02-23 19:25:00 +00:00
Andrew Niefer
965904453b bug 52412 - using declarations are problematic in the PST 2004-02-18 21:03:42 +00:00
Andrew Niefer
57d4d66372 Bug 52111 - IContainerSymbol.removeSymbol() required 2004-02-17 16:59:37 +00:00
Andrew Niefer
8cf9302004 52120 - Document ParserSymbolTableException
Comments added to the ISymbol interfaces to indicate which
exception reasons are thrown by which function
2004-02-16 20:58:22 +00:00
John Camelon
b416d5f3b9 Patch for Andrew Niefer.
This patch fixes the way the symbol table handles const & volatile.
It also fixes the following bugs:
47628 - signed char is parsed as char
47636 - char * and char[] are treated as different types
45697 - Parser/Symbol Table: Mismatched declarations & definition
2004-02-13 15:40:08 +00:00
John Camelon
385ac1b870 org.eclipse.cdt.core
Removed IASTCompletionKind.SCOPED_REFERENCE as it was obsolete.  
	Did preliminary work to support content assist within qualified names.

org.eclipse.cdt.ui
	Updated Content Assist feature to not use IASTCompletionKind.SCOPED_REFERENCE
2004-02-12 14:20:00 +00:00
John Camelon
7f57c34082 org.eclipse.cdt.core
Restructured Parser implementation to allow for better support of Selection Search.
	Restructured Parser implementation to allow for separation between parsing expressions (Scanner) and complete C/C++ source.

org.eclipse.cdt.core.tests
	Updated tests to accommodate for new Parser class hierarchy and factories.
2004-02-11 23:14:24 +00:00
John Camelon
409b1021af Patch for Andrew Niefer
This patch represents a couple of months work (off and on since the 
summer) on Parser Symbol Table support for templates.

This is symbol table support only, not parser support (that still needs to 
be done).

What does work:
- declarations, definitions & instantiations for class templates, function 
templates, & template templates 
- declarations, definitions & instantiations of class template partial 
specializations
- template ordering & argument deduction (allows implicit template 
function instatiation)

What doesn't (yet) work:
- Explicit specializations
- assorted smaller specific cases & bugs & things I havn't thought of yet
2004-02-11 03:07:33 +00:00
John Camelon
9a439466fc Workaround for Bug 51502 - Parser spins on particular file (Scalability) 2004-02-10 20:51:23 +00:00
John Camelon
3676f03756 Fixed Bug 51302 - Content Assist: No completion list available following namespace declaration. 2004-02-10 16:06:06 +00:00
John Camelon
f596606ff7 org.eclipse.cdt.core
Refactored Parser.java to allow inline small functions and tightened the signatures for statement().  
	Refactored Scanner.java to allow for data to be encapsulated to allow for IScannerExtension to act upon it. 
	Partially fixed Bug 47628 - signed char is parsed as char (affects the outline view) 


org.eclipse.cdt.core.tests
	Added testBug47682() to QuickParseASTTests.java.
2004-02-10 15:33:52 +00:00
John Camelon
728eeb85f8 Patch for Andrew Niefer.
Core:
- fix class cast exception in the symbol table while traversing the 
inheritance of a class.
- filter the results of the prefix lookup for content assist so that those 
symbol without attached AST nodes aren removed so that the iterator does 
not later return a null.

Tests:
- added CompletionParseTests.testBug51260
2004-02-09 16:32:43 +00:00
John Camelon
90c0309950 org.eclipse.cdt.core
Added support for inline method x-references.  
	Fixed Bug 44340 - Inline functions fail to resolve references 
	Fixed Bug 51243 - Content Assist in an empty document causes a NPE 


org.eclipse.cdt.core.tests
	Moved testErrorHandling_1() from failed tests to CompleteParseASTTest.  
	Moved testBug44340() from failed tests to CompleteParseASTTest.
2004-02-09 04:19:11 +00:00
John Camelon
1f042fb9a2 org.eclipse.cdt.core
Added preliminary (crude) SelectionParser IParser implementation for SELECTION_PARSE clients.  

org.eclipse.cdt.core.tests
	Added preliminary SelectionParseTests to test SELECTION_PARSE clients. 
	Added SelectionParseTests to ParserTestSuite.
2004-02-05 04:01:24 +00:00
John Camelon
395c81dceb org.eclipse.cdt.core
Added preliminary (crude) SelectionParser IParser implementation for SELECTION_PARSE clients.  

org.eclipse.cdt.core.tests
	Added preliminary SelectionParseTests to test SELECTION_PARSE clients. 
	Added SelectionParseTests to ParserTestSuite.
2004-02-05 03:57:56 +00:00
John Camelon
0dc064bbd6 org.eclipse.cdt.core
Added CompletionKind.UNREACHABLE_CODE to IASTCompletionNode.  
	Updated Scanner to handle unreachable code scenarios in content assist.  
	Added Directives class to centralize preprocessor directive strings.  
	Added keyword completion for preprocessor lines that start with #.
2004-02-01 18:38:06 +00:00
John Camelon
695df66284 org.eclipse.cdt.core
Partial fix for Bug 47752 - Outline does not recognize functions with full body try/catch blocks 

org.eclipse.cdt.core.tests
	Added QuickParseASTTest::testBug47752.
2004-01-30 23:36:05 +00:00
John Camelon
de5b46412d Updated Scanner to allow for more robust completion in #if directives. 2004-01-30 22:41:56 +00:00
John Camelon
fbda3f7d9a org.eclipse.cdt.core
Fixed Bug 50487 - Wrong completion kind and prefix after "#ifdef" 

org.eclipse.cdt.ui.tests
	Updated CompletionFailedTest_MacroRef_NoPrefix_Bug50487, renamed it to CompletionTest_MacroRef_NoPrefix and moved to passed test package.
	Updated CompletionFailedTest_MacroRef_Prefix_Bug50487, renamed it to Y and moved to passed test package.
2004-01-30 18:28:07 +00:00
Hoda Amer
7bccc3314d Content Assist Work: More JUnit tests 2004-01-29 18:02:12 +00:00
John Camelon
d46025b64f org.eclipse.cdt.core
Fixed  50642 - Wrong completion kind when declaring an argument type
	Updated using declarations for more accurate keywords and closure.

org.eclipse.cdt.ui.tests
	Updated CompletionTest_ArgumentType_Prefix_Bug50642, renamed it to CompletionTest_ArgumentType_Prefix and moved to passed test package.
	Updated CompletionTest_ArgumentType_Prefix2_Bug50642, renamed it to CompletionTest_ArgumentType_Prefix2 and moved to passed test package.
	Updated CompletionTest_ArgumentType_NoPrefix_Bug50642, renamed it to CompletionTest_ArgumentType_NoPrefix and moved to passed test package.
	Updated CompletionTest_ArgumentType_NoPrefix2_Bug50642, renamed it to CompletionTest_ArgumentType_NoPrefix2 and moved to passed test package.
2004-01-29 16:59:54 +00:00
Hoda Amer
9c870f74bf Content Assist Work: More JUnit tests 2004-01-29 15:03:26 +00:00
John Camelon
878174520e org.eclipse.cdt.core
Fixed Bug 50821 - Freezes when opening / saving .c file 

org.eclipse.cdt.core.tests
	Added ScannerTestCase::testBug50821().
2004-01-29 04:57:43 +00:00
John Camelon
a581a6aa81 org.eclipse.cdt.core
Fixed Bug 50711 - Wrong completion kind in a new expression

org.eclipse.cdt.ui.tests
Updated and renamed CompletionFailedTest_NewTypeReference_NoPrefix_Bug50711 to CompletionTest_NewTypeReference_NoPrefix, moving it to the success tests directory.
Updated and renamed CompletionFailedTest_NewTypeReference_Prefix_Bug50711 to CompletionTest_NewTypeReference_Prefix, moving it to the success tests directory.
2004-01-28 22:31:24 +00:00
John Camelon
6dbe39d0d0 org.eclipse.cdt.core
Updated Scanner to add ANSI built-in defined macros for C and C++.
     Updated GCCScannerExtension to add GCC specific defined macros for C++.
     Added factory infrastructure to allow for C/C++ dialect extensions to be added and contained.
     Added IASTExpressionExtension w/implementation to allow for GCC specific leniency on evaluating expressions.

org.clipse.cdt.ui.tests
    Updated CompletionTest_SingleName_NoPrefix to include internal macro definitions.
2004-01-28 19:59:20 +00:00
Hoda Amer
8742531520 Patch For Andrew : Fix for bug#50729 : Visibility is incorrectly decided in inheritance 2004-01-28 19:23:43 +00:00
John Camelon
ebd53b2c6d org.eclipse.cdt.core
Refactored parser to allow for cleaner content assist implementation.  
	Removed IASTCompletionNode.CompletionKind.STATEMENT_START as it is redundant.  
	Fixed bug 50640 - Wrong completion kind when expecting an exception 
	Fixed bug 50471 - Wrong completion kind after the "using" keyword
	Fixed bug 50621 - Wrong completion kind in a class declaration 

org.eclipse.cdt.core.tests
	Renamed ContextualParseTest to CompletionParseTest.
	Updated COMPLETION_PARSE clients to use SINGLE_NAME_REFERENCE rather than STATEMENT_START.  

org.eclipse.cdt.ui
	Updated COMPLETION_PARSE clients to use SINGLE_NAME_REFERENCE rather than STATEMENT_START.  

org.eclipse.cdt.ui.tests
	Updated COMPLETION_PARSE clients to use SINGLE_NAME_REFERENCE rather than STATEMENT_START.  
	Renamed and updated CompletionTest_StatementStart_NoPrefix to CompletionTest_SingleName_Method_NoPrefix.
	Renamed and updated CompletionTest_StatementStart_Prefix to CompletionTest_SingleName_Method_Prefix.
	Renamed and updated CompletionFailedTest_ExceptionReference_NoPrefix_Bug50640 to CompletionTest_ExceptionReference_NoPrefix and moved to passed tests folder.
	Renamed and updated CompletionFailedTest_ExceptionReference_Prefix_Bug50640 to CompletionTest_ExceptionReference_Prefix and moved to passed tests folder.
	Renamed and updated CompletionFailedTest_NamespaceRef_NoPrefix_Bug50471 to CompletionTest_TypeRef_NoPrefix and moved to passed tests folder.
	Renamed and updated CompletionFailedTest_NamespaceRef_Prefix_Bug50471 to CompletionTest_TypeRef_Prefix and moved to passed tests folder.
	Renamed and updated CompletionFailedTest_ClassReference_Prefix_Bug50621 to CompletionTest_ClassReference_Prefix and moved to passed tests folder.
	Renamed and updated CompletionFailedTest_ClassReference_NoPrefix_Bug50621 to CompletionTest_ClassReference_NoPrefix and moved to passed tests folder.
2004-01-28 04:00:32 +00:00
Hoda Amer
069a0e8535 Content Assist Work: More JUnit tests 2004-01-27 20:55:58 +00:00
John Camelon
52351e60d8 Patch for Andrew Niefer.
Updates to handle _Bool

Core:
 - modified  CompleteParseASTFactory.getParameterTypeInfo
                 CompleteParseASTFactory.createReference 
                 CompleteParseASTFactory.usualArithmeticConversions
                 CompleteParseASTFactory.getTypeKind
                 Parser.typeId
                 TypeFilter.shouldAccept
                 TypeInfo.equals
Core.tests:
- Added CompleteParseASTTest.testCBoolAsParameter
2004-01-27 20:39:34 +00:00
John Camelon
8e6d3ded24 Patch for Andrew Niefer
This patch provides handling of the C types _Complex, _Imaginary, _Bool & 
long long int in the parser symbol table. (bug45573)

Core:
        modified ParserSymbolTable.promotion() & conversion()
        added TypeInfo.isLongLong
        modified TypeInfo.canHold()

Core.tests:
        Added ParserSymbolTableTest.testLongLong() 
        Added ParserSymbolTableTest.testComplex() 
        Added ParserSymbolTableTest.test_Bool()
2004-01-27 02:36:30 +00:00
John Camelon
b5d5e34e25 Added traceLogs into Scanner. Fixed Bug 46402 : expression evaluation error on branch not taken. Added beginning of IScannerExtension and GCCScannerExtension support for gcc specific aspects. Added separate Scanner log category for tracing and updated clients to use it. 2004-01-27 01:23:29 +00:00
Hoda Amer
d4ca6eb809 Content Assist Work: More JUnit tests 2004-01-26 21:17:39 +00:00
John Camelon
7c3ab2617b Updated Scanner for content assist in preprocessor directives. 2004-01-23 21:04:23 +00:00
John Camelon
e35bc93925 Added token, scanner and problem subpackages to org.eclipse.cdt.internal.core.parser. Updated tests to accommodate. 2004-01-22 20:15:31 +00:00
John Camelon
34754f2099 org.eclipse.cdt.core
Fixed bug 50344 - Wrong completion in Class scope if before the first declaration.

org.eclipse.cdt.ui.tests
	Updated CompletionFailedTest_FieldType_NoPrefix_Bug50344 and moved from failed tests.
2004-01-22 18:51:18 +00:00
Hoda Amer
3f0448c576 Content Assist Work : small problem in CompleteParseASTFactory solved. 2004-01-22 16:08:35 +00:00