Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 509 Bytes

README.md

File metadata and controls

13 lines (10 loc) · 509 Bytes

Clang-tidy external module example

This project demonstrates how to write an external (out-of-llvm-source) plugin for clang-tidy, that can be used with the --load flag for clang-tidy. depending on how your upstream llvm compiler was built you might need different flags (e.g -fnortti)

instructions

bazel test //...
bazel run //:run --  --checks="-*,mir-*" $PWD/examples/ex1.cpp
# or 
bazel run //:run --  --checks="-*,mir-*" $PWD/examples/ex1.cpp --extra-arg=-I/opt/ros/noetic/include