mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-26 11:30:36 +00:00
clang-tidy is a tool provided by Clang to perform static analysis on C++ source files. here, we are mostly intersted in using its https://clang.llvm.org/extra/clang-tidy/checks/bugprone/use-after-move.html check to reveal the potential issues. this workflow is added to run clang-tidy when building the tree, so that the warnings from clang-tidy can be noticed by developers. a dedicated action is added so other github workflow can reuse it to setup the building environment in an ubuntu:jammy runner. clang-tidy-matcher.json is added to annotate the change, so that the warnings are more visible with github webpage. Signed-off-by: Kefu Chai <kefu.chai@scylladb.com> Closes scylladb/scylladb#18342