1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-09-03 13:43:31 +02:00
Commit graph

492 commits

Author SHA1 Message Date
John Camelon
87ce0c8d20 Fixed Bug 71839 [Parser] Parser in infinite loop (ExpressionParser.errorHandling()) 2004-08-19 03:26:52 +00:00
John Camelon
219b499fc9 Fixed Bug 71530 [Scanner] CModel Line Numbers are incorrect w/Scanner2 2004-08-16 19:54:13 +00:00
Andrew Niefer
8fde8e2822 fix bug 70073 2004-08-12 19:45:10 +00:00
Bogdan Gheorghe
4fd44238b9 Fix for Bug 59493: need to refine index query for open-type (2.0 Stream) 2004-08-11 20:05:35 +00:00
Andrew Niefer
16258395c2 fix 71331 2004-08-11 20:02:58 +00:00
Andrew Niefer
a7880c8fdc from a patch originally from Dave Daoust, consolidate the Scanner2 data
structures into a heirarchy, and for the char[] maps/sets, if the capacity is
<= 2, then don't use the hash and just do a linear search.

also clean up a couple of uses of ObjectSet that had size 0 in the symbol table,
use EMPTY_SET insteard.
2004-08-11 17:56:20 +00:00
John Camelon
4a8abd4c42 Fixed Bug 70928 [Parser] Indexer complains about __cdecl 2004-08-10 19:50:00 +00:00
Andrew Niefer
88d8cbb1c8 fix bug 71410 (in 2.0.1 branch) 2004-08-10 19:34:37 +00:00
John Camelon
e754fe2ab5 Additional JUnit tests to validate bug fixes in moving from Scanner to Scanner2. 2004-08-10 17:29:53 +00:00
Andrew Niefer
fd26b47ed0 This is merging the Parser performance changes from the HEAD to the 2.0.1 branch
The major performance defects this addresses are 59468, 54040, and 61675.

The following other correctness and related defects are also addressed or fixed.
68940, 69872, 71094, 68528, 71669, 61800, 68931, 68623, 69428, 69296, 69798,
69744, 69745, 68739, 69662, 69833
2004-08-10 15:58:59 +00:00
cvs2svn
10abc3427e This commit was manufactured by cvs2svn to create branch 'cdt_2_0'.
Cherrypick from master 2004-08-06 01:57:11 UTC John Camelon <jcamelon@ca.ibm.com> 'Restructured the Parser tests so that the GCC Extension specific ones are separate.':
    core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/GCCCompleteExtensionsParseTest.java
    core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/GCCParserExtensionTestSuite.java
    core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/GCCQuickParseExtensionsTest.java
    core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/scanner2/GCCScannerExtensionsTest.java
    core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/scanner2/ObjectMapTest.java
    core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/pst/BasicTypeInfo.java
    core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/pst/ITypeInfo.java
    core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner2/CharArraySet.java
    core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner2/HashTable.java
    core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner2/ObjectMap.java
    core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner2/ObjectSet.java
    core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/parser/ParserTimeOut.java
    core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/CContentOutlinerProvider.java
