<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/100706>100706</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
git-clang-format script does not support double extensions like C++ input file *.hpp.in or *.cpp.in for CMake configure_file()
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-format
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
alexramzy
</td>
</tr>
</table>
<pre>
https://github.com/llvm/llvm-project/blob/92a06546ab50c2b6beac766d989b30960c353e61/clang/tools/clang-format/git-clang-format#L391
**Fix Request:**
Please add support for double extensions generally.
**Rationale:**
In CMake project you can use [configure_file](https://cmake.org/cmake/help/latest/command/configure_file.html) extensively to generate actual C++ code from input C++ code source "template" which according to CMake convention normally should be suffixed with `*.in`, hence double extensions like `*.hpp.in` and `*.cpp.in` are quite legal and same `clang-format` checks should be applicable to those files using `git-clang-format` script (e.g. in pre-commit Git hook or manually).
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUlMuO6zYPx59G2RBjyPQl8cKLucAfPqAFivMChSzRthpZ8tFlzqRPX8gzmUl62kUBIZEJShR_5J8iBD1bop41T6x5OYgUF-d7YejNi_XPy2F06tIvMW6BVY8MB4bDrOOSxkK6leFgzOv172Hz7g-SkeEwGjcyHDoUvG3qVowNlzi2Iwl5bFvVnbqx4l3LZdVU1JYMB2mEnRkO0TkTrt8Pk_OriO8xH-5N1S9VVzL-wvjjxy_mNeg3-EbfE4W4P3hfN16_GRKBQCgFIW2b8xEm50G5NBoCeotkg3Y2wEyWvDDmUvwc5JuI2llh6DME3Dr938Lzr-JM8AEELi6BFBZSIGDNk3R20nPy9PukDbHmheHpHrFcxZkK5-frnuGwkNkyaRFzbjhIt67Cqn13e1-xxNUw7K7JvJK5QHQfCUUCIWMSBp4ZPjF8AukUweTdCtpuKd7bg0teEjDESOuWYzNE-LFouYCQ0nml7Zxvf09YOvtKNsMBm-tkzAXC4pJRMBKENE36jRT80HEB1nKGj4W2--YZFrKS_qEQRp_p6rxs2_sBEFZdjfLL6Am-Jx0JDM3C7E5BrPvxu-5pOciF5DncvE5sm9FS5OjRQVxcIMg8A6SQk2Qt_6kLWw5Ber1FYHiiYi5AW9g8PeTi6Aj_0xEW587gPKzCpgyEYVccVF-prurEgfryiGV3PHYdPyy9KktsTuNUj2Xb1mo6djjV7dRNUy1PSsiD7pFjzY_Y8mNZlbyghjrZiUrRVE5TrVjNaRXaFFmSuYUOOoREfcn5kbcHI0YyYZc74r2iMA8A3-9SHtMcWM2NDjF83RR1NNT_ncIVgXIUwLr4Kax_qeW1wd7bLSOGr9pmUl9F3bX52Vq3osETw-6QvPnvw2nnkWfMB5LXHv8KAAD__-LGo5I">