1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-05 08:46:02 +02:00
Commit graph

160 commits

Author SHA1 Message Date
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
Andrew Niefer
c2f1517d54 fix parsing international files
bug 70852, 70927
2004-08-13 19:52:32 +00:00
Bogdan Gheorghe
9df1ac81b8 Fix for Bug 59493: need to refine index query for open-type 2004-08-11 19:50:26 +00:00
Andrew Niefer
86c0d04560 modify indexer to take advantage of IAST char[] functions 2004-08-10 21:02:33 +00:00
John Camelon
a17096c97e Fixed https://bugs.eclipse.org/bugs/show_bug.cgi?id=69872.
Moved TimeOut to parser public package in src/ and renamed it to ParserTimeOut.
See resolution description in the defect for more details.
2004-07-21 17:57:57 +00:00
Bogdan Gheorghe
44fdb04953 Fix for Bug 69166: NPE in IndexerModelListener.processDelta 2004-07-12 17:02:26 +00:00
Bogdan Gheorghe
41c9d0faec - Added support for search name grouping.
- Handled the case of CContainer in both updateIndexAddResource and
updateIndexRemoveResource.
- Added timing for merge operations - controlled by Indexer tracing option
- Modified removeSourceFolderFromIndex in IndexManager to take an IProject
2004-07-06 18:03:49 +00:00
Bogdan Gheorghe
c59364cdd5 Fix for 67656: [Indexer] getting called twice after creating a project with a file system 2004-06-29 06:42:47 +00:00
Bogdan Gheorghe
39fd1475ba Indirect fix for Bug 65551: [Search] Search for Variable references should not include parameters
Instead of excluding parameter references from searches, added parm declarations to the index (for
both functions and methods)
2004-06-25 20:43:44 +00:00
Bogdan Gheorghe
1075c0ba5f Fix for 68550: [Indexer] Cannot restart indexer by touching .c/.cpp/.cc files 2004-06-25 19:02:11 +00:00
John Camelon
68640e20a9 Patch for David Daoust - Updated IBM Copyright notices 2004-06-23 20:31:49 +00:00
Alain Magloire
dbaa2dcea9 Part of PR 68246.
Close the inputstream to release resource handle
	when we done with it, we can not rely on the GC to do it for us.
2004-06-23 03:32:16 +00:00
Andrew Niefer
9bba5a8939 respond to source container changes
also check start and end of problem markers
2004-06-22 18:13:03 +00:00
David Inglis
3c69bad0a7 ask for scannerinfo of resource instead of project 2004-06-21 18:46:53 +00:00