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

110 commits

Author SHA1 Message Date
Andrew Niefer
7f8eb9fbd2 bugs 66981, 66799 - don't do indexer requests if the indexer is turned off
for that project.  Also, when turning off the indexer, discard the queued up
jobs for that project.
2004-06-14 21:29:33 +00:00
Andrew Niefer
e9f3066ac6 bug 67001 - synchronize indexer job countdown, and only process job
cancel on tickdown
2004-06-14 18:21:28 +00:00
Andrew Niefer
41db303fbf bug 48308 - don't block the content assist while waiting for indexing,
force the search to happen on the partial index
2004-06-14 14:39:52 +00:00
Bogdan Gheorghe
49500fb30e Fix for Bug 63275 - Ensure that only declarations and references are found for enumerations/enumerators 2004-06-14 03:31:51 +00:00
Andrew Niefer
75fee20f69 fix bugs 43063 & 43498 2004-06-11 18:29:03 +00:00
Andrew Niefer
7858f60f7e fix for bug 64986 - handle containers in CSearchScope 2004-06-10 20:46:57 +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
Bogdan Gheorghe
eebe6d4aeb Externalized index notification job string 2004-05-28 20:18:29 +00:00
Bogdan Gheorghe
87e2ecff89 Fix for Bug 60946 - [Indexer] indexer should provide notification whenever index changes
Provide a notification to the listener of index events
Fix for Bug 44926 - add extensibility to gracefully handle preprocessor exceptions
Added an IndexProblemHandler to handle parser IProblem callbacks
2004-05-28 19:44:48 +00:00
Andrew Niefer
a7e23f8c15 remove warnings 2004-05-28 14:54:58 +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
Andrew Niefer
a4bc1beabc fix bug 63478 2004-05-21 21:08:40 +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
Andrew Niefer
701ada92df bug 62731 2004-05-21 18:16:58 +00:00
Bogdan Gheorghe
22055aad20 bug 63320 - Search does not consider working copies
Added a check to turn off indexer timer thread, if number entered is <= 0
2004-05-21 14:34:44 +00:00
Andrew Niefer
db5fe28b4e fix bug 62651 2004-05-18 19:20:23 +00:00
Bogdan Gheorghe
a8037dbc3a Fix for 62512
Added matching routine to IncludePattern
2004-05-18 02:29:20 +00:00
Andrew Niefer
9f21cf4d4a bug 61044 - report matches after each compilation unit 2004-05-17 18:06:33 +00:00
Bogdan Gheorghe
c3ff06502c Update search results as they come in 2004-05-17 05:14:31 +00:00
Bogdan Gheorghe
649504b424 Fix for bug 60491
Added working copy filtering to search engine
	From now on only relevent working copies are considered for search
	If no index paths are found then search will return no results regardless of any working copies passed in
2004-05-14 23:27:47 +00:00
Andrew Niefer
e22d8fbc58 show name of current index job in the progress view 2004-05-14 20:26:40 +00:00
Andrew Niefer
35b475be54 bug 56411 - a request to index a project will restart a paused index 2004-05-14 19:15:51 +00:00
Andrew Niefer
21c8756a37 bug 56411 2004-05-14 18:29:54 +00:00
Bogdan Gheorghe
79365779b6 Fix for intermittent search test failures 2004-05-12 03:48:17 +00:00
Bogdan Gheorghe
2f19221ac0 Modified indexer friend encoding to encode IASTElaboratedTypeSpecifier 2004-05-07 16:37:35 +00:00
Bogdan Gheorghe
c29caac4d0 Refactored search engine to take an IMatchLocator; added friends to the index: removed derived from search page 2004-05-06 18:33:01 +00:00
Bogdan Gheorghe
6f5c560309 Fix for Bug 54155 - [Scalability] Indexer bypassing filtering when project was closed and had no index
Fix for Search UI refresh on Linux
2004-04-21 06:33:32 +00:00
Alain Magloire
7ef1a6ed7e Change The Core Model interfaces to throw CModelException when
the fail abnormally.  This forces a lot of try{} catch(){}
bloks and rethrow to be added in the code.
2004-04-20 00:06:27 +00:00
Andrew Niefer
ed75b354ad speed up BasicSearchMatch.compareTo and .hashCode by reducing number of string objects created 2004-04-19 20:08:41 +00:00
Alain Magloire
3f68cfad81 Fix for PR 58481 2004-04-16 00:35:42 +00:00
Andrew Niefer
b3ac698a40 AST work for friend declarations
for bug 45235 AST does not capture class friend relationships 
and bug 53759 ISourceElementRequestor missing callbacks for friend declarations
2004-04-14 20:43:00 +00:00
Bogdan Gheorghe
91aab4d719 Added derived, enumerator types to the index. Modified search tests to work with new types, added new derived test. Modified Search dialog; added new types. 2004-04-12 17:43:20 +00:00
John Camelon
68365e4ac0 <BR>org.eclipse.cdt.core
<BR>&nbsp;Fixed https://bugs.eclipse.org/bugs/show_bug.cgi?id=55785.
<BR>&nbsp;Fix required update to ISourceElementRequestor interface : clients updated accordingly.
<BR>
<BR>org.eclipse.cdt.core.tests
<BR>&nbsp;Updated clients for ISourceElementRequestor.createReader() updates.
<BR>
<BR>org.eclipse.cdt.ui
<BR>&nbsp;Updated CompletionEngine to use shared working copies when parsing include files.
<BR>&nbsp;Updated clients for ISourceElementRequestor.createReader() updates.
2004-04-11 22:52:21 +00:00
Andrew Niefer
3f436ae1eb fix bug 54169 - Search fails to find enum declaration 2004-04-05 20:52:21 +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
Bogdan Gheorghe
5ab48f40ff External markers patch: allows searches on external included files 2004-03-24 15:29:07 +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
Bogdan Gheorghe
7ddc725965 Patch for Chris Wiebe: BasicSearchResultCollector refactoring
Refactored MouseClickListener out of CEditor; modified it to use CppCodeScanner keywords
Fixed Outline refresh problem by reverting to an earlier copy of WorkingCopyManager
2004-03-08 15:30:13 +00:00
Andrew Niefer
95f42aeb9e Bug 53213: Externalize Strings 2004-02-26 23:10:24 +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
Andrew Niefer
c1a246da20 Search Refactoring for bugs
50983 - OrPattern not visible
51250 - search engine throws runtime exception OperationCanceledException
2004-02-16 20:46:12 +00:00
John Camelon
39a6ce2544 Patch for Bogdan Gheorghe.
Improved error handling for Indexer 
Improved error handling for MatchLocator 
Bounds checking for mappings in IncudeEntry 
Improved error handling for Merge operations 
Source file name fitering for recreating an already existing index
2004-02-15 23:30:53 +00:00
Hoda Amer
2937f68a8c Patch for Bogdan : Search for function with no parameters VS ignore parameters. 2004-02-09 15:46:40 +00:00
Alain Magloire
65f227f889 2004-02-05 Alain Magloire
PR 51221
	Reformat Patch from Bogdan base on Thomas Fletcher original patch
	In a nutshell, it moves the search operation into a runnable which
	can be passed to a progress dialog.
