mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-04-20 06:49:15 +00:00
upgrade from clang-format-12 to clang-format-18 (#2568)
* upgrade to clang-format-18 * update to clang-format-18 in pre-commit-config
This commit is contained in:
@@ -1,14 +1,8 @@
|
||||
from datetime import datetime
|
||||
import pathlib
|
||||
from pathlib import Path
|
||||
import subprocess
|
||||
import os
|
||||
import copy
|
||||
from datetime import datetime import pathlib from pathlib import Path import subprocess import os
|
||||
import copy
|
||||
|
||||
NS = 'ck_tile'
|
||||
OPS = 'ops'
|
||||
REF = 'ref'
|
||||
OPS_COMMON = 'common' # common header will be duplicated into ops/* other module
|
||||
NS = 'ck_tile' OPS = 'ops' REF = 'ref' OPS_COMMON =
|
||||
'common' #common header will be duplicated into ops/* other module
|
||||
|
||||
HEADER_COMMON = f"""// SPDX-License-Identifier: MIT
|
||||
// Copyright (c) 2018-{datetime.now().year}, Advanced Micro Devices, Inc. All rights reserved.\n
|
||||
@@ -82,7 +76,7 @@ submodule = submodule_t()
|
||||
# formatting
|
||||
for x in all_files:
|
||||
subprocess.Popen(f'dos2unix {str(x)}', shell=True)
|
||||
cmd = f'clang-format-12 -style=file -i {str(x)}'
|
||||
cmd = f'clang-format-18 -style=file -i {str(x)}'
|
||||
#for xp in x.parents:
|
||||
#print(get_file_base(x))
|
||||
subprocess.Popen(cmd, shell=True)
|
||||
|
||||
Reference in New Issue
Block a user