Skip to content

Add clang-tools v22 support#115

Draft
Copilot wants to merge 2 commits intomasterfrom
copilot/support-clang-tools-v22
Draft

Add clang-tools v22 support#115
Copilot wants to merge 2 commits intomasterfrom
copilot/support-clang-tools-v22

Conversation

Copy link

Copilot AI commented Mar 3, 2026

clang-22 is not shipped in any standard Ubuntu apt repository — it's only available via apt.llvm.org (llvm-toolchain-noble-22, etc.). This adds v22 support using the llvm.sh installation path already established in Dockerfile.all.

Changes

  • Dockerfile: Added USE_LLVM_REPO=false build arg. When true, runs llvm.sh $CLANG_VERSION to register the apt.llvm.org repo before the standard apt-get install clang-format-$N clang-tidy-$N. No impact on existing targets.

  • docker-bake.hcl: Added "22" to the default group and a new target using ubuntu:noble + USE_LLVM_REPO="true":

    args = {
      BASE_IMAGE    = "ubuntu:noble"
      CLANG_VERSION = "22"
      USE_LLVM_REPO = "true"
    }
  • Dockerfile.all: Added 22 to both the llvm.sh-installed CLANG_VERSIONS list and the integrity-check CLANG_VERSIONS list.

  • README.md: Added 22 to the supported tags list.

Original prompt

This section details on the original issue you should resolve

<issue_title>Support clang-tools v22</issue_title>
<issue_description>https://github.com/llvm/llvm-project/releases/tag/llvmorg-22.1.0

Originally posted by @shenxianpeng in #105</issue_description>

Comments on the Issue (you are @copilot in this section)


🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Co-authored-by: shenxianpeng <3353385+shenxianpeng@users.noreply.github.com>
@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 3, 2026

Copilot AI changed the title [WIP] Support clang-tools v22 Add clang-tools v22 support Mar 3, 2026
@github-actions github-actions bot added the documentation Improvements or additions to documentation label Mar 3, 2026
@github-advanced-security
Copy link

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support clang-tools v22

2 participants