Roberto Raggi
60f76c96e8
Improved LookupItem and get rid of some deprecated code.
2010-05-14 13:55:21 +02:00
Roberto Raggi
c282da7d1e
Introduced Snapshot::findMatchingDefinition().
2010-05-11 14:15:07 +02:00
Roberto Raggi
7eae51507c
Removed deprecated method Snapshot::globalNamespaceBinding().
2010-05-11 14:15:06 +02:00
Roberto Raggi
61a504c427
Ensure that the memory pool can be reused after a rewind and get rid of the segmented array.
2010-03-18 15:23:13 +01:00
Erik Verbruggen
1cc5e1fe01
Put the include depenency table into a separate class, and cache it when possible.
2010-03-17 14:20:17 +01:00
hjk
9595504bda
Long live the king!
2010-03-05 11:28:13 +01:00
Christian Kamm
c3cc7cf4d8
Enhance data stored for macros and macro uses.
...
In preparation for finding macro uses.
* Macro: add offset and length
* MacroUse: add line
* Document: add convenience functions for finding a macro definition, use
or undefined use at a given location.
Reviewed-by: Erik Verbruggen
2009-12-21 14:57:05 +01:00
Roberto Raggi
51de95c497
Use the text editor revision to ignore outdated parse results.
2009-12-15 15:52:55 +01:00
Roberto Raggi
60caec48d1
Store the documents in an hash.
2009-12-07 11:12:55 +01:00
Roberto Raggi
14376c3c32
Initial work on the new CPlusPlus::Snapshot.
...
Encapsulate the details.
2009-12-07 10:54:27 +01:00
Roberto Raggi
8741494f41
Rename dependsOn() in filesDepedingOn() and introduced Snapshot::dependencyTable().
2009-12-02 17:07:10 +01:00
Friedemann Kleint
d2bd092b47
Code model: Fix Windows issues (duplicate matches).
...
Ensure the code model receives file names with clean paths ('/')
and fix paths in the relevant places of the code model. Pass on clean
paths from Cpp reference find and display them correctly in the search
window tooltip.
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com >
2009-11-09 13:53:28 +01:00
Roberto Raggi
eaa2c10a25
Introduced CppTools::CppModelManagerInterface::updateModifiedFiles().
...
updateModifiedFiles ckecks the timestamp and reparses all the modified files in the current snapshot.
2009-11-05 12:34:02 +01:00
Roberto Raggi
f829ef899c
Store in the document's macroUsages only the top-level macro expansions.
2009-10-15 16:25:10 +02:00
Christian Kamm
22ed0255b9
Track more macro uses.
...
In particular macros that are only checked for definition or are
expanded during the evaluation of an #if or #elif directive are now also
added to the list available through Document::macroUses().
The names of undefined macros that are interesting (because they're used
in an #ifdef or a defined(...)) are now available through
Document::undefinedMacroUses().
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com >
2009-09-25 16:08:01 +02:00
hjk
93cbef8724
long live the king
2009-08-14 09:30:56 +02:00
Roberto Raggi
1e7b406327
Added Snapshot::dependsOn().
...
Snapshot::dependsOn(fn) returns the files in the snapshot that depends on fn.
2009-07-29 10:18:07 +02:00
Roberto Raggi
37a146d05c
Introduced revisions in CPlusPlus::Document.
...
Reviewed by Thorbjørn Lindeijer
2009-07-14 14:24:02 +02:00
Roberto Raggi
fd4dbd7446
Introduced Snapshot::simplified(doc)
2009-07-10 12:42:55 +02:00
Roberto Raggi
fd8cd69a47
Introduced Document::CheckMode.
2009-06-26 09:11:14 +02:00
Jason McDonald
884b7af769
Update license headers and sales contact details.
...
Reviewed-by: Trust Me
2009-06-17 00:01:27 +10:00
Roberto Raggi
e2a0a4d7c5
Keep the original encoded text around while preprocessing.
2009-06-15 15:39:20 +02:00
Roberto Raggi
b18cb113da
Added Document::source()
2009-06-05 14:29:57 +02:00
Roberto Raggi
fd62025d63
Say hello to Snapshot::documentFromSource(), Snapshot::preprocessedCode() and Snapshot::globalNamespaceBinding().
2009-06-03 16:16:20 +02:00
Roberto Raggi
fde8ca4a16
Added Document::ParseDeclarator.
2009-03-30 15:08:21 +02:00
Thorbjørn Lindeijer
222b4faba8
Don't try to jump to unresolved included files
...
It popped up an error saying the file couldn't be found. Better not show
a link at all.
2009-03-26 18:21:11 +01:00
Roberto Raggi
e253f39360
Store the actual arguments of the macro expansions.
2009-03-04 11:47:30 +01:00
hjk
8ca887aae2
Fixes: change file license headers to include LGPL
2009-02-25 09:15:00 +01:00
Roberto Raggi
bfe36575b7
Introduced a parallel indexer. It is ifdef-out atm.
2009-02-24 11:04:52 +01:00
Daniel Molkentin
59affcfffc
Bump year in licence header.
2009-01-13 19:22:14 +01:00
Roberto Raggi
0422bcbbd5
Some more clean up in the preprocessor.
2008-12-22 14:10:47 +01:00
Roberto Raggi
678c09c813
Made line and column unsigned ints.
2008-12-18 10:53:56 +01:00
hjk
da3cb14483
chancge Nokia GPL exception version from 1.2 to 1.3
2008-12-16 17:20:00 +01:00
Roberto Raggi
bab60d14b3
Introduced CPlusPlus::Snapshot, it contains a snap shot of the indexer's current state.
...
This change removes a number of wrong usages of the CppModelManager::documents()/document().
2008-12-12 10:07:58 +01:00
Roberto Raggi
d454607264
Implemented tooltip and lookat for #include directives.
2008-12-10 17:21:28 +01:00
Roberto Raggi
20e36cc364
tooltip for macro definitions.
2008-12-09 15:24:26 +01:00
Roberto Raggi
310d50fd07
Use Macros.
2008-12-08 12:59:57 +01:00
Roberto Raggi
3d3802d50f
Added macro expanding events and some initial on the macro highlighting support.
2008-12-04 12:06:26 +01:00
Roberto Raggi
e2e4fcd95b
Added different parsing mode to TranslationUnit/CppDocument.
2008-12-03 14:01:58 +01:00
hjk
ab83dcd87c
off-by-one in headers
2008-12-02 14:20:25 +01:00
hjk
8a43d9b9f3
end-of-line whitespace correction of the new headers
2008-12-02 14:17:16 +01:00
hjk
f61e8672db
more cosmetic changes
2008-12-02 14:09:21 +01:00
con
05c35356ab
Initial import
2008-12-02 12:01:29 +01:00