From 969284ae91f9a4c8a222f2d4169be4edb5523034 Mon Sep 17 00:00:00 2001 From: Marcel Breyer Date: Sun, 29 Dec 2024 18:13:42 +0100 Subject: [PATCH] Add .hip extension. (#44) * Add .hip extension. * Add new extensions according to issue #41 * Remove wrong brace. * Remove Json. ``` Configuration file(s) do(es) not support Json ``` with clang-formt 18.0.0 * Readd JSON. * Add inl and ipp file endings. --------- Co-authored-by: Lars Melchior --- git-clang-format.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/git-clang-format.py b/git-clang-format.py index 13ce8ea..6b7b9d4 100644 --- a/git-clang-format.py +++ b/git-clang-format.py @@ -80,7 +80,7 @@ def main(): 'c', 'h', # C 'm', # ObjC 'mm', # ObjC++ - 'cc', 'cp', 'cpp', '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 # Other languages that clang-format supports @@ -89,9 +89,9 @@ def main(): 'js', # JavaScript 'ts', # TypeScript 'cs', # C Sharp - 'json', # Json 'sv', 'svh', 'v', 'vh', # Verilog - ]) + 'json', # JSON + ]) p = argparse.ArgumentParser( usage=usage, formatter_class=argparse.RawDescriptionHelpFormatter,