2004-08-06 01:57:12 +00:00
Bogdan Gheorghe
1ed9b81a2c Fix for Bug 60948: Indexer should pick up all headers in include path 2004-08-03 19:48:01 +00:00
Doug Schaefer
cccfea41ec Upgrade plugin versions to 2.0.1. 2004-07-16 19:17:26 +00:00
Bogdan Gheorghe
c95ad28dcb Fix for Bug 67987: [Search] C Search results do no show up as editor annotations 2004-06-28 05:16:32 +00:00
Bogdan Gheorghe
39fd1475ba Indirect fix for Bug 65551: [Search] Search for Variable references should not include parameters
Instead of excluding parameter references from searches, added parm declarations to the index (for
both functions and methods)
2004-06-25 20:43:44 +00:00
John Camelon
78cc9ee282 Fixed https://bugs.eclipse.org/bugs/show_bug.cgi?id=68527 2004-06-24 18:51:49 +00:00
John Camelon
552805bba5 Fixed https://bugs.eclipse.org/bugs/show_bug.cgi?id=43021 2004-06-24 16:06:27 +00:00
Doug Schaefer
7ae8c88828 Scanner2 - fixed some bugs. fixed some of the tests to report better errors,
changed the SpeedTest to produce more accurate numbers.
2004-06-23 20:17:49 +00:00
John Camelon
3783f1b7be Fixed https://bugs.eclipse.org/bugs/show_bug.cgi?id=68306 2004-06-23 18:24:41 +00:00
Doug Schaefer
d94a068c23 Scanner2 - fixed the nextToken() to match previous scanner's behavior. 2004-06-23 15:01:50 +00:00
Doug Schaefer
b97efa10b3 Scanner2 - final changes to scan the trilogy. 2004-06-23 11:36:05 +00:00
John Camelon
36ec31dca2 Fixed https://bugs.eclipse.org/bugs/show_bug.cgi?id=65610<BR>
Fixed https://bugs.eclipse.org/bugs/show_bug.cgi?id=65623
2004-06-23 00:18:14 +00:00
Andrew Niefer
b8c65f150f tests to show that bug 68235 is not our problem 2004-06-22 21:48:31 +00:00
Doug Schaefer
112cf2a908 Scanner2 - some more minor fixes. I'm getting close to the trilogy... 2004-06-22 21:03:53 +00:00
Andrew Niefer
d75195c520 fix for bug 68229 - problems with IToken.getNext() around places where subscanners are used 2004-06-22 20:38:34 +00:00
John Camelon
70f786631a Added long-line test case to QuickParseASTTests. 2004-06-22 15:15:58 +00:00
Andrew Niefer
dbcc3f2792 fix parsing of unary ampersand cast on an expression result 2004-06-21 21:35:04 +00:00
John Camelon
58d2390a65 Cached SimpleTypeSpecifiers in the CompleteParseASTFactory. Reduced parse footprint by a couple of MB. 2004-06-21 20:24:36 +00:00
Alain Magloire
a443caeb08 2004-06-18 Alain Magloire
This was heavy and lots of files were change.  The problem: to create the CElementInfo we use
	to synchronize of the CModelManager singleton instance, this was handy and allowed us to serialize
	the creation of the proxy info and save in the LRU cache.  Then came Eclipse-3.0 with job spawning
	everywhere, lots of deadlock since the CModelManager was lock and the singleton is the center
	to get all the info.  We use the same scheme as the JDT by using a ThreadLocal class cache
	to collect the information.  We fixed a couple of bug allong the way and probably introduce some.

	The tests were doing something stupid, by creating directly the TranslationUnit:
		new TranslationUnit(project, file);
	This does not work since only the sourceRoot can be the parent
	of a TranslationUnit, the tests are now fix bug we should restrict access of the class in the core model
	after 2.0.
2004-06-19 02:43:04 +00:00
John Camelon
03d8731b43 Added caching of type ID's in completeparse mode. 2004-06-18 18:54:00 +00:00
John Camelon
59f4a03242 Fixed https://bugs.eclipse.org/bugs/show_bug.cgi?id=67834. Thanks to Dave for the JUnit test. 2004-06-18 15:49:21 +00:00
Andrew Niefer
0454da5130 bug 67680 - better error handling around problems in the base clause specifier
fixes class cast exception
2004-06-18 15:25:56 +00:00
Doug Schaefer
8a05f34b0b Scanner2 - lots of little things trying to properly scan windows/stdio/iostream. 2004-06-17 21:27:37 +00:00
John Camelon
67ad3bb4b0 Fixed ClassCastException in CompleteParseASTTest. 2004-06-17 17:29:12 +00:00
John Camelon
6f1acede84 Patch for David Daoust - Fix for https://bugs.eclipse.org/bugs/show_bug.cgi?id=67622.<BR>
Also added 2 JUnit tests to verify.
2004-06-17 16:11:07 +00:00
Doug Schaefer
e92ee9c4db Added undef support, including remove method for CharArrayMaps. 2004-06-17 15:25:34 +00:00
Doug Schaefer
dec4af0b71 Got inclusions working, almost there for the speed test.... 2004-06-16 20:55:10 +00:00
Doug Schaefer
ed0afd6243 Scanner2 - added char literals and string concatenation. 2004-06-16 17:42:35 +00:00
Doug Schaefer
a259c14511 Fixed handling of defined() in expression evaluator. 2004-06-16 13:51:55 +00:00
Doug Schaefer
f88eb2a537 More fun with Scanner2, including a new Expression Evaluator. 2004-06-15 21:11:29 +00:00
Doug Schaefer
b4fd69965f Update to Scanner2. 2004-06-15 03:37:56 +00:00
Doug Schaefer
5efea562b9 Added command line version of ScannerSpeedTest to check for aprof. 2004-06-14 18:29:52 +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
Doug Schaefer
008ca93b73 Added command line version of ScannerSpeedTest to check for aprof. 2004-06-14 15:12:11 +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
Andrew Niefer
75fee20f69 fix bugs 43063 & 43498 2004-06-11 18:29:03 +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