add Import kind to Declaration, so we can re-use all the nice Declaration features...
authorMilian Wolff <mail@milianw.de>
Mon, 19 Oct 2009 17:10:10 +0000 (17:10 -0000)
committerMilian Wolff <mail@milianw.de>
Mon, 19 Oct 2009 17:10:10 +0000 (17:10 -0000)
commitb3823076e05c38b94f8cf40afb00ce53f9467278
tree09b4273bec23cb404f81ee1b7bd44050881dc855
parent87753c7aa191c5f6215582a9edbae595787081ee
add Import kind to Declaration, so we can re-use all the nice Declaration features for file includes, e.g. uses, jump to dec==file etc.

To use, just add the declaration to the _included_ file, I personally add it directly to the beginning, with an empty range.
Than just build uses for every include. Works very well.

TODO: port the code to create a nice navigation widget from the IncludeItem to KDevplatform, so others can re-use it.
language/duchain/declaration.h