Doug Schaefer
967a5b1d91
Made the DOM Indexer the default and put in better names for the indexers.
2005-06-10 03:13:25 +00:00
Alain Magloire
f441ff3778
2005-06-08 Alain Magloire
...
Move to the IContentTypeManager framework: PR 86645
* index/org/eclipse/cdt/internal/core/index/sourceindexer/AbstractIndexer.java
* index/org/eclipse/cdt/internal/core/index/sourceindexer/AddFileToIndex.java
* index/org/eclipse/cdt/internal/core/index/sourceindexer/AddFolderToIndex.java
* index/org/eclipse/cdt/internal/core/index/sourceindexer/SourceIndexerRequestor.java
* model/org/eclipse/cdt/core/model/CoreModel.java
* model/org/eclipse/cdt/core/model/ITranslationUnit.java
* model/org/eclipse/cdt/internal/core/model/CContainer.java
* model/org/eclipse/cdt/internal/core/model/CModelManager.java
+ model/org/eclipse/cdt/internal/core/model/ContentTypeProcessor.java
* model/org/eclipse/cdt/internal/core/model/CreateWorkingCopyOperation.java
* model/org/eclipse/cdt/internal/core/model/DeltaProcessor.java
* model/org/eclipse/cdt/internal/core/model/ExternalTranslationUnit.java
* model/org/eclipse/cdt/internal/core/model/IncludeReference.java
* model/org/eclipse/cdt/internal/core/model/PathEntryManager.java
- model/org/eclipse/cdt/internal/core/model/ResolverProcessor.java
* model/org/eclipse/cdt/internal/core/model/TranslationUnit.java
* model/org/eclipse/cdt/internal/core/model/WorkingCopy.java
* plugin.xml
- schema/CFileType.exsd
- schema//CFileTypeAssociation.exsd
- template/cpp_headers
* search/org/eclipse/cdt/core/search
* src/org/eclipse/cdt/core/CCorePlugin.java
- src/org/eclipse/cdt/core/filetype/*
- src/org/eclipse/cdt/core/internal/filetype/*
2005-06-09 16:06:09 +00:00
Vladimir Hirsl
6e8ba9eebb
Fix for a problem with DOM indexer, where external header files in translation unit's inclusion tree were not visited.
...
Optimization from Dave; skipping declarations in already visited external headers.
2005-06-07 20:40:23 +00:00
Bogdan Gheorghe
f20ffd5b51
Fix for 92296 (Source Indexer doesn't encode definitions)
...
Fix fo 92628 (Definitions missing in new Search Engine)
Got rid of FWD_CLASS, FWD_STRUCT and FWD_UNION encodings (updated all 3 indexers)
Updated Indexer View (got rid of FWD declarations)
2005-06-07 17:48:18 +00:00
Vladimir Hirsl
2290223ab3
Fix for NPE in DOMSourceIndexerRunner.AddMarkerProblem.run().
...
Possible fix for PR 98571: Multiple "Starter.exe" and "cygpath.exe" when launch IDE
2005-06-06 20:22:51 +00:00
Andrew Niefer
58ed6a6cdd
fixing C Bindings:
...
- external functions return empty function type instead of null
- optimizations for indexing
- fix bug regarding function body scopes being marked as fully cached prematurely
2005-06-06 20:11:08 +00:00
Vladimir Hirsl
30084a7e84
Fix for PR 93786: DOM Indexer adds local variables to the index
...
Other smaller fixes in DOM Indexer domain.
2005-06-03 20:32:18 +00:00
Andrew Niefer
a31d84767b
fix null pointer exceptions
2005-06-03 15:41:36 +00:00
Bogdan Gheorghe
98ac994722
Refactored CIndexStorage to persist modifier bit fields and function signatures
...
Updated method search pattern to make use of the newly stored info
2005-06-02 05:44:46 +00:00
Vladimir Hirsl
8e99ab5565
Modified DOM indexer to use IIndexEntry hierarchy to store index entries.
...
This enables more information to be stored during indexing (modifiers, function sigantures,...). Also should address definition/declaration issues raised by Devin.
2005-06-01 19:45:33 +00:00
Bogdan Gheorghe
bfee5d5b13
Added a method to CTagsIndexer to ensure that the proper version of CTags exists
...
Updated CPPSelectionTestsCTagsIndexer to check to see that CTags exists before running tests
2005-05-31 19:36:40 +00:00
John Camelon
b208d1adfd
Patch for Devin Steffler.
...
This patch gets rid of the work around added to CoreModel with the last patch. It was required in order to get C(PP)SelectionTests*Indexer working but the better way to do this is to create a scanner config for the projects for those tests.
This patch also improves the speeds of CSelectionTestsCTagsIndexer and CPPSelectionTestsCTagsIndexer by adding CTagsIndexer#notifyListeners(IndexDelta) to Index.java.
2005-05-31 18:55:35 +00:00
Bogdan Gheorghe
cee31b91f4
Refactoring of SourceIndexer to use new IIndexerOutput
...
Refactoring of IndexerOutput
2005-05-31 17:25:47 +00:00
John Camelon
657c53d31e
Patch for Devin Steffler.
...
Note to specifically look at the changes made to CoreModel.java as this is the fix for 96865.
The rest of the patch consists of tests and the changes to CTagsIndexer.java to make it compatible with those tests.
Updated for 77383 changes:
FIXED 96865- [DOM Indexer] won't run on new Standard Make C Project
includes JUnits for AutomatedSuite to test Open Definition/Open Declaration against the DOM Indexer and the CTags Indexer
added 29 tests for the above and raised the following bugs on those tests: 96689, 96690, 96694
2005-05-31 15:44:40 +00:00
John Camelon
1786169b2b
Added IASTNode#getFileLocation().
...
Updated DOM Indexer to use it.
2005-05-30 19:32:59 +00:00
Bogdan Gheorghe
d2748911a5
Add Includes to Index for DOM Indexer
2005-05-30 15:42:42 +00:00
Bogdan Gheorghe
30c47b2964
Add a new Named Entry constructor that takes strings
2005-05-30 12:53:17 +00:00
Bogdan Gheorghe
e2a5a6dbef
Changed base class storage in CTag Indexer to use INamedEntry
2005-05-30 00:14:31 +00:00
Bogdan Gheorghe
2e324713bd
Fix for compile error in CTagEntry
2005-05-27 20:59:33 +00:00
Bogdan Gheorghe
97ac9f71a0
ITypeEntry baseTypes can now set/return IIndexEntry
2005-05-27 20:03:49 +00:00
Bogdan Gheorghe
3720c60ebd
Refactoring for the DOM Indexer to use new IIndexEntry encoding
2005-05-26 20:00:16 +00:00
Vladimir Hirsl
ab0ae772ae
Indexer performance improvement: indexing nodes from external include files only once.
2005-05-20 20:29:35 +00:00
Bogdan Gheorghe
fa2d057c98
IndexerOutput refactoring to use IIndexEntry
...
CTags indexer refactoring to use new IIndexEntry hierarchy, store modifiers, function signatures
2005-05-20 14:16:38 +00:00
Vladimir Hirsl
d92ccd3e38
Final fix for 95641: [Scanner Config] Per file scanner info not available for header files and not compiled source files.
...
- For include files and source files that are not compiled per file discovered scanner info defaults to project's discovered scanner info.
- A new method is added to CoreModel to determine if per resource scanner info is empty. This method will take into account effective per file discovered scanner info.
2005-05-19 20:08:18 +00:00
Vladimir Hirsl
693f2a4708
Fixed problem marker updating for files that are not indexed due to empty scanner info. Some refactoring of problem marker generation code.
2005-05-17 18:41:26 +00:00
Bogdan Gheorghe
b920965dab
Changed IMatch to return a IMatchLocatable instead of startOffset/endOffset (IMatchLocatable can then be further cast into IOffsetLocatable or ILineLocatable)
...
Updated all clients.
2005-05-16 18:24:31 +00:00
Doug Schaefer
bdecfcfc41
Cleaned up some obvious NLS warnings. Also turned off the warnings for the tests plugins.
2005-05-16 14:44:03 +00:00
Vladimir Hirsl
6f27d5a71c
- Files with empty scanner info are not indexed anymore. Info problem marker is created for each such file.
...
- Fix for resolving header file name for #include "..." preprocessor statements.
- Fix for updating Discovered scanner info container when discovered scanner info changes.
2005-05-13 19:39:24 +00:00
Bogdan Gheorghe
ea15dddbc9
Refactored CTags Indexer to allow individual tags to add themslves to an Indexer Output (consolidated CTagsIndexAll and CTagsAddCompilationUnit)
...
CTagFileReader logic change to read in all tags in ctags file
Patch from Dave with fix for TempVA merge problem (Indexer View was opening BlocksInput without close) + other UI improvements
Renamed generated CTags file
Refactored indexer tests to not depend on EntryResult toString()
2005-05-05 04:25:16 +00:00
Vladimir Hirsl
39e465b9a8
Fix for PR 92599: [Indexer] Remove annotation markers preference from DOMIndexer & friends
...
- Replaced indexer problem markers property page block for DOMIndexer.
(from SourceIndexerBlock to NullIndexerBlock).
Only inclusion not found preprocessor problem markers are going to be
generated (there isn't an option in UI to disable/enable them yet).
- Also, fixed deleting of indexer problem markers when indexer is changed.
2005-05-04 18:58:40 +00:00
Bogdan Gheorghe
8488a0d863
Added function definitions for CTags Parser
...
Refactored IIndexerOutput to take definitons for functions/methods
2005-05-03 04:41:58 +00:00
Bogdan Gheorghe
bdb7bbaf87
Some new index constants
...
Patch for Dave - IndexerView refactoring
2005-05-03 03:43:13 +00:00
Vladimir Hirsl
8fb7e7383f
Fix for PR 96762: DOM indexer misses some obvious symbols
...
Fixed calculation of file locations for names inside macro definitions.
2005-05-02 17:44:39 +00:00
Bogdan Gheorghe
d3314df607
Patch from Dave - refactored EntryResults to decode index information within the Entry Result itself; updated Index View to make use of new EntryResult
2005-05-02 16:11:40 +00:00
Bogdan Gheorghe
6f38f94b90
Added Indexer Preference page that sets up the indexer to use for new projects
...
Removed Index Enabled checkboxes from Source + Dom indexers
Added import ctags file option under CTags Indexer
Fixed Apply/OK problem
2005-04-27 19:18:13 +00:00
John Camelon
0fedc36b90
Applied patch for Devin Steffler.
...
Open Declarations/Search For Refs/Search for Decls actions reworked to use the new DOM.
2005-04-27 17:43:33 +00:00
Bogdan Gheorghe
0bca2b33c3
Patch for Dave Daoust - cleans up some name references in the search tests
2005-04-25 18:53:48 +00:00
Bogdan Gheorghe
1c5c64581c
Index Reader Interface Refactor - a patch contribution by Dave Daoust
2005-04-25 14:01:51 +00:00
Bogdan Gheorghe
cef2041f15
First pass at new Search Engine (queries the index directly - dramatically increasessearch performance; still missing definitions, function parms, Working Copy)
...
Refactored CIndexStorage - got rid of operations dealing with multiple indexes
Modified the SourceIndexer to encode the proper offsets for references
2005-04-21 15:46:06 +00:00
Vladimir Hirsl
2bd5fd9dfa
Fix for PR 91964: Dom Indexer misses give a friend declaration for forward decls. Fixed detection of friend class/struct declaration.
...
Fix for PR 92060: [DOM Indexer] for C projects only seems to do macros now. Taken a different approach by wrapping calls to IIndexerOutput in anticipation of its soon change.
2005-04-21 13:46:13 +00:00
Bogdan Gheorghe
cf1d5bf0d1
Dave Daoust's patch for 91946 w/ Modifications
...
Cleaned up deprecated Search UI
2005-04-20 05:59:37 +00:00
Vladimir Hirsl
f9a0362d08
Fix for PR 91405: Search does not find declarations of printf
...
Index entries form include files external to workspace were erroneously stored under compilation unit's file id.
2005-04-15 12:48:52 +00:00
Bogdan Gheorghe
68d068fd86
Fix for 91127
2005-04-13 01:27:06 +00:00
Bogdan Gheorghe
b4a9f10228
Changed indexChangeNotification to removeIndex
...
Removed Info button from indexer dialog (Bug 91001)
2005-04-11 22:15:14 +00:00
Bogdan Gheorghe
985b120edf
Put in various CTags problem reporting via IndexMarkers.
...
Changed CTags execution to pass just the arguments in the Launch array.
Modified creation of CTags file to work on all platforms.
Cleaned up CTags block UI.
Fixed IndexerTests to take into account new toString() representation of IEntryResults.
2005-04-09 18:43:06 +00:00
Vladimir Hirsl
6edbe49fa3
Added offset and length parameters for index entries.
...
Refactoring of AbstractIndexer. Moved old parser specific stuff to the appropriate subclass.
2005-04-08 19:35:43 +00:00
Vladimir Hirsl
d7c2d4834e
Added offset and length parameters for index entries.
...
Refactoring of AbstractIndexer. Moved old parser specific stuff to the appropriate subclass.
2005-04-08 15:52:28 +00:00
Bogdan Gheorghe
03caf52d38
Changed SourceIndexer to get the offsets of the name being encoded instead of the offsets of the actual element.
2005-04-08 15:27:03 +00:00
Bogdan Gheorghe
817b4953c6
Added offset lengths to index storage
...
Refactored IndexView to display offset lengths
2005-04-08 06:07:51 +00:00
Bogdan Gheorghe
7c7ae6fd68
Refactored IndexerOutput to allow for passing in the length of an offset.
2005-04-07 20:33:22 +00:00