A template for building a clang plugin
C++ Python
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
Library
clang @ 2bfa166
detectTrailingWS
llvm @ 99cbdde
scripts
testChecker
.gitignore
.gitmodules
CMakeLists.txt
README

README

To build the plugin execute:

git submodule init
git submodule update
ln -s ../../clang llvm/tools/clang

# build llvm & clang
mkdir build.llvm
cd build.llvm
cmake -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo ../llvm
make
cd ..

# build clangPlugin
mkdir build
cd build
cmake -DCLANG_PLUGIN_DIR=`pwd`/.. ..
make

# build Xcode Template
make XcodeTemplate
rsync -av Library ~

# To use the custom build clang as the Xcode analyzer
sudo make xcode-analyzer