1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-02 13:55:39 +02:00
Commit graph

355 commits

Author SHA1 Message Date
John Camelon
864b6075c5 Updated errorhandling in Parser::translationUnit(). 2004-04-11 05:33:10 +00:00
John Camelon
8a4ada65b3 <BR>org.eclipse.cdt.core<BR>
&nbsp;&nbsp;Removed unused methods from IToken.<BR>
&nbsp;&nbsp;Restructured Token implementation to be more memory efficient.<BR>
&nbsp;&nbsp;Tightened up visibility of different members in the implementation.<BR>
&nbsp;&nbsp;Added TokenFactory construct to isolate IToken clients from the particulars of which IToken implementation to instantiate.<BR><BR>
org.eclipse.cdt.core.tests<BR>
&nbsp;&nbsp;Updated ScannerTestCase to correspond with changes to IToken and its implementations.
2004-04-11 04:18:24 +00:00
John Camelon
5f7bf6d199 Partial fix for <A HREF="https://bugs.eclipse.org/bugs/show_bug.cgi?id=57898">Bug 57898 [Search] Selection search does not work under all circumstances</A> 2004-04-10 15:43:27 +00:00
Andrew Niefer
daaf6bcf2b fix NPE and ClassCastException encountered while parsing <list>
fix bug in handling some template member templates
2004-04-09 20:58:13 +00:00
Andrew Niefer
32abdb30e8 fix bug 57754, fix instantiating constructors, fix some problems with explicit specialization 2004-04-09 17:52:34 +00:00
John Camelon
1ac6f78fc3 org.eclipse.cdt.core<BR>
&nbsp;&nbsp;Fixed https://bugs.eclipse.org/bugs/show_bug.cgi?id=57800.<BR><BR>
org.eclipse.cdt.core.tests<BR>
&nbsp;&nbsp;Removed warnings from CompletionTests.<BR>
&nbsp;&nbsp;Added CompleteParseASTTest::testBug57800().<BR>
2004-04-08 14:38:14 +00:00
John Camelon
5cc0a37e2b org.eclipse.cdt.core <BR>
&nbsp;&nbsp;Fixed https://bugs.eclipse.org/bugs/show_bug.cgi?id=50808. <BR>
&nbsp;&nbsp;Provided partial fix for https://bugs.eclipse.org/bugs/show_bug.cgi?id=50807. <BR>
&nbsp;&nbsp;Provided partial fix for https://bugs.eclipse.org/bugs/show_bug.cgi?id=52988. <BR>
&nbsp;&nbsp;Introduced EMPTY_STRING, a single constant that replaced > 100'S O literal "" in the code. <BR>
&nbsp;&nbsp;Updated IASTCompletionNode interface to provide better support for FUNCTION_REFERENCE and CONSTRUCTOR_REFERENCE. <BR>
&nbsp;&nbsp;Implemented IASTTypeId.getFullSignature() for both QUICK_PARSE and COMPLETE_PARSE. <BR>
&nbsp;&nbsp;Tweaked ASTNode.lookup() so that it would work for FUNCTION_REFERENCE. <BR><BR>
org.eclipse.cdt.ui <BR>
&nbsp;&nbsp;Updated CompletionEngine to use the extended IASTCompletionNode interface for FUNCTION_REFERENCE. <BR><BR>
org.eclipse.cdt.ui.tests <BR>
&nbsp;&nbsp;Updated CompletionFailedTest_ConstructorReference_Bug50808, renamed it to CompletionTest_ConstructorReference and moved it out of the failed tests folder. <BR>
&nbsp;&nbsp;Updated CompletionFailedTest_TypeDef_Bug52948, renamed it to CompletionTest_TypeDef_Prefix and moved it out of the failed tests folder. <BR>
&nbsp;&nbsp;Renamed CompletionTest_TypeDef_Bug52948 it to CompletionTest_TypeDef_NoPrefix. <BR>
&nbsp;&nbsp;Updated CompletionTest_SingleName_Parameter and renamed it to CompletionTest_FunctionReference_Prefix. <BR>
&nbsp;&nbsp;Updated CompletionFailedTest_FunctionReference_Bug50807, renamed it to CompletionTest_FunctionReference_NoPrefix and moved it out of the failed tests folder. <BR>
2004-04-08 00:33:43 +00:00
Andrew Niefer
d7664718ae fix lookup in parents while doing content assist on list out of <list> 2004-04-07 21:24:40 +00:00
Andrew Niefer
070f6eb80f fix bug 44338 2004-04-07 15:17:25 +00:00
Andrew Niefer
83c0dabdbd changes for parsing iostream in a standard project with discovered symbols 2004-04-07 14:24:42 +00:00
John Camelon
26facfb422 org.eclipse.cdt.core
Provided a partial fix for https://bugs.eclipse.org/bugs/show_bug.cgi?id=50152
	Updated IExpressionParser::expression() interface necessitated by this fix, and updated its clients appropriately.  

