├── .arcconfig ├── .gitignore ├── CMakeLists.txt └── README.md /.arcconfig: -------------------------------------------------------------------------------- 1 | { 2 | "phabricator.uri" : "https://phabricator.kde.org/project/profile/29/" 3 | } 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .kdev4 2 | *kdev4 3 | build 4 | *.yaml 5 | !tests/data/* 6 | -------------------------------------------------------------------------------- /CMakeLists.txt: -------------------------------------------------------------------------------- 1 | project(kdev-clangtidy LANGUAGES NONE) 2 | message(FATAL_ERROR "kdev-clang-tidy was merged into kdevelop.git, git checkout v0.3.3 for the last stand-alone version") 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # kdev-clang-tidy 2 | 3 | A plugin for [KDevelop](https://www.kdevelop.org) to support [Clang-Tidy](http://clang.llvm.org/extra/clang-tidy/) static analysis. 4 | 5 | The last stand-alone release is 0.3.3. 6 | 7 | **NOTE:** 8 | Since then kdev-clang-tidy has been moved into kdevelop.git:plugins/clangtidy and will be released as part of KDevelop, starting with KDevelop 5.4. 9 | 10 | ## Get It For KDevelop 5.2/5.3 11 | 12 | Search the package manager of your Linux distribution or *BSD system for it (e.g. kdevelop-clang-tidy or kdev-clang-tidy): 13 | 14 | * Arch Linux: kdevelop-clang-tidy 15 | * Gentoo: kdevelop-clang-tidy 16 | * openSUSE: kdevelop5-plugin-clang-tidy 17 | * (please report the name in your package system/distribution, so it can be listed here). 18 | 19 | Or try to install it via its [AppStream Id Link](appstream://org.kde.kdev-clang-tidy) 20 | 21 | 22 | ## Use It 23 | 24 | Once installed, open the global KDevelop settings: ensure in the "Plugins" page that the "Clang-Tidy Support" plugin is enabled, then in the "Analyzers"/"Clang-Tidy" page make sure the clang-tidy executable path points to an existing executable. 25 | 26 | Next open the configuration dialog for a project and check the settings in the "Clang-Tidy" page. 27 | 28 | Then open a C++ source file of your project. Now invoke a run of clang-tidy either via the main menu "Code"/"Analyze Current File With"/"Analyze Current File With Clang-Tidy" or via the context menu on the file "Analyze Current File With"/"Clang-Tidy". A job should be started and, once finished, the "Problems" tool view should show up with the page "Clang-Tidy" selected, listing the result of the run. 29 | 30 | **NOTE:** 31 | For now one has to enable oneself the creation of the so-called compilation database which clang-tidy uses, e.g. with CMake to set the flag `CMAKE_EXPORT_COMPILE_COMMANDS` to `ON` 32 | in the settings (listed under "Advanced values" in the project's CMake settings in KDevelop). The plugin does not (yet) handle that for you. 33 | 34 | 35 | ## Report Bugs & Feature Requests 36 | 37 | Tell what issues you have or would like to see at the [KDE bug tracker, product "KDevelop", component "Analyzer: Clang-Tidy"](https://bugs.kde.org/enter_bug.cgi?format=guided&product=kdevelop&component=Analyzer:%20Clang-Tidy) 38 | --------------------------------------------------------------------------------