Commit b6ea6edc by James Darpinian Committed by Commit Bot

Remove tabs from volk.c/h

WebKit's SVN continues to abhor tabs. Bug: angleproject:3439 Change-Id: Ib97fc97c0eb7401f73ea493a7b679f78afc1a8c4 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2606658Reviewed-by: 's avatarKenneth Russell <kbr@chromium.org> Reviewed-by: 's avatarShahbaz Youssefi <syoussefi@chromium.org> Commit-Queue: James Darpinian <jdarpinian@chromium.org>
parent 07dea837
...@@ -14,8 +14,8 @@ import subprocess ...@@ -14,8 +14,8 @@ import subprocess
import sys import sys
import tempfile import tempfile
# Fragment of a regular expression that matches C++ and Objective-C++ implementation files and headers. # Fragment of a regular expression that matches C/C++ and Objective-C++ implementation files and headers.
_IMPLEMENTATION_AND_HEADER_EXTENSIONS = r'\.(cc|cpp|cxx|mm|h|hpp|hxx)$' _IMPLEMENTATION_AND_HEADER_EXTENSIONS = r'\.(c|cc|cpp|cxx|mm|h|hpp|hxx)$'
# Fragment of a regular expression that matches C++ and Objective-C++ header files. # Fragment of a regular expression that matches C++ and Objective-C++ header files.
_HEADER_EXTENSIONS = r'\.(h|hpp|hxx)$' _HEADER_EXTENSIONS = r'\.(h|hpp|hxx)$'
...@@ -323,12 +323,15 @@ def _CheckExportValidity(input_api, output_api): ...@@ -323,12 +323,15 @@ def _CheckExportValidity(input_api, output_api):
def _CheckTabsInSourceFiles(input_api, output_api): def _CheckTabsInSourceFiles(input_api, output_api):
"""Forbids tab characters in source files due to a WebKit repo requirement. """ """Forbids tab characters in source files due to a WebKit repo requirement. """
def implementation_and_headers(f): def implementation_and_headers_including_third_party(f):
# Check third_party files too, because WebKit's checks don't make exceptions.
return input_api.FilterSourceFile( return input_api.FilterSourceFile(
f, files_to_check=(r'.+%s' % _IMPLEMENTATION_AND_HEADER_EXTENSIONS,)) f,
files_to_check=(r'.+%s' % _IMPLEMENTATION_AND_HEADER_EXTENSIONS,),
files_to_skip=[f for f in input_api.DEFAULT_FILES_TO_SKIP if not "third_party" in f])
files_with_tabs = [] files_with_tabs = []
for f in input_api.AffectedSourceFiles(implementation_and_headers): for f in input_api.AffectedSourceFiles(implementation_and_headers_including_third_party):
for (num, line) in f.ChangedContents(): for (num, line) in f.ChangedContents():
if '\t' in line: if '\t' in line:
files_with_tabs.append(f) files_with_tabs.append(f)
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment