[shac] Make default clang-format tool parameter a function call.

In fuchsia.git, shac checks need access to the 'ctx' variable
in order to determine the location of the prebuilt tools.

This changes the default tool parameter from a string to
a lambda, so this check can be used in both environments.

Tested by pinning this change in fuchsia.git and running the tools.

Change-Id: I641616402d0cc8ae0aa161adc74bd36ceef1643c
Reviewed-on: https://fuchsia-review.googlesource.com/c/shac-project/checks-cpp/+/1040134
Reviewed-by: Darren Chan <chandarren@google.com>
2 files changed
tree: b7dba84de2714f5e76f45e89a5ac4f14986cabf2
  1. checks/
  2. .gitmodules
  3. AUTHORS
  4. CONTRIBUTING.md
  5. LICENSE
  6. OWNERS
  7. README.md
  8. register.star
  9. shac.star
  10. shac.textproto
README.md

Shac Global Checks: C/C++ Repository

This repository hosts a suite of checks for performing static analysis and code health operations on C/C++ source code.

The checks are hosted in the “checks/” directory, split up based on the host-tool being used.

Please see https://github.com/shac-project/shac for more information on the shac tool and framework.