Menu

How to enable Clang-tidy?

2020-03-26
2020-03-30
  • Sander Bouwhuis

    Sander Bouwhuis - 2020-03-26

    I installed LLVM v10.0 in "C:\Program Files\LLVM".
    I have Clang-tidy in "C:\Program Files\LLVM\Bin".
    I have set the path "C:\Program Files\LLVM\Bin" in the preferences in the Clang tab.

    When I analyze a Visual Studio 2019 *.sln file, CppCheck correctly finds all the projects and the files. But, there are 0 Clang results. I know I'm good, but I also know I'm not THAT good ;)

    What am I doing wrong?

     
  • versat

    versat - 2020-03-30

    You have to enable it in the project settings:
    File -> Edit Project File -> Addons and Tools -> Clang-tidy

     
  • Sander Bouwhuis

    Sander Bouwhuis - 2020-03-30

    Ok, that is very strange.
    I normally just do "File/Open Project File..." and select a *.sln file.
    CppCheck should really ask whether to change settings. I expected the settings I set in the preferences to hold.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.