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

50 commits

Author SHA1 Message Date
David Inglis
2ff46eeeab update error parser junits to read a set of files with output to feed parser
current and only file contains build output which causes to error parser to hang
2006-03-31 20:14:02 +00:00
David Inglis
cf09e84a32 CPL to EPL transistion - license header update for IBM 2005-06-23 16:02:46 +00:00
Doug Schaefer
fa0262f964 We now have template projects for all project types: C/C++
and Standard/Managed.
2004-11-22 14:59:34 +00:00
Doug Schaefer
753aa6132f Some clean up to make the core.tests plugin more 3.0 compliant.
Also added in a new ProjectCreator that creates projects from
prebuilt zip files.
2004-11-21 15:51:31 +00:00
Andrew Niefer
b8c65f150f tests to show that bug 68235 is not our problem 2004-06-22 21:48:31 +00:00
Hoda Amer
81b654bb3b Partial fix for bug#57526 [CModelTests] 2004-04-30 14:45:15 +00:00
Hoda Amer
53d5b620eb Partial fix for bug#57526 [CModelTests] 2004-04-29 16:07:55 +00:00
Hoda Amer
eed5db60c0 Partial fix for bug#57526 [CModelTests] 2004-04-27 17:31:48 +00:00
Hoda Amer
428f0da6e7 Partial fix for bug#57526 [CModelTests] 2004-04-27 17:03:16 +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
Hoda Amer
bcdd0ab7c3 Content Assist Work: More JUnit tests 2004-01-16 20:19:05 +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
e43eb360d1 Patch for Andrew Niefer.
This patch changes the handling of ambiguities during prefix lookup.
It also addresses problems in the symbol table to do with qualified 
lookup.  Fixing these revealed problems caused by the 
CompleteParseASTFactory not always using the correct lookup functions.  So 
the factory has been modified to call the appropriate lookups.

The following tests have been created:
        FailedCompleteParseASTTest.testBug47926
        CompleteParseASTTest.testQualifiedLookup
        ParserSymbolTableTest.testPrefixLookup_Ambiguities
        ParserSymbolTableTest.testQualifiedUnqualifiedLookup
        FunctionMethodPatternTests.testLookupForDefinition
2003-12-03 21:48:19 +00:00
Hoda Amer
4d7450e8fb Bug Fixes for the complete AST factory 2003-11-13 19:27:29 +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
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
05f6b423c8 Patch for Andrew Niefer
fix bug 43129 - report definitions for variables, fields, enumerators and 
namespaces.

core:
- check definitions for variables, fields, enumerators and namespaces
- handle enter/exitLinkageSpecification
  * search/org/eclipse/cdt/internal/core/search/matching/MatchLocator.java
  * 
search/org/eclipse/cdt/internal/core/search/matching/CSearchPattern.java

core.tests:
-added testbug43129() in OtherPatternTests
modified:
* resources/search/include.h
* resources/search/classDecl.cpp
* search/org/eclipse/cdt/core/search/tests/OtherPatternTests.java

ui:
 modify UI to allow selecting Definitions for more items
* src/org/eclipse/cdt/internal/ui/search/CSearchPage.java
2003-09-26 14:58:17 +00:00
John Camelon
3e361ae186 Core :
Solution to bug#43162 : Code Assist not showing the right return value: 
        Saved a function return value string in the BasicSearchMatch object. 
        Created a new package org.eclipse.cdt.internal.core.parser.util and 
        added ASTUtil class with static methods to help convert an ASTFunction 
        return type from IASTAbstractDeclaration to String. Note that this was 
        previously implemented in the CModelBuilder. I just moved it to a common 
        library for others (BasicSearchMatch) to use. 
UI: 
        Solutions to 
        bug#43162 : Code Assist not showing the right return value 
        Bug#43145 : foo function still showing in Code Assist even if "f" is deleted 
        Bug#42810 : Code Assist adding characters after pressing <enter> 
        Bug#42861 : Code Assist should be case insensitive. 

Tests: 
        Solution to bug#43162 : Code Assist not showing the right return value. 
        Solution to Bug#42861 : Code Assist should be case insensitive. 
        Modified the CompletionProposalsTest to include upper and lower cases 
        and to include functions with different return values.
2003-09-23 13:54:28 +00:00
John Camelon
e806c7013d Patch for Andrew Niefer
core : 
  - modified MatchLocator to not report local declarations when boolean is 
set
  - modified SearchEngine.search to take an additional parameter 
"excludeLocalDeclarations"

core.tests:
  - modified resources/cfiles/CompletionProposalsTestStart.cpp
  - modified CompletionProposalsTest.testCompletionProposals
  - updated calls to SearchEngine.search

ui:
  - update calls to SearchEngine.search.  CodeCompletion passes true for 
excludeLocalDeclarations
2003-09-22 18:38:30 +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
c3f68d1518 Patch for Bogdan Gheorghe
This patch addresses a NPE that pops up on linux while running the 
indexer portion of tests of the core suite.
2003-09-16 17:31:43 +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
ceca2f6558 Patch for Andrew Niefer.
Core:
For bug42815
- Modified ICSearchResultCollector.createMatch to not take a parent 
parameter
- modified BasicSearchResultCollector to create the parent string from the 
fully qualified name of the node
- modified MatchLocator to keep track of most recent declaration for 
reporting purposes
- modified MatchLocator.report to use the most recent declaration

Core.Tests:
- Created search/SearchTestSuite
- Added SearchTestSuite to AutomatedIntegrationSuite and removed the 
individual search tests
- Added testReferencesInFunction to ClassDeclarationPatternTests
- Modified resources/search/classDecl.cpp
- Modified testNamespaceReferenceInClassBaseClause, testMacroPattern, 
testEnumerators, 
  and testEnumeratorReferences in OtherPatternTests to test the Match 
result strings

UI:
- bug42837 - fixed populating search dialog on function declarations
- bug42829 - prepopulated search dialog to any element declarations
- bug42815 - group together search results with same label
- modified CSearchResultLabelProvider to not display the "-" in the search 
label
  while sorting by name if there is no parent.
2003-09-12 13:13:58 +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
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
John Camelon
08ceac730e Patch for Hoda Amer
Core Tests: 
        Modified CCompletionProposalsTest to complete on a body file that includes a header file.
2003-09-02 17:17:01 +00:00
Doug Schaefer
8f3b6007eb Patch for Bogdan Gheorghe:
Indexer 
======= 
- Changed file extensions to prevent header files from being indexed (they will be indexed via inclusion) 

Search 
======= 
- Added scope checking to MatchLocator 
- Modified CSearchPattern to allow for destructor searches 
- Added debug tracing statements to SearchEngine 
- Added debug tracing statements to MatchLocator 

UI 
== 
- Converted CTags based OpenOnSelectionAction to OpenDeclarationsAction. For now, we do a search on all types with the selected name. 
- Hooked up OpenDeclarationsAction to search engine 

General 
======= 
- Modified start up code to set debug trace options (which are defined from the launcher). I've added the following trace components: 
        - dependency 
        - indexer 
        - indexmanager 
        - matchlocator 
        - model 
        - search 
        - parser 

- Added trace debug statements to CModelBuilder 
- Modified Util.java to make use of IDebugLogConstants
2003-08-26 19:16:03 +00:00
John Camelon
d6a7d069a1 Updated TranslationUnitTests to not include K&R 2003-08-25 14:13:26 +00:00
Doug Schaefer
a80d2f71de Patch for Bogdan Gheorghe:
Indexer 
- Added additional file extensions to supported indexed files 
- Changed the parser instantiation to pass in retrieved build info 
- Added function decl index entry based on enterFunctionBody 
- Added method decl index entry based on enterMethodBody 
- Added forward decl refs 
- Added debug tracing to AbstractIndexer 

