Fix cmake_format

Signed-off-by: Pawel Cieslak <pawel.cieslak@intel.com>
This commit is contained in:
Pawel Cieslak 2021-04-19 11:57:04 +02:00 committed by Compute-Runtime-Automation
parent 7a5e0e13a5
commit 20549fdf0e
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,6 @@
#!/usr/bin/env python3
#
# Copyright (C) 2020 Intel Corporation
# Copyright (C) 2020-2021 Intel Corporation
#
# SPDX-License-Identifier: MIT
#
@ -30,6 +30,7 @@ def remove_extra_spaces(line):
line = re.sub(r'\)AND\(', ') AND (', line)
line = re.sub(r'\)OR\(', ') OR (', line)
line = re.sub(r'NOT\(', 'NOT (', line)
line = re.sub(r' *\) *(?=[A-Z])', ') ', line)
return line