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

92 commits

Author SHA1 Message Date
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
John Camelon
46a9e7fd6f Patch for Bogdan Gheorghe.
Here's a patch that creates and manages a CDT log file in the .metadata\.plugins\org.eclipse.cdt.core folder. This log file, for now, will contain indexer failure messages and parser failure messages - particularly inclusion failures. These messages were being logged to the PDE error log which, given the number of failures that we can expect on some files, was filling up rather quickly. I put a 5MB limit on the CDT log file after which it gets deleted and a new one gets created. The intent of this log file is to help a user figure out why something isn't being indexed properly - the usual reasons are: i) can't find an include file, ii) symbols not defined. 

Also in this patch are 2 minor UI fixes: i) dedicated to Brent - Ctrl+H now brings up the C++ Search Dialog for all C Editor supported extensions, and ii) especially for Alain - F3 will perform a Open Declarations.
2003-10-01 13:33:39 +00:00
Doug Schaefer
3b2b1c6a42 Patch for Bogdan Gheorghe:
This patch integrates the dependency calculator into
the indexer. As a result the underlying indexer file storage
format has changes. Lots of detail in the change logs of
exactly what changed...
2003-09-26 17:53:45 +00:00
John Camelon
9eab565dd0 Patch for Bogdan Gheorghe
Fixed  Bug 42685, Bug 43474. 

This patch: 
  - removes the old CTags Indexer 
  - removes the remaining Indexer block UI item under  Project Properties 
  - enables the Indexer on all projects
2003-09-23 15:17:20 +00:00
John Camelon
51a73af86d Patch for Andrew Niefer
core :
        - add parameter references to index
        - modify CharOperation.match to allow escaping wildcards 
(bug43063)
        - modify AbstractIndexer.bestPrefix to handle wildcard escaping in 
name (bug43063)
        - modify CSearchPattern to handle escaping wildcards (bug43063)
        - modify enterFunctionBody and enterMethodBody to fix bug42979
        - search for Parameter References
        - added setThrowExceptionOnBadCharacterRead to IScanner to help 
with wildcard bug43063

tests:
        - modified resources/search/classDecl.cpp & include.h to include 
some operators
        - added testOperators_bug43063_bug42979() to 
MethodDeclarationPatternTests
        - added testParameterREferences to OtherPatternTests
2003-09-18 15:15:09 +00:00
John Camelon
61976f1b51 CORE
Fixed Bug 39556 : 'restrict' qualifier is not supported (ANSI C99) 
	Fixed Bug 43126 : ISourceElementRequestor.acceptParameterReference accesses internal class
	Fixed Bug 43062 : Outline is confused on operator methods containing spaces 
	Cleaned up some warnings in the parser. 

TESTS
	Moved ASTFailedTests::testBug39556() to QuickParseASTTests.
	Cleaned up some warnings in parser tests.
2003-09-15 22:50:59 +00:00
John Camelon
7c1af2188d This patch is for the following bugs:
bug42836 - Navigate/search: prepopulate template classes from Outline...
bug42902 - Search: Cannot find typedef
bug43016 - Search: Cannot find macro declarations
 
 Core:
 - add Typedefs to index as Types with suffix T (bug42902)
         - added addTypedefReference to AbstractIndexer
         - modified bestTypePrefix in AbstractIndexer
 - added TYPEDEF_DECL, TYPEDEF_SUFFIX to IIndexConstants
         - modified acceptTypedefReference in SourceIndexerRequestor
 -Searching for Typedefs: (bug42902)
         - modified setElementInfo in BasicSearchResultCollector
        - added TYPEDEF to ICSearchConstants
         - modified CSearchPattern & ClassDeclarationPattern
         - implemented acceptTypedef* in MatchLocator
 
 Core.tests
 - updated testIndexContents and testIndexAll and added them back into the 
   IndexManagerTests suite
 - modified resources/search/classDecl.cpp to include a typedef
  - added testbug42902_TypeDefs to ClassDeclarationPatternTests
  - updated testNamespaceReferenceInClassBaseClause in OtherPatternTests
 
 UI
 - modified performAction & determineInitValuesFrom in CSearchPage
 - modified getImage in CSearchResultLabelProvider