2004-02-05 19:56:27 +00:00
John Camelon
b5d5e34e25 Added traceLogs into Scanner. Fixed Bug 46402 : expression evaluation error on branch not taken. Added beginning of IScannerExtension and GCCScannerExtension support for gcc specific aspects. Added separate Scanner log category for tracing and updated clients to use it. 2004-01-27 01:23:29 +00:00
Hoda Amer
1196d4a5ff Content Assist Work : Moved logging and testing to the UI side of CDT 2004-01-15 18:06:14 +00:00
John Camelon
192a8293ce org.eclipse.cdt.core
====================
Renamed IASTNode.LookupResult IASTNode.ILookupResult.  
Introduced new ParseError exception for contextual parse() methods.  
Renamed ParserFactoryException ParserFactoryError.  
Replaced ParserNotImplementedException with a variant of ParseError.
Updated IScanner & IParser to not reference OffsetLimitReachedException explicitly. 
Renamed ParserMode.CONTEXTUAL_PARSE to COMPLETION_PARSE.  
Cleaned up IMacroDescriptor and made Scanner definitions table consistent.
Added IScanner.getDefinitions() to return the entire Map of definitions to a client.
Removed most of the warnings from parser source directory.  
Removed the unused SyntaxErrorException. 
Provided partial fix for Bug 44370  IASTMacro requires more information for clients.  

org.eclipse.cdt.core.tests
==========================
Updated references to LookupResult as it was renamed to ILookupResult.  
Removed some warnings from parser tests.  
Updated Scanner & QuickParseTests to accommodate new errors and signatures.  
Added QuickParseASTTests.testBug44370().  

org.eclipse.cdt.ui
==================
Updated references to LookupResult as it was renamed to ILookupResult.  
Updated references of ParserFactoryException to ParserFactoryError.
Updated references of ParserNotImplementedException to ParseError. 
Updated references of CONTEXTUAL_PARSE to COMPLETION_PARSE.
2004-01-15 13:38:02 +00:00
Hoda Amer
7dc9ef21ba Content Assist work : Template Engine work 2003-12-22 21:12:56 +00:00
John Camelon
938c206289 CORE
Added OffsetLimitReachedException and restructured Parser exceptions.  
	Continued support for code assist/selection search parser.  
	Ensured all source in parser/ have copyright notices.  

TESTS
	Expanded ContextualParseTest::testBaseCase().  
	Updated tests to deal with new signatures/exceptions.  

UI
	Updated CompletionEngine to deal with new signatures/exceptions in parser.
2003-12-12 02:03:55 +00:00
John Camelon
97e203468e CORE
Cleaned up the ParserFactory interface to check for validity of input arguments.  
	Moved NullSourceElementRequestor and ScannerInfo to public interface as requested. 
	Restructured code so that no Eclipse/CDT source outside the parser source directory is used.
	Updated parser clients to use new ParserFactory (stand-alone parser work item).  	

UI & TESTS
	Updated parser clients to use new ParserFactory (stand-alone parser work item).
2003-11-05 23:35:28 +00:00