org.eclipse.cdt.core.tests
	Updated test cases that used IExpressionParser::expression().  
	Added CompletionParseTest::testCompletionInFunctionBodyFullyQualified(). 
	Added CompletionParseTest::testCompletionInFunctionBodyQualifiedName().

org.eclipse.cdt.ui.tests
	Updated CompletionFailedTest_ScopedReference_Prefix_Bug50152, moved it out of failed tests package and renamed it to CompletionTest_ScopedReference_Prefix_Bug50152.
	Updated CompletionFailedTest_TypeDef_Bug52948, moved it out of failed tests package and renamed it to CompletionTest_TypeDef_Bug52948. 
	Updated CompletionFailedTest_ScopedReference_NoPrefix_Bug50152 to show Hoda/Andrew what is still broken.
2004-04-07 04:32:18 +00:00
John Camelon
0662f31cee Patch for David Daoust.
Removed some temporary objects that the scanner was producing.
	Fixed small bug in GCCScannerExtension these changes brought to the surface.
2004-04-06 21:31:15 +00:00
Andrew Niefer
34db07a830 small changes to help with template parsing 2004-04-06 18:12:55 +00:00
Andrew Niefer
671986dfa7 fix for bug 47625 2004-04-06 15:38:08 +00:00
John Camelon
d22e72fb14 org.eclipse.cdt.core
Fixed https://bugs.eclipse.org/bugs/show_bug.cgi?id=39704 
	Fixed https://bugs.eclipse.org/bugs/show_bug.cgi?id=29060 

org.eclipse.cdt.core.tests
	Moved testBug39704A(), testBug39704B(), testBug39704C() & testBug39704D() from ASTFailedTests to QuickParseASTTests.
2004-04-06 14:37:29 +00:00
John Camelon
70aaf923d3 org.eclipse.cdt.core
Fixed https://bugs.eclipse.org/bugs/show_bug.cgi?id=47797

org.eclipse.cdt.core.tests
	Added ScannerTestCase::testBug47797().
2004-04-06 05:11:00 +00:00
Andrew Niefer
024eca4958 - performance improvements with Problem reporting originally from Dave Daoust
- added CompleteParseASTFactory.shouldThrowException, so we can ignore certain problems
  encountered while parsing templates
- fix NPEs caused by bad type info objects
2004-04-05 18:18:57 +00:00
John Camelon
1d97cb0d81 Fixed NPE in CompleteParseASTFactory.createUsingDeclaration() 2004-04-05 05:24:40 +00:00
John Camelon
8a6680ea21 org.eclipse.cdt.core
Fixed https://bugs.eclipse.org/bugs/show_bug.cgi?id=54029

org.eclipse.cdt.core.tests
	Added CompleteParseASTTest::testBug54029().
