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

319 commits

Author SHA1 Message Date
Andrew Niefer
4b5850c062 scanner performance improvements from Dave Daoust 2004-03-16 22:23:36 +00:00
Andrew Niefer
5a0369683c This patch is the start of parsing templates. Template uses that don't require a template-id should work. 2004-03-15 16:17:42 +00:00
Andrew Niefer
3846748090 There was a NPE in CompleteParseASTFactory.createElaboratedTypeSpecifier in the case
where it was not a forward declaration and the symbol was not found during lookup.

report a IProblem.SEMANTIC_NAME_NOT_FOUND instead of NPE
2004-03-12 16:30:45 +00:00
Andrew Niefer
c8ecd11deb bug 54639 Typedef of enumeration fails complete parse 2004-03-12 15:49:12 +00:00
Andrew Niefer
2d45963863 bug 54639 Typedef of enumeration fails complete parse 2004-03-12 15:44:06 +00:00
John Camelon
2a28b0cfa7 Refactoring of Scanner to allow reuse in GCCScannerExtension for #include_next 2004-03-11 20:47:34 +00:00
John Camelon
9b0029a7dd Further performance improvements in Scanner. 2004-03-10 16:53:54 +00:00
Andrew Niefer
9838c1b387 bug 52948 - Content Assist -typedef'd types do not appear in the completion list 2004-03-09 19:07:22 +00:00
John Camelon
2805a77fe0 Put back the work to reconcile relative paths w/IResource readers which was lost upon merge. 2004-03-09 18:54:05 +00:00
John Camelon
f28275b669 Patch for Dave Daoust
Removed the Strings associated with constant value tokens and keywords  -- it looks cleaner, and reduces the number of objects created (only by 30 to 40 K) (about 2% quicker) 
Buffered the File I/O associated with reading inclusions.
Restructured the scanner into a large case statement with a few helper functions -- this is the start of removing the strings (or providing a preallocated buffer for string manipulation) (about 2% quicker)
2004-03-09 18:22:35 +00:00
Hoda Amer
29adda7a82 Partial Fix for bug#52948 2004-03-08 21:20:11 +00:00
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