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

2393 commits

Author SHA1 Message Date
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
157f44eef3 Submitted tests to validate fix for https://bugs.eclipse.org/bugs/show_bug.cgi?id=61972 2004-06-04 15:03:15 +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
Alain Magloire
0041b93111 Fix for PR 64197 60906
* src/org/eclipse/cdt/ui/dialogs/BinaryParserBlock.java
2004-06-04 02:27:14 +00:00
Alain Magloire
df3c06eb4b Again the problem:
Eclipse filename association with editors is done strictly via
	the plugin.xml(and Preference Page).
	The CDT is ship with a sensible default i.e. *.c, *.h, *.cpp etc ..
	We use an hack in EditorUtility.getEditorID(...)
	To change this behaviour for the CView and the
	COutliner.

	Added support for DoubleClick to open a header
	in the outliner.

	Related PRs: 64834, 44363
2004-06-04 02:05:39 +00:00
Doug Schaefer
18ef4dfec9 Update to the speed test. 2004-06-03 19:38:06 +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
Alain Magloire
9ca9d91f64 The Elf class should not depend of GNU
binutils tools like Addr2line or CPPFilt
	It is an Elf Parser and the needs of those tools
	are now part of IBinaryParser class
	* utils/org/eclipse/cdt/uitls/elf/AR.java
	* utils/org/eclipse/cdt/uitls/elf/Elf.java
	* utils/org/eclipse/cdt/uitls/elf/ElfHelperjava
	* utils/org/eclipse/cdt/uitls/elf/parser/ElfBinaryObject.java
2004-06-03 16:02:20 +00:00
David Inglis
2989ee4537 fixed https://bugs.eclipse.org/bugs/show_bug.cgi?id=65564 2004-06-03 15:52:16 +00:00
David Inglis
4d51a02662 add throws CoreException on getStream.... 2004-06-03 15:16:56 +00:00
Alain Magloire
965f0a205d Patch from Sam Rob, fix for 64783
* src/org/eclipse/cdt/internal/ui/preferences/CFileTypesPreferencePage.java
	* src/org/eclipse/cdt/internal/ui/preferences/CFileTypesPropertyPage.java
2004-06-03 14:42:21 +00:00
Andrew Niefer
6ceb2d0ee8 bug 65477 2004-06-03 13:45:11 +00:00
Doug Schaefer
34bb8dd348 Added a speed test so that I can track the progress of the parser performance work. 2004-06-03 12:53:47 +00:00
Alain Magloire
d12ebf93d3 Catch IndexOutOfBound 2004-06-03 02:57:51 +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
Andrew Niefer
47cf73d0b6 guard against possible NPEs 2004-06-02 21:40:22 +00:00
Andrew Niefer
29789baba4 bugs 60318 64739 2004-06-02 21:22:37 +00:00
Andrew Niefer
390e03694a fix NPEs (bug 65145) 2004-06-02 19:09:25 +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
Bogdan Gheorghe
3f2cd224a1 Fix for Bug 61241 - [Search] Closing the Search view mid search causes an error 2004-06-02 17:20:01 +00:00
Alain Magloire
a354b64c58 Wrong label 2004-06-02 15:48:29 +00:00
John Camelon
3394347e31 Further caching in the CompleteParseASTFactory. 2004-06-02 14:53:20 +00:00
Alain Magloire
cab2547573 Format the source Hovering better.
* src/org/eclipse/cdt/internal/ui/text/c/hover/CSourceHover.java
	* src/org/eclipse/cdt/internal/ui/text/c/hover/SourceViewerInformationControl.java
2004-06-02 02:32:10 +00:00
Andrew Niefer
0cbc0f095d fix warning 2004-06-01 21:55:13 +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
Alain Magloire
8ef916c2ff IndexOutOfBound Exception fix 2004-06-01 21:11:00 +00:00
David Inglis
cad6860ec1 use monitor passed in 2004-06-01 20:26:01 +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
Alain Magloire
d7be8043d6 oops typo!!!! 2004-06-01 19:37:47 +00:00
Alain Magloire
37f1e5f996 2004-06-01 Alain Magloire
A release of the CDT was distributed with
	a typ "ELF" instead of "Elf" we provide
	and extension point pointing back to "ELF"
	parser for backward comp.  But ignoring
	it in the UI.

	* src/org/eclipse/cdt/ui/dialogs/BinaryParserBlock.java
2004-06-01 19:33:10 +00:00
Andrew Niefer
d4c76e1e98 fix bug 64919 - stack overflow in symbol table 2004-06-01 18:58:28 +00:00
David Inglis
424cfd2211 [scalability] TU check for existance should just be resource test instead of parsing the file. 2004-06-01 18:32:12 +00:00
Alain Magloire
2beb6089ea Fall back on the Nature of the project
to decide of the syntax of the CEditor.

	* src/org/eclipse/cdt/internal/ui/editor/CEditor.java

	NPE in the CSourceHover.

	* src/org/eclipse/cdt/internal/ui/text/c/hover/CSourceHover.java
2004-06-01 18:29:35 +00:00
Doug Schaefer
59694ccf88 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:16:55 +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
Alain Magloire
6124157bef 2004-05-31 Alain Magloire
Putting a good chunk of code(Taken from JDT)
	to do proper hovering.
2004-06-01 05:13:07 +00:00
Bogdan Gheorghe
db3e3b19c4 Added warning message to status line when C/C++ search page is invoked and not all
projects in the workspace have indexing turned on.
2004-06-01 04:37:02 +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
David Inglis
34f6b89386 [scaleablity] don't involve filter when testing for expandablity. 2004-05-31 16:18:00 +00:00
David Inglis
92b484a970 fixed NPE in build console when console manager was not finsihed being initialized and the console was being written to. 2004-05-31 14:13:50 +00:00