2004-04-05 04:25:33 +00:00
John Camelon
91571bd2e5 org.eclipse.cdt.core
Fixed https://bugs.eclipse.org/bugs/show_bug.cgi?id=56516  
	Fixed https://bugs.eclipse.org/bugs/show_bug.cgi?id=53786

org.eclipse.cdt.core.tests
	Added CompleteParseASTTest::testBug56516() && CompleteParseASTTests::testBug53786().
2004-04-05 03:50:41 +00:00
John Camelon
9138c8d397 Removed warning. 2004-04-05 01:57:56 +00:00
Andrew Niefer
4973e16836 handle template explicit instantiations
partial fix for bug 56834
handle use of template default parameters
2004-04-02 19:20:34 +00:00
John Camelon
11d74c9995 org.eclipse.cdt.core
Updated SelectionSearch to work for functions, variables with initializers, etc.
	Fixed https://bugs.eclipse.org/bugs/show_bug.cgi?id=39705
	Fixed https://bugs.eclipse.org/bugs/show_bug.cgi?id=44336  
	Fixed https://bugs.eclipse.org/bugs/show_bug.cgi?id=36770  
	Partial fix for https://bugs.eclipse.org/bugs/show_bug.cgi?id=51428  
	Fixed https://bugs.eclipse.org/bugs/show_bug.cgi?id=39694  

org.eclipse.cdt.core.tests
	Added SelectionParseTest::testBaseCase_FunctionDeclaration().  
	Added SelectionParseTest::testBaseCase_FunctionDeclaration2().  
	Added SelectionParseTest::testBaseCase_VariableDeclaration().  
	Added SelectionParseTest::testBaseCase_Parameter().  
	Added QuickParseASTTests::testBug44336().  
	Added ScannerTestCase::testBug36770B(). 
	Moved testBug39705() from ASTFailedTests to QuickParseASTTests.  
	Moved testBug39694() from ASTFailedTests to QuickParseASTTests.
2004-04-02 18:51:01 +00:00
John Camelon
8fda490dee Partial fix for Bug 56614 - Content Assist] Global variables do not appear in a global completion list 2004-03-30 12:47:04 +00:00
Andrew Niefer
b5f7b12be4 fixed bug 56620 - Outline view stops on error on last line of block
(errorHandling() goes to far)
2004-03-29 22:21:45 +00:00
John Camelon
13b3c99749 Fixed Bug 56517 - Preprocessor skipping doesn't ignore the contents of string literals. 2004-03-29 20:56:02 +00:00
John Camelon
6537609bed Remove warnings. 2004-03-28 23:00:41 +00:00
Andrew Niefer
8dde2f9a0e better handling of template template parameters 2004-03-26 20:08:05 +00:00
Andrew Niefer
bb598c9a99 report references for symbols used in template-ids 2004-03-26 15:50:31 +00:00
Andrew Niefer
2153d2d6ec ITokenDuple support for seperating fully qualified names that use template-ids,
also modify IASTFactory.createField & createVariable to take ITokenDuple for name
Better treatement for definitions of static members of template classes.
2004-03-25 22:10:50 +00:00
Hoda Amer
f2dba87e93 Joined effort with Bogdan, Added parser timeout capability that is used by Content Assist 2004-03-25 18:48:27 +00:00
Andrew Niefer
d15c793d77 - fix bug 55673 2004-03-23 16:46:12 +00:00
Andrew Niefer
5fdc4f5c05 Better handling of typedefs & fix various problems encountered while parsing templates 2004-03-22 18:23:22 +00:00
Hoda Amer
cb1e01065f Fix for bug#54325 Refactor: Check for name collision 2004-03-19 17:02:18 +00:00
Andrew Niefer
51131345db parsing template-ids, enabling template instantiations & class template partial specializations & indirectly fixes bug 54778 2004-03-18 23:20:16 +00:00
Andrew Niefer
e6f4fa5890 bug 55163 - Parser spins on for-init-statement 2004-03-17 21:33:49 +00:00
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