Search 
- Changed matching and reporting functions to handle nodes 
  of type IElaboratedTypeSpecifier 

UI 
- Added a search dialog pop up item to the context menu for the 
  CEditor and CContentOutlinePage
2003-08-20 20:53:50 +00:00
John Camelon
8dba12bff3 Patch for Hoda Amer.
Hi, 
This patch updates code completion to use search. It also includes my previous patch which enabled the class wizard to use search as well. 

Current Code Completion has the following restrictions: 
- It will only work within the scope of a function or a method. 
-It will look for globals (variables, functions, classes, strucs, unions, enumerations, and macros). 
-In the scope of a method, it will also look for the methods and fields that belong to the owner class of this method. 
- It will NOT search the parent classes of the method in the method scope case. 
- It will NOT de-reference after a "." or an "->"
2003-08-12 20:20:13 +00:00
John Camelon
a94839573b CORE
Added Complete Parse support for ASM Definitions.  
	Added isVolatile() to abstract declarations.
	Added Complte Parse support for elaborated types / forward declaration of classes.  
	Fixed some robustness issues.

TESTS
	Cleaned up Junit parser-related tests so that failed tests are now expected failures w/defects associated with them.  
	Updated CompleteParseTests for forward declaration/elaborated types.  
	Added Search/ParseTestOnSearchFiles to AutomatedSuite. 
	Updated Search tests to workaround bug 41445.
2003-08-12 18:19:55 +00:00
John Camelon
dbc6ab4f98 Patch for Bogdan Gheorghe.
This patch adds working copy search, macro search and combines the function and method search patterns into one.
2003-08-12 14:29:07 +00:00
John Camelon
ff9ca80b0c Patch for Bogdan (Fancy Pants) Gheorghe
This patch adds macro declarations to the index.
2003-08-11 19:10:45 +00:00
John Camelon
287009d748 Patch for Andrew Niefer.
This patch contains modifications to BasicSearchMatch and 
BasicSearchResultCollector so that the collector will not accept matches 
that have already been seen.

( Addresses the problem of seeing a class definition in a header file 
multiple times because that header was included from multiple cpp files)

This patch also fixes a small bug in finding the resource for header files 
we enter while parsing.
2003-08-01 19:26:58 +00:00
John Camelon
a3e052456b Patch for Andrew Niefer
core:
- fixed a couple of bugs to do with searching for globally qualified 
patterns
- fixed a bug to do with the '?' wildcard
- fixed a bug to do with searching for functions/methods using patterns 
specifying parameters

tests:
- new search tests:
                ClassDeclarationPatternTests.testClassReferenceInFieldType
                ClassDeclarationPatternTests.testClassReferences
 ClassDeclarationPatternTests.testEnumerationReferenceVisibleByInheritance
                ClassDeclarationPatternTests.testGloballyQualifiedItem
 ClassDeclarationPatternTests.testTypeReferenceVisibleByUsingDirective
                FunctionMethodPatternTests.testMethodDeclaration
                FunctionMethodPatternTests.testMethodDeclarationWithParams
                OtherPatternTests.testFieldDeclaration
                OtherPatternTests.testNamespaceDeclaration
                OtherPatternTests.testNamespaceReferenceInClassBaseClause
                OtherPatternTests.testNamespaceReferenceInUsingDirective
                OtherPatternTests.testVariableDeclaration
