Skip to content

Commit

Permalink
change target title
Browse files Browse the repository at this point in the history
  • Loading branch information
LoQue90 committed Mar 13, 2024
1 parent 38eea00 commit e9e8b32
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions run_clangformat.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,18 @@ def formatting_callback(*arg, **kwargs):
if env.Execute("clang-format --Werror" + (" --dry-run " if not kwargs.get("apply", False) else " ") + "-i " + " ".join(f'"{f}"' for f in file_list)):
env.Exit(1)

env.AddCustomTarget(
"check-format",
None,
check_format_callback,
title="Check clang-format",
description="Check Source Code Formatting")

env.AddCustomTarget(
"format",
None,
apply_format_callback,
title="clang-format",
title="Apply clang-format",
description="Run Source Code Formatting")

env.AddCustomTarget(
"check-format",
None,
check_format_callback,
title="clang-format",
description="Check Source Code Formatting")

0 comments on commit e9e8b32

Please sign in to comment.