From 088182c959785e5b0985a77a34059262d2740fc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Darius=20Nea=C8=9Bu?= Date: Thu, 9 Jul 2026 22:45:35 +0300 Subject: [PATCH] Add SPDX license identifiers for file.license_id Issue: bemanproject/beman-tidy#251 Add Apache-2.0 WITH LLVM-exception headers to config, workflow, and cmake files so beman-tidy default mode passes file.license_id. Co-authored-by: Cursor --- .github/workflows/pre-commit.yml | 1 + .markdownlint.yaml | 1 + .pre-commit-config.yaml | 1 + cmake/beman.bounds_test-config.cmake | 1 + cmake/bootstrap_vcpkg.cmake | 1 + cmake/check_plat.cmake | 1 + include/beman/bounds_test/plat/CMakeLists.txt | 1 + 7 files changed, 7 insertions(+) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index f3c4332..26ca8cc 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception name: Lint Check (pre-commit) on: diff --git a/.markdownlint.yaml b/.markdownlint.yaml index 81f5fcd..24f7550 100644 --- a/.markdownlint.yaml +++ b/.markdownlint.yaml @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception # MD033/no-inline-html : Inline HTML : https://github.com/DavidAnson/markdownlint/blob/v0.35.0/doc/md033.md # Disable inline html linter is needed for
MD033: false diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d19c5e6..6f7601e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception # See https://pre-commit.com for more information # See https://pre-commit.com/hooks.html for more hooks repos: diff --git a/cmake/beman.bounds_test-config.cmake b/cmake/beman.bounds_test-config.cmake index 47222e3..72ff433 100644 --- a/cmake/beman.bounds_test-config.cmake +++ b/cmake/beman.bounds_test-config.cmake @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception include(${CMAKE_CURRENT_LIST_DIR}/beman.bounds_test-targets.cmake) include(${CMAKE_CURRENT_LIST_DIR}/check_plat.cmake) diff --git a/cmake/bootstrap_vcpkg.cmake b/cmake/bootstrap_vcpkg.cmake index fd61f30..2593993 100644 --- a/cmake/bootstrap_vcpkg.cmake +++ b/cmake/bootstrap_vcpkg.cmake @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception option(BEMAN_BOUNDS_TEST_BOOTSTRAP_VCPKG "Bootstrap vcpkg if no other toolchain exists" OFF) if(BEMAN_BOUNDS_TEST_BOOTSTRAP_VCPKG AND NOT DEFINED CMAKE_TOOLCHAIN_FILE) diff --git a/cmake/check_plat.cmake b/cmake/check_plat.cmake index 3656c43..f650def 100644 --- a/cmake/check_plat.cmake +++ b/cmake/check_plat.cmake @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception function(check_plat HAS_GNU_VAR HAS_MSVC_VAR) include(CheckSourceCompiles) set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY) diff --git a/include/beman/bounds_test/plat/CMakeLists.txt b/include/beman/bounds_test/plat/CMakeLists.txt index 44311a2..5bf4ec0 100644 --- a/include/beman/bounds_test/plat/CMakeLists.txt +++ b/include/beman/bounds_test/plat/CMakeLists.txt @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception check_plat(HAS_GNU_OVERFLOW HAS_MSVC_OVERFLOW) if(HAS_GNU_OVERFLOW)