diff options
-rwxr-xr-x | utils/sort_includes.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/utils/sort_includes.py b/utils/sort_includes.py index 855cb38ad5..c1500f52e0 100755 --- a/utils/sort_includes.py +++ b/utils/sort_includes.py @@ -13,6 +13,11 @@ import os def sort_includes(f): """Sort the #include lines of a specific file.""" + + # Skip files which are under INPUTS trees or test trees. + if 'INPUTS/' in f.name or 'test/' in f.name: + return + lines = f.readlines() look_for_api_header = os.path.splitext(f.name)[1] == '.cpp' found_headers = False |