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

331 commits

Author SHA1 Message Date
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
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