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

97 commits

Author SHA1 Message Date
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
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
Doug Schaefer
de44b4c4a2 Merged 1.2 fixes into HEAD. Includes:
- managed make fix for infinite make recursion
- search fix for large projects
- fixes to source project so that it actually contains source
2003-10-27 18:26:54 +00:00
John Camelon
dfdfecab15 CORE
Fixed Bug 40007 : Parser reports success when it fails
	Fixed Bug 44305 : Scanner/preprocessor fails on conditionals using hexidecimal 
	Fixed Bug 41935 : parser provides wrong name on namespace aliases 
	Fixed Bug 39525 : Parser fails on expressions that take address of overloaded operators 
	Fixed Bug 45287 : Scanner does not accept character sequence literals 
	Fixed Bug 36550 : Error recovery with unterminated string is weak 
	Fixed Bug 41063 : Remove unused K&R C support from ANSI Parser 
	Fixed Bug 39528 : Function try-blocks are not supported by the parser (ANSI C++) 
	Fixed Bug 39538 : Parser fails on explicit instantiation of templated operators 
	Fixed Bug 39536 : Parser fails on templated constructors/conversion operators 
	Refactored Scanner to make it easier to debug.  

TESTS
	Moved testBug40007() from ASTFailedTests to QuickParseASTTests.  
	Added QuickParseASTTests::testBug40759().  
	Added QuickParseASTTests::testBug44633().  
	Added ScannerTestCase::testBug44305().  
	Added QuickParseASTTests::testBug41935(). 
	Moved testBug39525() from ASTFailedTests to QuickParseASTTests.  
	Added ScannerTestCase::testBug45287(). 
	Moved testBug39528() from ASTFailedTests to QuickParseASTTests.  
	Moved testBug39538() from ASTFailedTests to QuickParseASTTests.  
	Added QuickParseASTTests::testBug39536().  
	Moved testBug39536A() from ASTFailedTests to QuickParseASTTests.  
	Moved testBug39536B() from ASTFailedTests to QuickParseASTTests.
2003-10-21 23:22:40 +00:00
John Camelon
77fbc604e7 Patch for Andrew Niefer
core:
- fix bug 44026 by checking scope before reporting match in 
MatchLocator.report
ui:
-bug44032 - deleting/moving files breaks search
        * modified src/org/eclipse/cdt/ui/CSearchResultLabelProvider 
getText to return empty string instead of null
-bug43130 - Selected resources is disabled but selected
        * src/org/eclipse/cdt/internal/ui/search/CSearchPage
2003-10-01 21:33:23 +00:00
John Camelon
93a1b87c76 Patch for Andrew Niefer
Search filtering was broken, it would have become more obvious when 
searching larger projects with includes.

core:
-modify BasicSearchMatch.equals()

tests:
modified OtherPatternTests.testBug42911() and renamed it 
testBug42911_43988
2003-10-01 19:55:04 +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
John Camelon
3d6aba8db8 Patch for Andrew Niefer
Core:
-fix bug43862 - Cannot find macro delcarations using all occurences.
  * modified CSearchPattern.createMacroPattern()

Core.tests:
Updated OtherPatternTests::testMacroPattern() to test for bug43862
2003-09-30 18:18:26 +00:00
John Camelon
9cef992b8e Patch for Andrew Niefer
Core:
-bug42911 - Search: cannot find beyond use of data member
   - fix NPE's in BasicSearchMatch.equals & hashCode

TESTS:
-added testBug42911 to OtherPatternTests
2003-09-30 14:10:28 +00:00
John Camelon
c50efc6fd5 Patch for Andrew Niefer
core:
- modify CSearchPattern.scanForNames to use same naming convention as 
TokenDuple.toString()
- modify MatchLocator.report to use 
IASTOffsetableNamedElement.getNameEndOffset()

core.tests:
- added testBug43062 and testConstructorDestructor to 
FunctionMethodPatternTests
- modified resources/search/classDecl.cpp & include.h to include more 
operators and a constructor
2003-09-30 13:42:44 +00:00
Doug Schaefer
f72312491a Patch for Bogdan Gheorghe:
Here's a patch that simplifies how workspace scopes are built - instead of getting info from the CModelManager, we go straight to the workspace. This will improve shutdown/search performance.
2003-09-29 21:35:10 +00:00
John Camelon
746563ed2b Patch for Andrew Niefer
Core:
- fixed bug 43834 : Empty Parameter list and parameter list taking one 
void do not match
- fix NPE if IScannerInfoProvider returns null IScannerInfo

Tests:
- added testbug43834 to ParserSymbolTableTest
2003-09-29 19:49:19 +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