2003-09-15 17:31:28 +00:00
John Camelon
322dcaad49 CORE
Fixed Bug 42840 : Search: Cannot find things after double declarations 
	Fixed Bug 42798 : Selected #include <Angled> off by 1 char 
	Fixed Bug 42872 : dynamic cast not parsed properly 
	Partially fixed Bug 39504 : sizeof-expressions are not handled properly 
	Updated SourceElementRequestor callbacks to include IASTParameterReference callbacks. 

UI 
	Updated SourceElementRequestor callbacks to include IASTParameterReference callbacks. 

TESTS
	Added CompleteParseASTTest::testBug42840() & testBug42872().
	Moved testBug39504B(), testBug39505A() & testBug39505B() from failed to QuickParse tests.
2003-09-11 18:06:15 +00:00
John Camelon
8f627892aa Core
- Hooked up the Indexer to the dependency tree. Everytime a header file 
gets modified, the including source files get reindexed. 
- Automated dependency calcuations - each time a file gets modified, its 
tree gets updated. 
- Added error logging via the PDE Error Log (Views->PDE Runtime->Error 
Log) - the indexer reports unsuccesful index attempts and the preprocessor 
reports unsuccesful inclusion resolution attempts 

UI 
- Changed the names on the search popup mens
2003-09-09 17:54:02 +00:00
John Camelon
ceee55836e Patch for Andrew Niefer
Core :
        Index
        Enumerator references
         - Added createEnumeratorFullyQualifiedName in AbstractIndexer
         - Added addEnumeratorReference in AbstractIndexer
         - implemented acceptEnumeratorReference in SourceIndexerRequestor

        Search
        pattern matching on function parameters:
         - modified scanForParameters in CSearchPattern
         - added getParamString in CSearchPattern
         - modified matchLevel in MethodDeclarationPattern
 
        Enumeration references
         - modified acceptEnumeratorReference in MatchLocator

core.tests:
        Modified resources/search/classDecl.cpp
         - to include more function declarations to test parameter 
matching
         - to include an enumerator reference to test enumerators
        Added testMethodDeclarationParameterMatching to 
FunctionMethodPatternTests.java
        Added testEnumeratorReferences to OtherPatternTests
2003-09-09 15:46:44 +00:00
John Camelon
8e62beb552 CORE & UI
Made scoping support more robust in CompleteParse mode. 
	Refactored ISourceElementRequestor (enter|exit)CodeBlock() to take IASTCodeScope rather than IASTScope. 
	Removed the now obsolete DOM.  
	Added enumerator references to ISourceElementRequestor.
	
TESTS
	Added CompleteParseASTTest::testThrowStatement(), testScoping(), testEnumeratorReferences().
	Removed LineNumberTest source as it is obsolete.
2003-09-08 19:17:53 +00:00
John Camelon
cecd8598a0 Patch for Andrew Niefer
Core : 
- Create ParserLanguage.java
- Modified ParserFactory functions to take ParserLanguage as parameter
- Modifier Parser, Scanner & ParserSymbolTable to use new ParserLanguage 
class
- Update call to ParserFactory in Indexer, Search, CModelBuilder & 
Dependency Tree

Core.tests:
- Updated calls to ParserFactory to specify which language to use

UI:
-CStructorCreator uses the parser, modified call to ParserFactory to 
specify CPP language.
  (this is the same behaviour as before)
2003-09-08 18:11:00 +00:00
John Camelon
d1d3dec2fe Patch for Andrew Niefer
Core:
- fix patterns & indexing for Enumerators

Core.Tests:
- Added testEnumerators to OtherPatternTests.java
- Modified resources/search/classDecl.cpp to include some enumerators

UI:
- enable Selected Resources scope
- populate dialog base on selection when opened from outline view
- fix small bug that found namespaces when searching for enumerations
- tweak sorting by path to consider line number second
2003-09-05 18:31:52 +00:00