diff options
Diffstat (limited to 'tools/clang-format/git-clang-format')
-rwxr-xr-x | tools/clang-format/git-clang-format | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/clang-format/git-clang-format b/tools/clang-format/git-clang-format index 71b9124149fc..60cd4fb25b63 100755 --- a/tools/clang-format/git-clang-format +++ b/tools/clang-format/git-clang-format @@ -324,6 +324,8 @@ def filter_by_extension(dictionary, allowed_extensions): allowed_extensions = frozenset(allowed_extensions) for filename in list(dictionary.keys()): base_ext = filename.rsplit('.', 1) + if len(base_ext) == 1 and '' in allowed_extensions: + continue if len(base_ext) == 1 or base_ext[1].lower() not in allowed_extensions: del dictionary[filename] |