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
John Camelon
f9dae150ff
Removed unnecessary lists.
2004-05-26 18:56:01 +00:00
Andrew Niefer
e2aba75dbb
- Move cdt.internal.core.parser.util.ASTUtil to cdt.core.parser.ast
...
- Modify search to use ASTUtil for building function parameter strings
- Modify selection search to use parameter info in search (bug 63966)
2004-05-26 18:24:15 +00:00
John Camelon
895266aebe
Partial fix for https://bugs.eclipse.org/bugs/show_bug.cgi?id=63966
2004-05-26 01:11:00 +00:00
Andrew Niefer
ef506f545b
fix bug 64010: if else if recursion looks like stack overflow
2004-05-25 22:20:43 +00:00
Andrew Niefer
c0ba9bebfc
fixing bug 62359 [Content Assist] failure on iostream in Linux
...
- fix problem during errorhandling
- fix operator function names
- fix NPE during template argument deduction
2004-05-25 18:42:30 +00:00
John Camelon
4e4b2fc233
Ensured BufferedReaders are used in the Scanner.
2004-05-25 18:31:25 +00:00
John Camelon
7b873687b6
Cleaned up translationUnit() backtracking.
2004-05-25 18:04:24 +00:00
John Camelon
29fdfabb37
Fixed loop-detection code in Parser:cInitializer.
2004-05-25 01:09:58 +00:00
John Camelon
18de33d8a9
https://bugs.eclipse.org/bugs/show_bug.cgi?id=62009
2004-05-25 00:47:19 +00:00
Andrew Niefer
4b1ecbf65b
bug 43014, 62979: Reporting IProblems encountered during indexing. Only preprocessor problems to start
2004-05-21 20:33:16 +00:00
John Camelon
a355b2cf1d
Fixed https://bugs.eclipse.org/bugs/show_bug.cgi?id=62728
2004-05-21 17:54:41 +00:00
John Camelon
129dd89591
Fixed https://bugs.eclipse.org/bugs/show_bug.cgi?id=62725
2004-05-21 15:31:24 +00:00
John Camelon
d595dc0508
Fixed https://bugs.eclipse.org/bugs/show_bug.cgi?id=62721
2004-05-21 15:01:57 +00:00
John Camelon
95d5594fd0
Fix content assist to work w/WorkingCopy again.
...
Further memory enhancements.
2004-05-20 21:40:56 +00:00
John Camelon
058f823d2e
Changed infinite-loop checking to use hashcodes rather than offsets, as offsets are not unique when we expand macros. <sigh>
2004-05-20 15:41:38 +00:00
John Camelon
6b63b8ab83
Add basecase to TokenDuple.createStringRepresentation
2004-05-20 01:43:44 +00:00
John Camelon
a3179774f5
Changed CModelBuilder & CompletionEngine to use buffered input streams rather than String/CharArray Readers
2004-05-20 00:25:33 +00:00
John Camelon
b87794dd73
Cleaned up token storage in the Parser to reduce peak memory usage upon parsing large expressions/initializers.
2004-05-19 21:50:52 +00:00
John Camelon
22c73dc031
Reduced the number of TokenDuple's instantiated during a parse. <BR>
...
Removed symbol table warnings.
2004-05-19 18:17:14 +00:00
John Camelon
9ebf2c9909
Patch for David Daoust: Removed extraneous StringBuffer objects from the Scanner.
2004-05-19 15:35:06 +00:00
John Camelon
4abe159ab8
Made significant footprint improvements to the parser.
2004-05-18 20:41:15 +00:00
John Camelon
09fd1318d0
Removed extraneous TokenDuple object creation.
2004-05-18 18:14:09 +00:00
John Camelon
a86bb76c6a
Removed warnings.
2004-05-17 23:37:25 +00:00
John Camelon
591d1d3a21
Fixed https://bugs.eclipse.org/bugs/show_bug.cgi?id=62390
2004-05-17 23:26:39 +00:00
John Camelon
cf81ad24a9
Fixed https://bugs.eclipse.org/bugs/show_bug.cgi?id=62515
2004-05-17 19:07:45 +00:00
John Camelon
787b5dfcc3
Removed warnings.
2004-05-17 18:16:43 +00:00
John Camelon
5706a3abe2
Fixed https://bugs.eclipse.org/bugs/show_bug.cgi?id=62384
2004-05-15 17:31:25 +00:00
John Camelon
c2b76e8109
Fixed https://bugs.eclipse.org/bugs/show_bug.cgi?id=62378
2004-05-15 17:11:34 +00:00
John Camelon
06d6b593af
Fixed https://bugs.eclipse.org/bugs/show_bug.cgi?id=62339
2004-05-15 15:13:10 +00:00
John Camelon
1ce41b077c
Partial fix for bug 62359
2004-05-14 20:33:17 +00:00
John Camelon
bab1a0f7cf
Enhanced the performance & footprint of the parser by reducing number of lists created and getting rid of extraneous cross-reference construction in ParserMode's that do not warrant it.
2004-05-14 19:26:59 +00:00
John Camelon
b1157be81c
Fixed https://bugs.eclipse.org/bugs/show_bug.cgi?id=61968
2004-05-13 19:40:39 +00:00
John Camelon
87821eb4fc
Fixed https://bugs.eclipse.org/bugs/show_bug.cgi?id=62042
2004-05-13 18:52:13 +00:00
John Camelon
b1b1ec1458
Add javadoc to ParserFactory.
2004-05-13 18:15:28 +00:00
John Camelon
5ba83e3c91
Patch for David Daoust. <BR>
...
Refactored the scanner to make Scanner Contexts more specific for macro expansions and inclusions, yielding performance and memory improvements.
2004-05-13 13:15:40 +00:00
John Camelon
e856459e93
Fixed NumberFormatException in TokenFactory for large int's.
...
Fixed numerous SelectionParse problems found through my own experimentation.
2004-05-12 18:00:58 +00:00
John Camelon
b988081c1f
Another partial fix for https://bugs.eclipse.org/bugs/show_bug.cgi?id=60298
2004-05-11 19:43:05 +00:00
John Camelon
6043c77b35
Partial fix for https://bugs.eclipse.org/bugs/show_bug.cgi?id=60298
2004-05-11 15:53:26 +00:00
John Camelon
a92b1a4015
Made as many built-in Scanner-internal macros constants as possible.
2004-05-11 14:51:59 +00:00