Findclang-format¶
find_package(clang-format [REQUIRED] [QUIET])
This module locates clang-format. CLANG-FORMAT_FOUND
will report if clang-format has been
found.
Result Variables¶
Defines the following variables:
CLANG-FORMAT_FOUND
- System has clang-format.
CLANG-FORMAT_EXECUTABLE
- Path to the clang-format executable.
Hints¶
You can directly set CLANG-FORMAT_EXECUTABLE
if the module has trouble finding clang-format.