diff options
author | Andreas Cord-Landwehr <cordlandwehr@kde.org> | 2021-05-27 16:37:24 +0200 |
---|---|---|
committer | Andreas Cord-Landwehr <cordlandwehr@kde.org> | 2021-05-27 16:37:24 +0200 |
commit | 07854bb9f0ac1ad5b5fad757395e04824c3fe9f3 (patch) | |
tree | 920b6c1eddf6903944d35ad916d0ca205affaea4 /modules/ECMQtDeclareLoggingCategory.cmake | |
parent | e94611c70863335efc00709541dd009e18c968a7 (diff) | |
download | extra-cmake-modules-07854bb9f0ac1ad5b5fad757395e04824c3fe9f3.tar.gz extra-cmake-modules-07854bb9f0ac1ad5b5fad757395e04824c3fe9f3.tar.bz2 |
Provide fallback error when no .clang-format file is present
This check fixes a probably rare case, where we land in a repository
that contains this clang-format.sh hook but where the format file went
missing. In such cases, clang-format falls back to the system defaults,
which brings undesired defaults, e.g. enforced line breaks in comments
after 90 chars, which cannot easily be reverted by a reformat.
Since clang-format's --fallback-style=none option is not available for
git clang-format, this comment reimplements the logic.
Diffstat (limited to 'modules/ECMQtDeclareLoggingCategory.cmake')
0 files changed, 0 insertions, 0 deletions