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

104 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
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
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
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
Bogdan Gheorghe
7fa8a0305e Fix for Bug 63831 - Ability to determine when the index is incomplete
Provided a way for external clients to query the index state of a project
2004-05-28 22:07:10 +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
a38caa6521 don't report problems for circular inclusions 2004-05-28 19:29:24 +00:00
Andrew Niefer
a7e23f8c15 remove warnings 2004-05-28 14:54:58 +00:00
Bogdan Gheorghe
742d1b1514 Fix for Bug 58716 - [Refactoring] Subdirectories confuse refactoring
Added a listener to path change events from the core model; retrigger
indexing based on the level of the change event
2004-05-27 21:17:45 +00:00
Bogdan Gheorghe
cf466da37f Fix for Bug 62015 - Indexer to not rely on file extension for translation Unit
Changed all indexer file type checking to use the CoreModel file resolution services.
2004-05-27 19:07:09 +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
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
Bogdan Gheorghe
47da7cb742 Modified updateCurrentDeltaAndIndex in DeltaProcessor.java to return whether
we need to traverse a delta's children.
2004-05-20 19:51:23 +00:00
Bogdan Gheorghe
191dd913bd First go at putting in source folder indexing. Index All events will index
source folders (still need to put in includes indexing).
2004-05-19 05:59:43 +00:00
Bogdan Gheorghe
14804f770c Fix for bug 61332 - make sure that the timer is ready to go before starting a new index 2004-05-17 03:57:55 +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
Bogdan Gheorghe
2f19221ac0 Modified indexer friend encoding to encode IASTElaboratedTypeSpecifier 2004-05-07 16:37:35 +00:00
Bogdan Gheorghe
02876832bb Fix for Bug 61332 2004-05-06 23:21:22 +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
72799392c9 Added code to load and store index enablement setting from a project's descriptor 2004-05-05 17:01:19 +00:00
Bogdan Gheorghe
580e67dcec Changes to allow for enablement of the indexer at project creation time - includes new project property for disabling indexer. 2004-05-03 17:29:17 +00:00
Alain Magloire
7b5b147d8d Leave the indexer alone it is dependent on those
file extensions.  TODO remove later.
2004-04-30 00:21:48 +00:00
Alain Magloire
1529ec129e Changes to working copy, to be wrap in runnable Plaform
operation when commiting or destroying the working copy.
	Also changes to the ICElementDelta to be fired in a
	Workspace runnable.
2004-04-30 00:07:29 +00:00
Hoda Amer
8bfccbdedf Refactoring bug fixes 2004-04-26 17:40:58 +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
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
85666c920f Indexer watchdog patch 2004-04-13 03:52:56 +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
Doug Schaefer
3a5e182ba9 Fixed the warnings from the nightly build. There seems to
be a problem with Organize Imports which adds
unnecessary imports so I anticipate these returning
over time until the Organize Imports feature is fixed.
2004-04-06 14:24:15 +00:00
Bogdan Gheorghe
98583fe50f Fix for build hang caused by Indexer; DependencyTest fix 2004-04-01 18:41:01 +00:00
Bogdan Gheorghe
affd1175f1 Fix for 56943 - CDT hang on Autobuild, added missing index marker icon 2004-03-31 19:41:59 +00:00
Bogdan Gheorghe
5c3d8fdb41 Fix annotations in overview bar, added index IProblem markers, added new preference page for controlling external search markers 2004-03-31 07:57:18 +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
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
70dac4bf81 - Added hyperlink support to the CEditor
- Added a Navigation preference page to the CEditor
- Changed SourceIndexer to use a BufferedReader
- Modified OpenDeclarationsAction to use selection search parser
2004-03-05 00:45:15 +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
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
John Camelon
a69ae2ccf2 Patch for Bogdan Gheorghe
This patch adds a layer of separation between the indexer and the parser by running the parser in its own thread. This allows the indexer to finish all jobs regardless of the individual parser outcomes. Also fixed a potential EOF bug while reading stored indexes.
2004-02-10 18:17:42 +00:00
Alain Magloire
877147feef put the PR # 2004-02-03 16:04:41 +00:00
Alain Magloire
c5c3b2e7e9 Patches from Thomas Fletcher to deal with some
short comings of the indexer when dealing with
Very large scale projects.
2004-02-03 16:03:03 +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
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
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
John Camelon
56c76eb3e7 CORE
Removed warnings from parser source tree.  
	Removed preliminary task tags support to clean up parser interfaces and implementation.   
	Added preliminary IProblem support to 

UI
	Updated parser clients to use new IProblem strategy.  

TESTS
	Updated parser clients to use new IProblem strategy.
2003-11-05 18:15:21 +00:00
Doug Schaefer
92669e0062 Patch for Bogda Gheorghe: (44366 & 45324)
- Moved off all dependency calculations to the Indexer thread,
created a new UpdateDependency job
- Modified CSearchOperation to only lock the workspace when
tagging resources with markers.
2003-10-27 20:57:47 +00:00
John Camelon
bc158cc0fb Patch for Bogdan Gheorghe
This patch: 

- changes the indexer to use whatever source/header extensions are defined in CModelManager 
- updated the search shortcut so that Ctrl + H will bring up the C/C++ search in a source/header extension file 
- flushes the CDT log file after each index merge (ie. each time the indexer completes an index)
2003-10-01 22:15:38 +00:00
John Camelon
0d05a8342d Patch for Bogdan Gheorghe.
This patch fixes the indexer merge problem on large projects. 

Automation Test Suite run on Windows + Linux.
2003-10-01 19:43:06 +00:00