From 124b59ee1336cd9335c637d3d9b4c83db00acb8a Mon Sep 17 00:00:00 2001 From: Wei-Chia Su Date: Tue, 6 Aug 2024 17:26:38 +0100 Subject: [PATCH 1/4] cmake: Terminate Clang-format support This commit removes targets for c. All the dependencies of clang-format are dropped including submodule `run-clang-format`. Signed-off-by: Wei-Chia Su --- .gitmodules | 3 - CMakeLists.txt | 61 +------------------ cmake/FindClang.cmake | 114 ----------------------------------- contrib/run-clang-format/git | 1 - doc/cmake_readme.md | 2 - 5 files changed, 1 insertion(+), 180 deletions(-) delete mode 100644 cmake/FindClang.cmake delete mode 160000 contrib/run-clang-format/git diff --git a/.gitmodules b/.gitmodules index 98fd18396..6f2d5ca79 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,9 +1,6 @@ [submodule "cmsis"] path = contrib/cmsis/git url = https://github.com/ARM-software/CMSIS_5 -[submodule "run-clang-format"] - path = contrib/run-clang-format/git - url = https://github.com/Sarcasm/run-clang-format.git [submodule "contrib/cmock/git"] path = contrib/cmock/git url = https://github.com/ThrowTheSwitch/CMock diff --git a/CMakeLists.txt b/CMakeLists.txt index af48769c3..4d2a41328 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -599,7 +599,6 @@ add_dependencies(${SCP_FIRMWARE_LIB} ${SCP_FIRMWARE_TARGET}) list(APPEND glob_includes "${SCP_SOURCE_DIR}") list(APPEND glob_excludes "^${SCP_SOURCE_DIR}/contrib/cmsis/git") -list(APPEND glob_excludes "^${SCP_SOURCE_DIR}/contrib/run-clang-format/git") list(APPEND cmake_globs "CMakeLists.txt") list(APPEND cmake_globs "*.cmake") @@ -607,10 +606,6 @@ list(APPEND cmake_globs "*.cmake") list(APPEND yaml_globs "*.yml") list(APPEND yaml_globs "*.yaml") -list(APPEND c_globs "*.[ch]") -list(APPEND c_globs "*.[ch]pp") -list(APPEND c_globs "*.[ch]xx") - # # Glob sources and place them in their respective variables. Globs for source # types can be with specified with a `${type}_globs` variable, which should be a @@ -619,7 +614,7 @@ list(APPEND c_globs "*.[ch]xx") # cmake-lint: disable=C0103 -foreach(type cmake yaml c) +foreach(type cmake yaml) unset(sources) foreach(include IN LISTS glob_includes) @@ -718,66 +713,12 @@ if(Yamllint_FOUND) list(APPEND lint_targets "lint-yaml") endif() -# -# Configure Clang-Format. -# - -find_package(Clang OPTIONAL_COMPONENTS Format FormatGit) - -if(Clang_FormatGit_FOUND) - add_custom_target( - format-diff-c - COMMAND Clang::FormatGit HEAD - WORKING_DIRECTORY "${SCP_SOURCE_DIR}" - COMMENT "Formatting modified C/C++ sources..." - COMMAND_EXPAND_LISTS) - - list(APPEND format_diff_targets "format-diff-c") -endif() - -if(Clang_Format_FOUND) - add_custom_target( - format-c - COMMAND Clang::Format -i "${c_sources}" - WORKING_DIRECTORY "${SCP_SOURCE_DIR}" - COMMENT "Formatting C/C++ sources..." - COMMAND_EXPAND_LISTS) - - list(APPEND format_targets "format-c") -endif() - -# -# Configure run-clang-format. -# - -find_package(Python3 COMPONENTS Interpreter) - -if(Python3_Interpreter_FOUND) - add_custom_target( - check-c - COMMAND - Python3::Interpreter - "${SCP_SOURCE_DIR}/contrib/run-clang-format/git/run-clang-format.py" - --clang-format-executable "${Clang_Format_EXECUTABLE}" - "${c_sources}" - WORKING_DIRECTORY "${SCP_SOURCE_DIR}" - COMMENT "Checking C sources..." - COMMAND_EXPAND_LISTS) - - list(APPEND check_targets "check-c") -endif() - # # Create the final check targets. These targets consist of miscellaneous quality # assurance tasks like linting and formatting, and act as dummy targets that # invoke the various tools we set up above. # -add_custom_target( - format-diff - DEPENDS ${format_diff_targets} - COMMENT "Formatting modified sources...") - add_custom_target( format DEPENDS ${format_targets} diff --git a/cmake/FindClang.cmake b/cmake/FindClang.cmake deleted file mode 100644 index 02f797247..000000000 --- a/cmake/FindClang.cmake +++ /dev/null @@ -1,114 +0,0 @@ -# -# Arm SCP/MCP Software -# Copyright (c) 2021, Arm Limited and Contributors. All rights reserved. -# -# SPDX-License-Identifier: BSD-3-Clause -# - -include_guard() - -#[=======================================================================[.rst: -FindClangFormat ---------------- - -Finds tools and libraries belonging to Clang. - -Use this module by invoking ``find_package`` with the form:: - - find_package(Clang [REQUIRED] [COMPONENTS ...] - [OPTIONAL_COMPONENTS ...]) - -This module supports the following components: - -* ``Format``: Locate ``clang-format``. -* ``FormatGit``: Locate ``git-clang-format``, the Git integration of - ``clang-formatt`. - -Imported Targets -^^^^^^^^^^^^^^^^ - -``Clang::Format`` - ``clang-format``. Target defined if component ``Format`` is found. - -``Clang::FormatGit`` - ``git-clang-format``. Target defined if component ``FormatGit`` is found. - -Result Variables -^^^^^^^^^^^^^^^^ - -``Clang_FOUND`` - If false, none of the requested components were found. - -``Clang_Format_FOUND`` - If false, ``clang-format`` was not found. - -``Clang_Format_EXECUTABLE`` - The full path to ``clang-format``. - -``Clang_FormatGit_FOUND`` - If false, ``git-clang-format`` was not found. - -``Clang_FormatGit_EXECUTABLE`` - The full path to ``git-clang-format``. -#]=======================================================================] - -# cmake-lint: disable=C0103 - -find_program( - Clang_Format_EXECUTABLE - NAMES "clang-format-11" - "clang-format-10" - "clang-format-9" - "clang-format-8" - "clang-format-7" - "clang-format-6.0" - "clang-format-5.0" - "clang-format-4.0" - "clang-format-3.9" - "clang-format-3.8" - "clang-format-3.7" - "clang-format-3.6" - "clang-format") - -find_program( - Clang_FormatGit_EXECUTABLE - NAMES "git-clang-format-11" - "git-clang-format-10" - "git-clang-format-9" - "git-clang-format-8" - "git-clang-format-7" - "git-clang-format-6.0" - "git-clang-format-5.0" - "git-clang-format-4.0" - "git-clang-format-3.9" - "git-clang-format-3.8" - "git-clang-format-3.7" - "git-clang-format-3.6" - "git-clang-format") - -if(Clang_Format_EXECUTABLE) - set(Clang_Format_FOUND TRUE) - - mark_as_advanced(Clang_Format_EXECUTABLE) - - add_executable(Clang::Format IMPORTED) - - set_target_properties( - Clang::Format PROPERTIES IMPORTED_LOCATION "${Clang_Format_EXECUTABLE}") -endif() - -if(Clang_FormatGit_EXECUTABLE) - set(Clang_FormatGit_FOUND TRUE) - - mark_as_advanced(Clang_FormatGit_EXECUTABLE) - - add_executable(Clang::FormatGit IMPORTED) - - set_target_properties( - Clang::FormatGit - PROPERTIES IMPORTED_LOCATION "${Clang_FormatGit_EXECUTABLE}") -endif() - -include(FindPackageHandleStandardArgs) - -find_package_handle_standard_args(Clang HANDLE_COMPONENTS) diff --git a/contrib/run-clang-format/git b/contrib/run-clang-format/git deleted file mode 160000 index 39081c9c4..000000000 --- a/contrib/run-clang-format/git +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 39081c9c42768ab5e8321127a7494ad1647c6a2f diff --git a/doc/cmake_readme.md b/doc/cmake_readme.md index f56ab2b46..244151eb1 100644 --- a/doc/cmake_readme.md +++ b/doc/cmake_readme.md @@ -522,8 +522,6 @@ The following validation targets are supported: - `lint-yaml`: Runs YAML linting checks - `check-cmake`: Runs CMake formatting checks - `check-yaml`: Runs YAML formatting checks - - `check-c`: Runs C formatting checks - `format`: Formats all code - `format-cmake`: Formats all CMake code - `format-yaml`: Formats all YAML code - - `format-c`: Formats all C code -- GitLab From a86c59b96dccf618428f57d00448874d3ba7db4d Mon Sep 17 00:00:00 2001 From: Wei-Chia Su Date: Wed, 7 Aug 2024 10:17:50 +0100 Subject: [PATCH 2/4] cmake: Terminate yamllint support This commit removes cmake targets for yamllint by dropping unused cmake and configuration file. Also, It removes redundant python package and script. Signed-off-by: Wei-Chia Su --- .yamllint.yaml | 8 --- CMakeLists.txt | 50 +-------------- cmake/FindYamllint.cmake | 51 ---------------- doc/cmake_readme.md | 4 -- requirements.txt | 3 - tools/yaml-format.py | 129 --------------------------------------- 6 files changed, 1 insertion(+), 244 deletions(-) delete mode 100644 .yamllint.yaml delete mode 100644 cmake/FindYamllint.cmake delete mode 100755 tools/yaml-format.py diff --git a/.yamllint.yaml b/.yamllint.yaml deleted file mode 100644 index de83db0a2..000000000 --- a/.yamllint.yaml +++ /dev/null @@ -1,8 +0,0 @@ -extends: default -rules: - document-start: disable - line-length: - allow-non-breakable-words: true - allow-non-breakable-inline-mappings: true - indentation: - indent-sequences: false diff --git a/CMakeLists.txt b/CMakeLists.txt index 4d2a41328..7d845e330 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -603,9 +603,6 @@ list(APPEND glob_excludes "^${SCP_SOURCE_DIR}/contrib/cmsis/git") list(APPEND cmake_globs "CMakeLists.txt") list(APPEND cmake_globs "*.cmake") -list(APPEND yaml_globs "*.yml") -list(APPEND yaml_globs "*.yaml") - # # Glob sources and place them in their respective variables. Globs for source # types can be with specified with a `${type}_globs` variable, which should be a @@ -614,7 +611,7 @@ list(APPEND yaml_globs "*.yaml") # cmake-lint: disable=C0103 -foreach(type cmake yaml) +foreach(type cmake) unset(sources) foreach(include IN LISTS glob_includes) @@ -668,51 +665,6 @@ if(TARGET CMakeFormat::Lint) list(APPEND lint_targets "lint-cmake") endif() -# -# Configure yaml-format. -# - -find_package(Python3 COMPONENTS Interpreter) - -if(Python3_Interpreter_FOUND) - add_custom_target( - format-yaml - COMMAND Python3::Interpreter "${SCP_SOURCE_DIR}/tools/yaml-format.py" - format -i "${yaml_sources}" - WORKING_DIRECTORY "${SCP_SOURCE_DIR}" - COMMENT "Formatting YAML sources..." - COMMAND_EXPAND_LISTS) - - list(APPEND format_targets "format-yaml") - - add_custom_target( - check-yaml - COMMAND Python3::Interpreter "${SCP_SOURCE_DIR}/tools/yaml-format.py" - diff --check "${yaml_sources}" - WORKING_DIRECTORY "${SCP_SOURCE_DIR}" - COMMENT "Checking YAML sources..." - COMMAND_EXPAND_LISTS) - - list(APPEND check_targets "check-yaml") -endif() - -# -# Configure yamllint. -# - -find_package(Yamllint) - -if(Yamllint_FOUND) - add_custom_target( - lint-yaml - COMMAND Yamllint -s "${yaml_sources}" - WORKING_DIRECTORY "${SCP_SOURCE_DIR}" - COMMENT "Linting YAML sources..." - COMMAND_EXPAND_LISTS) - - list(APPEND lint_targets "lint-yaml") -endif() - # # Create the final check targets. These targets consist of miscellaneous quality # assurance tasks like linting and formatting, and act as dummy targets that diff --git a/cmake/FindYamllint.cmake b/cmake/FindYamllint.cmake deleted file mode 100644 index 3c2392a38..000000000 --- a/cmake/FindYamllint.cmake +++ /dev/null @@ -1,51 +0,0 @@ -# -# Arm SCP/MCP Software -# Copyright (c) 2021, Arm Limited and Contributors. All rights reserved. -# -# SPDX-License-Identifier: BSD-3-Clause -# - -include_guard() - -#[=======================================================================[.rst: ------------- -FindYamllint - -Find yamllint, the YAML linter. - -Use this module by invoking ``find_package`` with the form:: - - find_package(Yamllint [REQUIRED]) - -Imported Targets -^^^^^^^^^^^^^^^^ - -``Yamllint`` - ``yamllint``. Target defined if ``yamllint`` is found. - -Result Variables -^^^^^^^^^^^^^^^^ - -``Yamllint_FOUND`` - If false, yamllint was not found. - -``Yamllint_EXECUTABLE`` - The full path to ``yamllint``. -#]=======================================================================] - -# cmake-lint: disable=C0103 - -find_program(Yamllint_EXECUTABLE yamllint) - -if(Yamllint_EXECUTABLE) - mark_as_advanced(Yamllint_EXECUTABLE) - - add_executable(Yamllint IMPORTED) - - set_target_properties(Yamllint - PROPERTIES IMPORTED_LOCATION "${Yamllint_EXECUTABLE}") -endif() - -include(FindPackageHandleStandardArgs) - -find_package_handle_standard_args(Yamllint DEFAULT_MSG Yamllint_EXECUTABLE) diff --git a/doc/cmake_readme.md b/doc/cmake_readme.md index 244151eb1..f498c1a31 100644 --- a/doc/cmake_readme.md +++ b/doc/cmake_readme.md @@ -385,7 +385,6 @@ you will need the following (adjust for your desired platform): - [cmake-format 0.6.13](https://pypi.org/project/cmake-format/0.6.13/#files) - [CMake 3.18.3](https://github.com/Kitware/CMake/releases/tag/v3.18.3) - [Python 3.8.2](https://www.python.org/downloads/release/python-382) -- [yamllint 1.25.0](https://pypi.org/project/yamllint/1.25.0/#files) ## Basics {#basics} @@ -519,9 +518,6 @@ The following validation targets are supported: - `lint`: Runs all linting checks - `lint-cmake`: Runs CMake linting checks - `lint-python`: Runs Python linting checks - - `lint-yaml`: Runs YAML linting checks - `check-cmake`: Runs CMake formatting checks - - `check-yaml`: Runs YAML formatting checks - `format`: Formats all code - `format-cmake`: Formats all CMake code - - `format-yaml`: Formats all YAML code diff --git a/requirements.txt b/requirements.txt index cbeeef960..65fcf5c7b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,8 +1,5 @@ clang-format==14.0.0 cmake-format==0.6.13 -colorama==0.4.3 pycodestyle==2.6.0 -ruamel.yaml==0.16.12 -yamllint==1.25.0 pyyaml==5.4.1 lcov-cobertura==2.0.2 diff --git a/tools/yaml-format.py b/tools/yaml-format.py deleted file mode 100755 index 98a497acf..000000000 --- a/tools/yaml-format.py +++ /dev/null @@ -1,129 +0,0 @@ -#!/usr/bin/env python3 - -# -# Arm SCP/MCP Software -# Copyright (c) 2021, Arm Limited and Contributors. All rights reserved. -# -# SPDX-License-Identifier: BSD-3-Clause -# - -import argparse -import colorama -import difflib -import os -import sys - -import ruamel.yaml as yaml - -from io import StringIO - - -def colorize(diff): - for line in diff: - if line.startswith("@"): - yield colorama.Fore.BLUE + line + colorama.Fore.RESET - elif line.startswith("+"): - yield colorama.Fore.GREEN + line + colorama.Fore.RESET - elif line.startswith("-"): - yield colorama.Fore.RED + line + colorama.Fore.RESET - else: - yield line - - -def main(): - # fmt: off - - parser = argparse.ArgumentParser() - - parser_common = argparse.ArgumentParser(add_help=False) - parser_common.add_argument("sources", - help="list of source files to format or check", - nargs="*") - parser_common.add_argument("-q", "--quiet", action="store_true", - help="suppress output intended for humans") - - subparsers = parser.add_subparsers(dest="command") - - subparser_diff = subparsers.add_parser("diff", - help=("generate a unified diff " + - "of required changes"), - parents=[parser_common]) - - subparser_diff.add_argument("--check", - action="store_true", - help=("exit with an error status code " + - "if changes are required")) - - subparser_diff.add_argument("-o", "--output", - help="file to write the unified diff file to") - - subparser_format = subparsers.add_parser("format", - help=("automatically format " + - "source files"), - parents=[parser_common]) - - subparser_format_output_group = \ - subparser_format.add_mutually_exclusive_group() - subparser_format_output_group.add_argument("-i", "--in-place", - action="store_true", - help="format the file in-place") - subparser_format_output_group.add_argument("-o", "--output", - help=("file to write " + - "output data to")) - - # fmt: on - - args = parser.parse_args() - - colorama.init - - result = os.EX_OK - - for source in args.sources: - source = os.path.relpath(source) - - with open(source, "r") as istream: - idata = istream.read() - - data = yaml.round_trip_load(idata) - - with StringIO() as odata: - yaml.round_trip_dump(data, odata) - - odata = odata.getvalue() - - if ("in_place" in args) and args.in_place: - ostream = open(source, "w") - elif ("output" in args) and args.output: - ostream = open(args.output, "w") - else: - ostream = sys.stdout - - if args.command == "diff": - if idata != odata: - if not args.quiet: - print("Style violations found: " + source, file=sys.stderr) - - if args.check: - result = os.EX_DATAERR - - diff = difflib.unified_diff( - idata.splitlines(keepends=True), - odata.splitlines(keepends=True), - fromfile=source + " (original)", - tofile=source + " (reformatted)", - ) - - for line in colorize(diff): - ostream.write(line) - elif args.command == "format": - ostream.write(odata) - - if ostream != sys.stdout: - ostream.close() - - return result - - -if __name__ == "__main__": - sys.exit(main()) -- GitLab From 3c4305d916c2c6dd650c030e8740fc1c723cda19 Mon Sep 17 00:00:00 2001 From: Wei-Chia Su Date: Wed, 7 Aug 2024 10:47:01 +0100 Subject: [PATCH 3/4] cmake: Terminate Include What You Use (IWYU) support This commit removes the dependencies of IWYU including pragmas in source file. Signed-off-by: Wei-Chia Su --- CMakeLists.txt | 34 ---------------------------------- framework/include/assert.h | 4 ++-- 2 files changed, 2 insertions(+), 36 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7d845e330..6ee12bea5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -254,40 +254,6 @@ if(ENABLE_CLANG_TIDY) endif() -# -# Set up Include What You Use ("IWYU") if it's available and enabled. -# -if(ENABLE_IWYU) - - find_program(CMAKE_C_INCLUDE_WHAT_YOU_USE NAMES iwyu include-what-you-use) - - if(NOT CMAKE_C_INCLUDE_WHAT_YOU_USE) - unset(CMAKE_C_INCLUDE_WHAT_YOU_USE CACHE) - endif() - - if(CMAKE_C_INCLUDE_WHAT_YOU_USE) - # cmake-format: off - - if(CMAKE_C_COMPILER_TARGET) - list(APPEND CMAKE_C_INCLUDE_WHAT_YOU_USE "--target=${CMAKE_C_COMPILER_TARGET}") - endif() - - foreach(dir IN LISTS CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES) - list(APPEND CMAKE_C_INCLUDE_WHAT_YOU_USE "-isystem") - list(APPEND CMAKE_C_INCLUDE_WHAT_YOU_USE "${dir}") - endforeach() - - if(CMAKE_C_COMPILER_ID STREQUAL "ARMClang") - list(APPEND CMAKE_C_INCLUDE_WHAT_YOU_USE "-D__ARM_PROMISE=__builtin_assume") - list(APPEND CMAKE_C_INCLUDE_WHAT_YOU_USE "-D__ARMCC_VERSION=600000") - list(APPEND CMAKE_C_INCLUDE_WHAT_YOU_USE "-D__ESCAPE__(x)=(x)") - endif() - - # cmake-format: on - endif() - -endif() - # # Try to locate Arm Compiler's 'fromelf' tool. # diff --git a/framework/include/assert.h b/framework/include/assert.h index fcef2d930..80820ce70 100644 --- a/framework/include/assert.h +++ b/framework/include/assert.h @@ -1,6 +1,6 @@ /* * Arm SCP/MCP Software - * Copyright (c) 2020-2021, Arm Limited and Contributors. All rights reserved. + * Copyright (c) 2020-2024, Arm Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -8,7 +8,7 @@ #ifndef ASSERT_H #define ASSERT_H -#include_next /* IWYU pragma: keep */ +#include_next #ifndef static_assert # define static_assert _Static_assert -- GitLab From 98379844eb154240398dcc1a1885e0575dfce44f Mon Sep 17 00:00:00 2001 From: Wei-Chia Su Date: Wed, 7 Aug 2024 10:49:15 +0100 Subject: [PATCH 4/4] cmake: Terminate Clang-Tidy support This commit removes the dependencies of clang-tidy including configuration file located in the parent directory. Signed-off-by: Wei-Chia Su --- .clang-tidy | 2 -- CMakeLists.txt | 51 -------------------------------------------------- 2 files changed, 53 deletions(-) delete mode 100644 .clang-tidy diff --git a/.clang-tidy b/.clang-tidy deleted file mode 100644 index fbb4e34d0..000000000 --- a/.clang-tidy +++ /dev/null @@ -1,2 +0,0 @@ -Checks: "bugprone-*,cert-*,clang-analyzer-*,-clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling,clang-diagnostic-*,-clang-diagnostic-deprecated-declarations,misc-*,-misc-unused-parameters,portability-*,readability-braces-around-statements" -FormatStyle: "file" diff --git a/CMakeLists.txt b/CMakeLists.txt index 6ee12bea5..ebbb76120 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -203,57 +203,6 @@ if(NOT DISABLE_CPPCHECK) endif() endif() -# -# Set up Clang-Tidy if it's available and enabled. -# -if(ENABLE_CLANG_TIDY) - - find_program( - CMAKE_C_CLANG_TIDY - NAMES "clang-tidy" - "clang-tidy-3.6" - "clang-tidy-3.7" - "clang-tidy-3.8" - "clang-tidy-3.9" - "clang-tidy-4.0" - "clang-tidy-5.0" - "clang-tidy-6.0" - "clang-tidy-7" - "clang-tidy-8" - "clang-tidy-9" - "clang-tidy-10" - "clang-tidy-11") - - if(NOT CMAKE_C_CLANG_TIDY) - unset(CMAKE_C_CLANG_TIDY CACHE) - endif() - - if(CMAKE_C_CLANG_TIDY) - # cmake-format: off - - if(CMAKE_C_COMPILER_TARGET) - list(APPEND CMAKE_C_CLANG_TIDY "--extra-arg=--target=${CMAKE_C_COMPILER_TARGET}") - endif() - - foreach(dir IN LISTS CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES) - list(APPEND CMAKE_C_CLANG_TIDY "--extra-arg=-isystem") - list(APPEND CMAKE_C_CLANG_TIDY "--extra-arg=${dir}") - list(APPEND CMAKE_C_CLANG_TIDY "--extra-arg=-fms-extensions") - endforeach() - - if(CMAKE_C_COMPILER_ID STREQUAL "ARMClang") - list(APPEND CMAKE_C_CLANG_TIDY "--extra-arg=-D__ARM_PROMISE=__builtin_assume") - list(APPEND CMAKE_C_CLANG_TIDY "--extra-arg=-D__ARMCC_VERSION=600000") - list(APPEND CMAKE_C_CLANG_TIDY "--extra-arg=-D__ESCAPE__(x)=(x)") - endif() - - list(APPEND CMAKE_C_CLANG_TIDY "--quiet") - - # cmake-format: on - endif() - -endif() - # # Try to locate Arm Compiler's 'fromelf' tool. # -- GitLab