aboutsummaryrefslogtreecommitdiff
path: root/scripts/include_functions_kernels.py
diff options
context:
space:
mode:
authorJakub Sujak <jakub.sujak@arm.com>2023-08-23 14:42:26 +0100
committerGunes Bayir <gunes.bayir@arm.com>2023-09-28 16:24:00 +0000
commit6e56bf3b58719772111236d3b0030fbb5e8d2e16 (patch)
tree84fb0ef0c03f1bba83285f7cd184131b158df68d /scripts/include_functions_kernels.py
parent2ad0a6be5b9d14fa30e92f548fa6a97fd9061aa1 (diff)
downloadComputeLibrary-6e56bf3b58719772111236d3b0030fbb5e8d2e16.tar.gz
Revise clang-format configuration
Clang-format options now match those in clang-format version 14. Remove Astyle checks as the same code style checks are provided by clang-format. Resolves: COMPMID-6576 Change-Id: Iefa9bb719826242a3276e9ca058d0c84624f7302 Signed-off-by: Felix Thomasmathibalan <felixjohnny.thomasmathibalan@arm.com> Signed-off-by: Jakub Sujak <jakub.sujak@arm.com> Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/10399 Benchmark: Arm Jenkins <bsgcomp@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Gunes Bayir <gunes.bayir@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'scripts/include_functions_kernels.py')
-rw-r--r--scripts/include_functions_kernels.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/include_functions_kernels.py b/scripts/include_functions_kernels.py
index 82b40f0e36..49c12867e6 100644
--- a/scripts/include_functions_kernels.py
+++ b/scripts/include_functions_kernels.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
-# Copyright (c) 2017-2018, 2020-2021 Arm Limited.
+# Copyright (c) 2017-2018, 2020-2021, 2023 Arm Limited.
#
# SPDX-License-Identifier: MIT
#
@@ -74,7 +74,7 @@ def create_include_list(folder):
files_path = folder + "/*.h"
files = glob.glob(files_path)
updated_files = [include_str + folder + "/" + x.rsplit('/',1)[1] + "\"\n" for x in files]
- updated_files.sort()
+ updated_files.sort(key=lambda x: x.lower())
return updated_files
@@ -86,7 +86,7 @@ def include_components(target, path, header_prefix, folder, subfolders=None):
include_list = create_include_list(target_path + folder)
for s in subfolders or []:
include_list += create_include_list( target_path + folder + "/" + s)
- include_list.sort()
+ include_list.sort(key=lambda x: x.lower())
lines = read_file(components_file)
lines, first_pos = remove_existing_includes(lines)
lines = add_updated_includes(lines, first_pos, include_list)