legendtang / clang-static-analyzer-example-out-of-tree

Simple out of tree build setup for the example clang static analyzer plugin,

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Clang Static Analyzer Example Plugin

This project shows how to build the example static analyzer plugin from the Clang sources (examples/analyzer-plugin/MainCallChecker.cpp) out of tree with Meson instead of the LLVM cmake based build system.

To build:

mkdir build
cd build
meson ..
ninja

To run with clang:

clang -cc1 -load build/libMainCallChecker.so -analyze -analyzer-checker=example.MainCallChecker test.c

About

Simple out of tree build setup for the example clang static analyzer plugin,

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:CMake 48.4%Language:C++ 25.9%Language:Meson 25.1%Language:C 0.6%