CLion Clang-tidy for macOS M1 comes with false alarm of bugprone-exception-escape errors.

Answered

Hi, I've installed Clion for M1, and it comes with clang-tidy 

/Applications//CLion.app/Contents/bin/clang/mac/clang-tidy

LLVM (http://llvm.org/):
  LLVM version 15.0.0git
  Optimized build.
  Default target: x86_64-apple-darwin21.6.0
  Host CPU: apple-m1

However, starting from version 14, clang-tidy have issue with giving false positive of exception prone method that can throw exception that never get caught. here's the planned fix from llvm site :

https://reviews.llvm.org/D134588

what is the best way to change clang-tidy version for CLion without installing the llvm from scratch.

 

Thanks

 

 

 

1 comment
Comment actions Permalink

Hello!

You can provide the path to your custom Clang-Tidy binary in Preferences | Languages & Frameworks | C/C++ | Clang-Tidy - https://www.jetbrains.com/help/clion/clang-tidy-checks-support.html#executable

0

Please sign in to leave a comment.