Format.cmake
Format.cmake copied to clipboard
The git-clang-format.py is not in sync with the llvm-18 version
diff --git a/git-clang-format.py b/git-clang-format.py
index 30a2add..2e7b6d8 100644
--- a/git-clang-format.py
+++ b/git-clang-format.py
@@ -25,6 +25,7 @@ Requires Python 2.7 or Python 3
"""
from __future__ import absolute_import, division, print_function
+
import argparse
import collections
import contextlib
@@ -79,14 +80,17 @@ def main():
'c', 'h', # C
'm', # ObjC
'mm', # ObjC++
- 'cc', 'cp', 'cpp', 'c++', 'cxx', 'hh', 'hpp', 'hxx', 'inc', 'inl', # C++
- 'cu', # CUDA
+ 'cc', 'cp', 'cpp', 'c++', 'cxx', 'hh', 'hpp', 'hxx', 'inc', # C++
+ 'ccm', 'cppm', 'cxxm', 'c++m', # C++ Modules
+ 'cu', 'cuh', # CUDA
# Other languages that clang-format supports
'proto', 'protodevel', # Protocol Buffers
'java', # Java
'js', # JavaScript
'ts', # TypeScript
'cs', # C Sharp
+ 'json', # Json
+ 'sv', 'svh', 'v', 'vh', # Verilog
])
p = argparse.ArgumentParser(