4

I've installed clang-3.4.2-7.el7.x86_64.rpm on RHEL 7 and it came with llvm, but i couldn't find the scan-build utility.

I have already installed gcc and cmake and all other tools that are mentioned here But unfortunately i can't execute the scan-build commands.

BTW, I want to integrate it with Clang Scan-Build Plugin.

Am I missing something in the configuration?

Alex Brodov
  • 3,365
  • 18
  • 43
  • 66

2 Answers2

5

It's in the package clang-analyzer

bernie
  • 736
  • 6
  • 4
1

Clang analyzer doesn't get installed by default, to install it with the current version of LLVM 6.0 run:

yum install llvm-toolset-6.0-clang-analyzer

You may also want to install llvm-toolset-6.0-clang-tools-extra.

How to install Clang/LLVM 6 on RHEL has this and other details.

Rob T.
  • 386
  • 3
  • 5