2003-07-29 12:40:17 +00:00
John Camelon
136320038c Patch for Victor Mozgin.
Fixed PR 39553 : Macros are not expanded in #include statements.
2003-07-28 00:02:34 +00:00
John Camelon
ee5dac3bd9 Patch for Bogdan Gheorghe.
This patch adds type refs, function refs, method refs,  fireld refs and namespace refs to the index and changes the parser mode to complete parse.
2003-07-25 15:21:57 +00:00
John Camelon
62d269c6f8 Moved Template of Variable test case to Failed tests 2003-07-24 17:20:07 +00:00
Doug Schaefer
6e1589de13 Move the dependencies directory to the right place. 2003-07-24 15:11:52 +00:00
Doug Schaefer
d8ee61be38 Patch for Bogdan Gheorghe:
- adds namespaces, enums, typedefs, functions,
methods, fields and vars to the index.
- also fixes a problem with the Search label provider
which caused it to not display properly under some
conditions.
2003-07-21 21:14:10 +00:00
Doug Schaefer
0c232fa416 Patch for Andrew Niefer:
Patch for C++ Search to support searching for class declarations

Interface changes:
- modified search Interfaces : 
        - ICSearchConstants - changed SearchFor instantiations to more 
closely match what we can search for.
        - ICSearchPattern - added getLimitTo() 
        - ICSearchResultCollector - added createMatch(), which should 
return an object implementing the new IMatch interface, these store the 
any data needed to keep found matches.
  These interfaces are still new and its too early for anyone other than 
search and the indexer to be using them.
- added search interface IMatch.


Changes to core.search had to do with keeping track of the current scope 
during the search, as well as other modifications for matching class 
declarations, and the start of the patterns for matching other things.

Changes to ui.search had to do with creating IMatch objects to store the 
information needed by the label provider to display icons and sort the 
results.
2003-07-15 14:48:13 +00:00
John Camelon
8a70b5e1d2 Patch for Andrew Niefer.
cdt.core: 
- Modified ICSearchConstants to use classes (SearchFor & LimitTo) instead of int for constants 
- Modified MatchLocator to actually invoke the parser to do the search 

cdt.core.tests: 
        - Added new source Folder search 
        - Added search/ClassDeclarationPatternTests::testMatchSimpleDeclaration 
        - Added search/ClassDeclarationPatternTests::testMatchNamespaceNestedDeclaration 
        - Added new resource folder search & containing file classDecl.cpp 
        - Added new failures package ord.eclipse.cdt.core.search.failedTests 
        - Added new failing test PatternsFailedTests::testBug39652 

        * Note that both the ClassDeclarationPatternTests and PatternsFailedTests must be run as Plugin Tests * 

        cdt.ui: 
        - Updated Search classes to reflect changes to ICSearchConstants.
2003-07-04 17:15:44 +00:00
Alain Magloire
91fe88d338 Changes from Bogdan added more tests for the indexer. 2003-07-04 03:03:02 +00:00
Doug Schaefer
afbe575516 Patch for Bogdan Gheorghe:
- The initial framework for the new indexer.
- Added a checkbox to the Indexer tab on the
C/C++ Projects settings dialog to turn on the
indexing on a per project basis.
2003-06-27 14:31:34 +00:00
John Camelon
f61006c9fe Updated Factory infrastructure, constructors, etc.
Introduced Preprocessor class for transitive closure calc. client.
2003-06-23 18:05:31 +00:00
John Camelon
bd7e73016d Some resources were cvsignored.
Fixed those.
2003-06-20 18:49:28 +00:00
John Camelon
4347f9b681 Patch for Victor Mozgin.
Fixes problem with offsets of elements that were created as macro expansions (PR 36463).
2003-06-20 17:16:05 +00:00
John Camelon
35a76e8822 Patch for Brent Nicolle.
ITemplate tests, further migration of core tests away from ui.tests
2003-06-20 17:00:44 +00:00
John Camelon
7b9a6f5d07 More .cvsignore issues w/TortureTest. 2003-06-18 21:35:28 +00:00
John Camelon
2bbab21405 Patch for Brent Nicolle.
Unit tests of code in the Core plugin should now be placed in the core.tests plugin. 
(I did not delete test from the ui.tests plugin, but that's an idea whose time is coming soon.) 

Resources and property files for unit tests are now in a separate directory from the root. 

The testlauncher may experience some turbulence, but out of the box tests work as before.
2003-06-18 21:29:47 +00:00