Doug Schaefer
b4fd69965f
Update to Scanner2.
2004-06-15 03:37:56 +00:00
Hoda Amer
55cf39aba4
Bug Fixing
2004-06-14 20:44:05 +00:00
Doug Schaefer
b560898413
Checking in Scanner2 and friends. This should hopefully be a faster scanner
...
and set us up for using char[]'s up the stack.
2004-06-14 16:04:28 +00:00
John Camelon
85be18a5f9
Partial fix for https://bugs.eclipse.org/bugs/show_bug.cgi?id=65610
2004-06-14 14:02:22 +00:00
John Camelon
92d74a7ca9
Scanner fix for lost comment character within an #ifdef'ed out block.
2004-06-14 12:49:22 +00:00
Andrew Niefer
7bc8d33c1a
fix bug 66744
2004-06-11 19:47:57 +00:00
John Camelon
dc9f25b601
Fixed https://bugs.eclipse.org/bugs/show_bug.cgi?id=60264
2004-06-10 19:33:38 +00:00
John Camelon
b7caa59093
Removed more warnings. Fixed https://bugs.eclipse.org/bugs/show_bug.cgi?id=66543 .
2004-06-10 18:51:47 +00:00
Hoda Amer
6ffa80bd87
Bug Fixing
2004-06-10 14:36:45 +00:00
Andrew Niefer
8d55216fb7
fixing bug 65114, NPE in getParentClassSpecifier(), caused by template
...
lookup issues in the class base clause
2004-06-09 21:33:50 +00:00
Andrew Niefer
e9c5a2b928
fix NPE for 65114. When returning references to the cache, we should also
...
remove them from the list they are in, so that we never try to return them
again (potentially after they had been reallocated)
2004-06-09 15:45:31 +00:00
Andrew Niefer
5ebfc42760
bug 49990 - strings for GCC expression extensions
2004-06-08 19:23:47 +00:00
John Camelon
8b2e0e8b4d
Fixed https://bugs.eclipse.org/bugs/show_bug.cgi?id=65555
2004-06-08 17:57:37 +00:00
Andrew Niefer
5a66875392
bug 49990 - ASTUtil.getExpressionString( IASTExpression )
...
- created ASTUnaryIdExpression classes
- improved handling of POSTFIX_TYPENAME_TEMPLATEID expressions
- modified handling of initializer clause for new expressions
- expression toString() functions use ASTUtil
2004-06-07 19:25:24 +00:00
John Camelon
69a1d5f73d
Moved KeywordSetKey to public interface.
...
Updated ParserFactory to allow querying upon different KeywordSetKey's.
2004-06-06 17:20:54 +00:00
John Camelon
da96e2c080
Fixed https://bugs.eclipse.org/bugs/show_bug.cgi?id=64268
2004-06-06 05:07:12 +00:00
John Camelon
a549ff4f27
Fixed https://bugs.eclipse.org/bugs/show_bug.cgi?id=65569
2004-06-06 04:23:22 +00:00
John Camelon
15e615de07
Fixed translationUnit exception handling to allow ParserErrors to propogate out.
2004-06-06 03:36:52 +00:00
John Camelon
cd01f65fe6
Removed warnings that Doug introduced.
2004-06-06 03:19:38 +00:00
Doug Schaefer
608ab71cce
Got rid of the break we added to translationUnit which ended up bringing
...
untimely endings to the parse. Also added a fix for Dave to nextToken in
the scanner which resulted in the massive increase of char[]s.
2004-06-05 02:47:08 +00:00
Doug Schaefer
a206e32d2a
Changed the interface to the Scanner to take a CodeReader object.
...
A CodeReader simply contains a char[] and the name of the file, if any,
that the char[] is the contents of. This leads us down the path of using
char[]s in the parser instead of Strings in an attempt to cut down on
our memory usage.
2004-06-04 21:01:48 +00:00
Andrew Niefer
88bb7ba72b
better cleanup after recursive template loop.
2004-06-04 15:39:39 +00:00
John Camelon
effb8b9fdb
Patch for David Daoust -Optimize the scanner to not tokenize the macro parameters if the expansion is null.
2004-06-04 15:30:09 +00:00
John Camelon
f8ede5731b
Patch for David Daoust - remove all instances of sub-Scanners in the scanner. Performance gains abound.
2004-06-04 14:27:46 +00:00
Andrew Niefer
b6aed83db2
fix bug 64939 - recursive loop
2004-06-03 18:48:17 +00:00
John Camelon
c3338eda94
Updated Parser.translationUnit() to catch all Throwable rather than Exception
2004-06-03 18:23:56 +00:00
John Camelon
a3995849f5
Put a public interface on accessing KeywordSets in ParserFactory.<BR>
...
Added preprocessor directives to KeywordSetKey.ALL.
2004-06-03 17:59:43 +00:00
John Camelon
1193d6341a
Fixed bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=47752 <BR>
...
Fixed bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=64321
2004-06-03 00:38:37 +00:00
John Camelon
d0c897c1e9
Fixed https://bugs.eclipse.org/bugs/show_bug.cgi?id=61603
2004-06-03 00:17:30 +00:00
John Camelon
33a07a1b47
Partial fix for https://bugs.eclipse.org/bugs/show_bug.cgi?id=64318
2004-06-02 23:48:40 +00:00
John Camelon
fb57293d47
Fixed https://bugs.eclipse.org/bugs/show_bug.cgi?id=52988 <BR>
...
Moved KeywordSets.Key to its own class and thus removing the dependency between the Scanner/Parser to the static Keyword Set tables (improves footprint). <BR>
Updated CompletionEngine to not set the parser timeout if the value entered is <= 0 (to allow for easier debugging and profiling).
2004-06-02 23:14:20 +00:00
John Camelon
5a685e501f
Fixed concurrent parse issue w/TypeId singleton.
2004-06-02 18:17:55 +00:00
John Camelon
bf8c96a8b1
Fixed https://bugs.eclipse.org/bugs/show_bug.cgi?id=64271
2004-06-02 17:39:45 +00:00
John Camelon
3394347e31
Further caching in the CompleteParseASTFactory.
2004-06-02 14:53:20 +00:00
Andrew Niefer
cb4ec57f90
Make the TypeInfoProvider non-static
2004-06-01 21:52:40 +00:00
John Camelon
cb8b2e2d42
Fixed Andrew's latest template test.
2004-06-01 21:25:23 +00:00
John Camelon
20a1cd8f35
Pooled class and variable references.
...
Cleaned up ASTFactory construction.
2004-06-01 21:11:08 +00:00
Andrew Niefer
441bdd65c8
fix up handling of defered template instances (a better fix for 64919)
2004-06-01 20:16:15 +00:00
Andrew Niefer
d4c76e1e98
fix bug 64919 - stack overflow in symbol table
2004-06-01 18:58:28 +00:00
Doug Schaefer
bee373939f
Removed the ScannerData object and moved it's fields right into the Scanner.
...
Made all users of getChar in the scanner call getChar(boolean) directly
to remove the extra call to getChar(void). Merged readFromStream in as well.
Finally, I have remove the trigraph code to remove the checks for every character.
A bug will be raised to reimplement this functionality elsewhere.
2004-06-01 15:04:28 +00:00
Andrew Niefer
9e483cb5fc
clean up imports ( fixes broken build )
2004-06-01 14:24:16 +00:00
Andrew Niefer
9c8337b751
-fix bug 64753
...
-also put in temporary fix for symbol table tests failing when run as
plugin tests but passing when run just as junits
2004-05-31 20:12:17 +00:00
Andrew Niefer
6d52df8fcd
pool some TypeInfos. This reduces memory allocated by about 3 megs during a parse of iostream & windows.h
2004-05-31 18:29:33 +00:00
Doug Schaefer
c839041374
New character array utilities that should make things much faster, one day...
2004-05-28 20:53:35 +00:00
Andrew Niefer
495d77744b
reduce the use of iterators in the symbol table
2004-05-28 19:02:32 +00:00
John Camelon
cf2a2a38e8
Further footprint optimization in parser and scanner.
2004-05-28 03:25:16 +00:00
Andrew Niefer
fc34ca8ab5
reduce the size of the base LookupData from 72 to 40 bytes.
...
Use abstract classes instead.
This reduces the memory used by LookupData by 3 meg during a
parse of iostream and windows.h
2004-05-27 22:26:56 +00:00
Andrew Niefer
361017e5d4
performance changes, use ArrayList instead of LinkedList, reduce use of iterators. saves 5%
2004-05-27 19:00:09 +00:00
John Camelon
dc9619b241
Further reduce memory footprint by trimming down Declarator and DeclarationWrapper classes.
2004-05-27 04:41:59 +00:00
John Camelon
1f636f83b5
Footprint optimizations for ITokenDuple implementations.
2004-05-27 03:32:18 +00:00