Hi! Is that possible to know the sources dir of current project opened in KDevelop?

Aleix Pol aleixpol at kde.org
Mon Jan 25 14:33:23 UTC 2016


On Sun, Jan 24, 2016 at 8:10 AM, Imran Tatriev <itatriev at gmail.com> wrote:
> Hi, I want to know if this would be possible? What I'm trying to do: I want
> to run static code checker on every cmake project that is being built in
> KDevelop IDE. Currently, I'm able to run it only if I've modified my
> project's CMakeLists. I want to get rid of it and modify KDevelop's
> CMakeLists once.
>
> P.S. I know how to deploy, but unsure how get the sources dir(of opened
> project in KDevelop, of course).

IMHO, KDevelop is the wrong abstraction where to integrate this.
Especially the project manager support.

If you want to integrate with cmake, use something like we did with Clazy:
https://quickgit.kde.org/?p=extra-cmake-modules.git&a=commit&h=8f0cbc9f8a8e3b60df6755da1d7d5369ef37b8f2

Otherwise, if it's a clang plugin, it can be integrated loaded in our
clang instantiation.

Aleix


More information about the KDevelop-devel mailing list