Skip to content

Commit

Permalink
[clang-format] Recognize "hxx" as a C++ header in clang-format-diff.py
Browse files Browse the repository at this point in the history
And shift "proto" to the next line to avoid a too long line.

Reviewed By: MyDeveloperDay

Differential Revision: https://reviews.llvm.org/D87931
  • Loading branch information
vmiklos committed Sep 18, 2020
1 parent 9b346f9 commit b168bbf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clang/tools/clang-format/clang-format-diff.py
Expand Up @@ -47,8 +47,8 @@ def main():
help='custom pattern selecting file paths to reformat '
'(case sensitive, overrides -iregex)')
parser.add_argument('-iregex', metavar='PATTERN', default=
r'.*\.(cpp|cc|c\+\+|cxx|c|cl|h|hh|hpp|m|mm|inc|js|ts|proto'
r'|protodevel|java|cs)',
r'.*\.(cpp|cc|c\+\+|cxx|c|cl|h|hh|hpp|hxx|m|mm|inc|js|ts'
r'|proto|protodevel|java|cs)',
help='custom pattern selecting file paths to reformat '
'(case insensitive, overridden by -regex)')
parser.add_argument('-sort-includes', action='store_true', default=False,
Expand Down

0 comments on commit b168bbf

Please sign in to comment.