diff --git a/MODULE.bazel b/MODULE.bazel index 87db349..2926633 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -2,7 +2,7 @@ # # SPDX-License-Identifier: BSD-3-Clause -module(name = "asl", version = "0.5.1") +module(name = "asl", version = "0.5.2") bazel_dep(name = "platforms", version = "0.0.11") bazel_dep(name = "rules_license", version = "1.0.0") diff --git a/asl.todo.txt b/asl.todo.txt index 7719e57..cc68cdb 100644 --- a/asl.todo.txt +++ b/asl.todo.txt @@ -1,2 +1,3 @@ constexpr cast from void* +cpp26 https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2023/p2738r1.pdf +expose fix_line_endings diff --git a/tools/BUILD.bazel b/tools/fix_line_endings/BUILD.bazel similarity index 57% rename from tools/BUILD.bazel rename to tools/fix_line_endings/BUILD.bazel index 1b4d8fb..5ff508e 100644 --- a/tools/BUILD.bazel +++ b/tools/fix_line_endings/BUILD.bazel @@ -3,7 +3,6 @@ # SPDX-License-Identifier: BSD-3-Clause load("@rules_python//python:py_binary.bzl", "py_binary") -load("@hedron_compile_commands//:refresh_compile_commands.bzl", "refresh_compile_commands") package( default_applicable_licenses = ["//:license"], @@ -14,10 +13,5 @@ py_binary( srcs = [ "fix_line_endings.py", ], - visibility = ["//:__subpackages__"], -) - -refresh_compile_commands( - name = "refresh_clangd", - targets = "//...", + visibility = ["//visibility:public"], ) diff --git a/tools/fix_line_endings.py b/tools/fix_line_endings/fix_line_endings.py similarity index 97% rename from tools/fix_line_endings.py rename to tools/fix_line_endings/fix_line_endings.py index f072546..eebc430 100644 --- a/tools/fix_line_endings.py +++ b/tools/fix_line_endings/fix_line_endings.py @@ -44,6 +44,7 @@ def fix_file(file): fp.writelines(lines) if __name__ == "__main__": + print(os.getenv("BUILD_WORKSPACE_DIRECTORY")) os.chdir(os.getenv("BUILD_WORKSPACE_DIRECTORY")) files = get_git_files() diff --git a/tools/refresh_clangd.bat b/tools/refresh_clangd.bat deleted file mode 100644 index 0e50f4d..0000000 --- a/tools/refresh_clangd.bat +++ /dev/null @@ -1 +0,0 @@ -bazel run //tools:refresh_clangd diff --git a/tools/refresh_clangd.sh b/tools/refresh_clangd.sh deleted file mode 100644 index 0e50f4d..0000000 --- a/tools/refresh_clangd.sh +++ /dev/null @@ -1 +0,0 @@ -bazel run //tools:refresh_clangd diff --git a/tools/refresh_clangd/BUILD.bazel b/tools/refresh_clangd/BUILD.bazel new file mode 100644 index 0000000..32cf90d --- /dev/null +++ b/tools/refresh_clangd/BUILD.bazel @@ -0,0 +1,10 @@ +# Copyright 2025 Steven Le Rouzic +# +# SPDX-License-Identifier: BSD-3-Clause + +load("@hedron_compile_commands//:refresh_compile_commands.bzl", "refresh_compile_commands") + +refresh_compile_commands( + name = "refresh_clangd", + targets = "//...", +)