CLion 2017.2.2 EAP: configure Clang-Tidy checks you need

Today we start CLion 2017.2.2 Early Access Program, build 172.3968.3 is available here. Please, note that this EAP build requires an active subscription (or you can start a 30-day evaluation period).

Upd. CLion 2017.2.2 is available.

Clang-Tidy integration: disable individual checks and other improvements

CLion 2017.2 brought Clang-Tidy integration, that expands the list of CLion’s checks and helps you ensure better code quality. We’ve received a lot of useful feedback and today are happy to address several important issues:

  • Now you can use your own Clang-Tidy instead of one bundled into CLion. To do so provide a path to the Clang-Tidy binary in Settings/Preferences | Languages & Frameworks | C/C++:
    clang_tidy
    The main benefit of this change is that you can now checkout the LLVM master repository, add your own checks to the Clang-Tidy and get them instantly in CLion!

    Please, be sure you are using Clang-Tidy version 6.0.0 and more (or any other version, but with this and this patches applied).

  • You can now disable individual Clang-Tidy checks from the CLion context menu:
    disable_move_check

    This will update the list of enabled/disable checks in Settings/Preferences | Editor | Inspections | C/C++ | General | Clang-Tidy:
    clang_tidy_settings

    In this context menu you can also find an option to suppress Clang-Tidy check for a particular line via // NOLINT.

  • Default configuration of enabled/disabled checks was slightly updated.

That’s it! Full release notes are available by the link.

Your CLion Team

JetBrains
The Drive to Develop

This entry was posted in Early Access Preview and tagged , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *