Runs clang-tidy against a C or C++ codebase in a given directory.
Example usage:
- uses: UoMResearchIT/actions/run-clang-tidy@v1.2.4Important
Assumes that it is being run in an Ubuntu-based runner.
-
config-fileThe path to the configuration file, if not using the predefined profile. Relative filenames are resolved relative to
working-directory. Optional.Example:
../.clang-tidy -
file-globWhat files to match for testing, as a pattern. Optional.
Note that headers typically require additional configuration options to check. See the documentation for details.
Default:*.cpp -
optionsExtra options to pass to clang-tidy. Optional.
-
working-directoryThe working directory to run in. Optional.
Default:.
None.
No special permissions required.