DUChain tests and PersistentMovingRange::text

David Nolden david.nolden.kdevelop at art-master.de
Sun Jan 22 20:49:56 UTC 2012

The solution would be to finish PersistentMovingRange to also work
with not opened documents (using CodeRepresentation internally, as you

The test-code could/should be inserted through a fake-url (this is
already implemented and working well, just look at the uses of
InsertIntoDUChain in test_cppcodegen.cpp), and then it would also work
with PersistentMovingRange.

You would simply have to use the more modern testing infrastructure as
in test_cppcodegen.cpp.

Greetings, David

More information about the KDevelop-devel mailing list