Skip to content

robertu94/clang-tidy-external-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example of external clang-tidy check

Fully-working external clang-tidy module example! It's not a very useful check, but I wrote this quickly as a proof of concept.

Dependencies (tested Fedora 37):

  • clang-devel (or equivelent)
  • clang-tools-extra-devel (or equivelent)

When this was written clang-tools-extra-devel was in the testing repo (should be in the primary repos soon and for Fedora 38), and may need to be installed with sudo dnf install --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-8a08ac5d70 clang-tools-extra-devel depending on when you read this.

test if the check was loaded

 clang-tidy --checks=-*,*libpressio* -list-checks -load ./build/libmyclang_tidy.so

run the check on some source code

clang-tidy -p build --checks=-*,*libpressio* -load ~/git/play/clang-tidy-external/build/libmyclang_tidy.so src/*.cc

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published