-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement robust project-wide formatting
Now we can format cmake files with cmake-format and any of the file types supported by clang-format (including C++, JavaScript and Json) with clang-format. The following additional targets are defined: * format Shows which files are affected by clang-format * check-format errors if files are affected by clang-format (for CI) * fix-format Applies clang-format to all affected files Dedicated targets for each of `cmake-format` and `clang-format` are also added (e.g. cmake-format, clang-format, check-clang-format,...)
- Loading branch information
Showing
5 changed files
with
37 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# ===-----------------------------------------------------------------------===# | ||
# Distributed under the 3-Clause BSD License. See accompanying file LICENSE or | ||
# copy at https://opensource.org/licenses/BSD-3-Clause). | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
# ===-----------------------------------------------------------------------===# | ||
|
||
macro(asap_create_format_targets) | ||
cpmaddpackage(NAME Format.cmake VERSION 1.7.3 GITHUB_REPOSITORY | ||
TheLartians/Format.cmake) | ||
endmacro() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters