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

173 commits

Author SHA1 Message Date
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
Bogdan Gheorghe
1a961a9736 Refactored index storage framework to allow for offset storage
Updated source indexer and ctagsindexer to add offset info to index
Updated IndexViewer to display offsets
Updated Index Tests
2005-04-07 20:19:53 +00:00
Vladimir Hirsl
e4e566f433 Removed from version 1.3 by mistake. 2005-04-05 15:04:06 +00:00
Vladimir Hirsl
2a1fa02cde Improved filtering of indexer problem markers. 2005-04-05 12:53:23 +00:00
Bogdan Gheorghe
824a56b572 Got rid of index flags and put in a new mechanism for indexers to add files
to the index directly.
Got rid of IDocument and replaced it with IFile resources throughout all
indexing framework.
Minor refactoring of CSearchPage to get rid of internal dependency.
2005-04-04 17:46:28 +00:00
Vladimir Hirsl
7abf1397a2 Per file scanner info collector and container now support -include and -imacros command line options.
Adding discovered include paths as system paths to so that they can be properly retrieved from IScannerInfo implementation.
Parser needs to be updated to ask IScannerInfoExtension implementation for both user and system include paths.
Fix for ClassCastException in CPPClassType binding.
2005-03-31 20:55:29 +00:00
Bogdan Gheorghe
3097c2f126 Modified IndexManger to get rid of an exisiting index for a project when an
indexer gets changed.
2005-03-30 14:35:50 +00:00
Vladimir Hirsl
0861c2c64f Fix for NPE in IndexEncoderUtil.calculateIndexFlags 2005-03-30 05:55:30 +00:00
Vladimir Hirsl
568c1dd81e Generation of problem markers for DOM AST based indexer.
Removing indexer problem markers when problem reporting is deselected.
2005-03-29 20:48:56 +00:00
Bogdan Gheorghe
50a283a448 Changed indexer change notification to run as a job.
Some additiional ICDTIndexer changes.
2005-03-29 15:33:11 +00:00
Bogdan Gheorghe
219aa7056b Added cumulative timer to SouceIndexer/DOMIndexer.
Purge any existing jobs from job queue on indexer change event.
Put in an indexer change nofication event that the IndexManager sends to the
newly selected indexer to allow it to react to being selected.
2005-03-29 14:28:29 +00:00
Bogdan Gheorghe
51d42b0328 NPE Fix for CTagsConsoleParser 2005-03-28 17:32:14 +00:00
Bogdan Gheorghe
b456fdc959 Initial CTags Indexer contribution
Added timing option to all three indexers
Modified event notification for all indexers to make use of ICDTIndexer constants
Modified SearchEngine to work with all 3 indexers
Added UI block for CTagsIndexer
Ironed out some UI wrinkles in Indexer Block
Added indexer change event for UI Block
2005-03-28 16:36:13 +00:00
Vladimir Hirsl
159eeee20f New DOM AST based indexer and property page.
Indexer infrastructure and CPP/C AST visitors.
Generates the same index as the old one.
	Work in progress:
		- include directives dependency
		- problem marker generation
2005-03-24 15:30:27 +00:00
Doug Schaefer
ec85b24cb7 Patch for Bog. Update the Index Manager to use the CDescriptor framework to manage which indexer to instantiate for each project. 2005-03-21 15:44:42 +00:00
Alain Magloire
1575e7878e 2005-03-18 Alain Magloire
Move more code in the try/finally as a precaution.  Bad things
	where happening (i.e. NPE) but the monitor was not decremented
	* index/org/eclipse/cdt/internal/core/indexing/IndexManager.java
2005-03-18 19:06:22 +00:00
Bogdan Gheorghe
f309a3e915 Fix for 87982, 88127 2005-03-16 07:31:14 +00:00
Bogdan Gheorghe
a936f8db56 Fix for Bugs # 87978, 87982, 87993 2005-03-15 03:35:34 +00:00
Bogdan Gheorghe
402cb165c3 - upgrade mechanism for old indexer projects
- a new "No Indexer" null indexer used for projects that don't need indexing
- temporary modification to the Automated suite to get around TypeCache manager kicking off unwanted upgrades
during JUnits
2005-03-14 21:08:21 +00:00
Bogdan Gheorghe
8cb9d02dae New core framework for indexer
New UI framework for indexer
Updates to core tests/ui tests
2005-03-14 05:32:07 +00:00
Bogdan Gheorghe
502f1c4822 Fix for Bug 78678: Indexer stops reindexing file after repeated saves 2004-11-17 21:52:45 +00:00
Bogdan Gheorghe
44e45fb15f Fix for Bug 78414: IProblem count increased through indexing header files stand-alone 2004-11-12 18:49:29 +00:00
Bogdan Gheorghe
762fd380d3 Fix for index merge problem 2004-11-02 21:22:55 +00:00
Bogdan Gheorghe
2473fc9bad Partial Fix for Bug 74427: Indexer needs to store more info
Add more info to the index notification mechanism
Updated Indexer Tests to use new notification mechanism
2004-11-02 06:43:17 +00:00
John Camelon
f479e84d8f Patch for Devin Steffler.
Fixed 39688 [Scanner] Macros with variable number of arguments are not supported (C99) (GCC)
- added support for C99 syntax for macros with variable arguments i.e. "..."
- added support for GCC syntax for macros with variable arguments i.e. "args..."
- added test cases for the above
2004-10-20 17:59:54 +00:00
John Camelon
19ffaa04f2 Patch for Devin Steffler
Fixed 75532 [Scanner] Wrong compare if the two declarations are in other number system.
- Octal support has been added along side Hex support in ExpressionEvaluator.java.
- SourceIndexerRequestor.java now handles IProblem.SCANNER_RELATED IProblems
- IProblems can now be thrown easily from ExpressionEvaluator.java
- IProblems are reported for malformed Decimal/Hex/Octal numbers as well as the existing EvalExceptions that occur in ExpressionEvaluator.java
- tests were added to check Octal support and that the IProblems are raised properly within ExpressionEvaluator.java
2004-10-13 20:03:32 +00:00
Chris Wiebe
cb338485bf 2004-09-22 Chris Wiebe
show warnings instead of errors for invalid filenames
	workaround for bug#24152
	* index/org/eclipse/cdt/internal/core/messages.properties
	* src/org/eclipse/cdt/core/CConventions.java
2004-09-22 20:34:39 +00:00
Chris Wiebe
565312d1a6 2004-09-22 Chris Wiebe
added file naming conventions
	* index/org/eclipse/cdt/internal/core/messages.properties
	* src/org/eclipse/cdt/core/CConventions.java
2004-09-22 18:09:30 +00:00
John Camelon
6dc6b84d4b Fixed 72527 - [Scanner] Remove Scanner, ScannerException & clean up IScanner interface 2004-08-30 15:17:40 +00:00
Chris Wiebe
c399a92017 2004-08-25 Chris Wiebe
add namespace validation to CConventions
	* index/org/eclipse/cdt/internal/core/messages.properties
	* src/org/eclipse/cdt/core/CConventions.java
2004-08-25 21:29:45 +00:00
Bogdan Gheorghe
92d190f0ab Fix for Bug 71500: [Indexer] all headers get indexed on project open 2004-08-19 21:12:56 +00:00
Andrew Niefer
1b940db018 fix problem encountered while trying to reproduce 70063 2004-08-19 16:10:19 +00:00
Andrew Niefer
a52e58908e bug 72089 2004-08-17 18:53:04 +00:00