[PATCH] D138746: [clang-format] Add .inc extension to git-clang-format
Alexandre Ganea via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Nov 26 07:47:04 PST 2022
aganea created this revision.
aganea added a reviewer: clang-format.
Herald added a project: All.
aganea requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
The .inc extension isn't picked up for formatting when doing `git clang-format` on the LLVM repo. I'm not sure if we want this at large or more specific just for the LLVM codebase.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D138746
Files:
clang/tools/clang-format/git-clang-format
Index: clang/tools/clang-format/git-clang-format
===================================================================
--- clang/tools/clang-format/git-clang-format
+++ clang/tools/clang-format/git-clang-format
@@ -88,7 +88,7 @@
'c', 'h', # C
'm', # ObjC
'mm', # ObjC++
- 'cc', 'cp', 'cpp', 'c++', 'cxx', 'hh', 'hpp', 'hxx', # C++
+ '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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D138746.478060.patch
Type: text/x-patch
Size: 566 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221126/842fed8d/attachment.bin>
More information about the cfe-commits
mailing list