Skip to content

Commit

Permalink
Merge branch 'master' into hip-extension
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLartians authored Dec 29, 2024
2 parents 996b98d + 75a7238 commit 7641d4f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ After [adding CPM.cmake](https://github.com/cpm-cmake/CPM.cmake#adding-cpm), add

```cmake
include(cmake/CPM.cmake)
CPMAddPackage("gh:TheLartians/Format.cmake@1.7.3")
CPMAddPackage("gh:TheLartians/Format.cmake@1.8.2")
```

#### Advanced configuration
Expand All @@ -47,9 +47,9 @@ This package supports optional parameters that you can specify in the CPM.cmake
```CMake
CPMAddPackage(
NAME Format.cmake
VERSION 1.7.3
VERSION 1.8.2
GITHUB_REPOSITORY TheLartians/Format.cmake
OPTIONS
OPTIONS
# set to yes skip cmake formatting
"FORMAT_SKIP_CMAKE NO"
# set to yes skip clang formatting
Expand Down
2 changes: 1 addition & 1 deletion cmake-format.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ string(STRIP ${GIT_TOPLEVEL} GIT_TOPLEVEL)

get_cmake_files(
GIT_REPOSITORY_DIR ${GIT_TOPLEVEL} OUTPUT_LIST CMAKE_FILES REGEX
"\\.cmake$|(^|/)CMakeLists\\.txt$"
"\\.cmake$|\\.cmake\\.in$|(^|/)CMakeLists\\.txt$"
)

separate_arguments(CMAKE_FORMAT_EXTRA_ARGS)
Expand Down
8 changes: 4 additions & 4 deletions git-clang-format.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"""

from __future__ import absolute_import, division, print_function

import argparse
import collections
import contextlib
Expand Down Expand Up @@ -79,10 +80,9 @@ def main():
'c', 'h', # C
'm', # ObjC
'mm', # ObjC++
'cc', 'cp', 'cpp', 'ipp', 'c++', 'cxx', 'hh', 'hpp', 'hxx', 'inc', 'inl', # C++
'cc', 'cp', 'cpp', 'ipp', 'c++', 'cxx', 'hh', 'hpp', 'hxx', 'inc', 'inl', # C++
'ccm', 'cppm', 'cxxm', 'c++m', # C++ Modules
'cu', 'cuh', # CUDA
'hip', # HIP
'cu', 'cuh', # CUDA
# Other languages that clang-format supports
'proto', 'protodevel', # Protocol Buffers
'java', # Java
Expand All @@ -91,7 +91,7 @@ def main():
'cs', # C Sharp
'sv', 'svh', 'v', 'vh', # Verilog
'json', # JSON
])
])

p = argparse.ArgumentParser(
usage=usage, formatter_class=argparse.RawDescriptionHelpFormatter,
Expand Down

0 comments on commit 7641d4f

Please sign in to comment.