Skip to content

Upgrade LLVM to v15 #791

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 5, 2025
Merged

Upgrade LLVM to v15 #791

merged 2 commits into from
May 5, 2025

Conversation

mcserep
Copy link
Collaborator

@mcserep mcserep commented May 5, 2025

Since we dropped Ubuntu 20.04 support recently, this PR cherry-picks LLVM15 upgrade from #637, as Ubuntu 22.04 has native support for it.

@mcserep mcserep added this to the Upcoming Release milestone May 5, 2025
@mcserep mcserep added Kind: Refactor 🔃 Plugin: C++ Issues related to the parsing and presentation of C++ projects. Target: Developer environment Developer environment issues consist of CodeCompass or 3rd-party build tooling, configuration or CI. labels May 5, 2025
@mcserep mcserep self-assigned this May 5, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR upgrades the LLVM version to v15 to support Ubuntu 22.04, cherry-picking changes from an earlier branch. Key changes include updating the file inclusion callback signature in both header and source files to use clang::Optionalclang::FileEntryRef, revising dependency documentation for LLVM v15, and updating CI configuration to reflect the new LLVM/Clang directories.

Reviewed Changes

Copilot reviewed 5 out of 11 changed files in this pull request and generated no comments.

Show a summary per file
File Description
plugins/cpp/parser/src/ppincludecallback.h Updated the callback parameter from a raw pointer to an Optional reference.
plugins/cpp/parser/src/ppincludecallback.cpp Adjusted the parameter type accordingly in the inclusion directive.
plugins/cpp/parser/src/clangastvisitor.h Minor formatting changes without affecting logic.
doc/deps.md Updated dependency references from LLVM/Clang v11 to v15.
.github/workflows/ci.yml Updated CI LLVM/Clang directory paths to point to LLVM/Clang v15.
Files not reviewed (6)
  • .github/scripts/ubuntu-20.04/setup_build.sh: Language not supported
  • .github/scripts/ubuntu-22.04/setup_build.sh: Language not supported
  • .gitlab/build-deps.sh: Language not supported
  • docker/dev/Dockerfile: Language not supported
  • docker/runtime/Dockerfile: Language not supported
  • docker/web/Dockerfile: Language not supported
Comments suppressed due to low confidence (2)

plugins/cpp/parser/src/ppincludecallback.h:41

  • Ensure that all call sites and implementation logic using the File parameter are updated to handle clang::Optionalclang::FileEntryRef appropriately, replacing assumptions of a guaranteed File pointer.
clang::Optional<clang::FileEntryRef> File,

plugins/cpp/parser/src/ppincludecallback.cpp:64

  • Verify that the inclusion directive handling in this function correctly accommodates the Optional type in place of a raw pointer, ensuring proper null/empty checks are implemented if needed.
clang::Optional<clang::FileEntryRef>,

# Conflicts:
#	.github/scripts/ubuntu-20.04/setup_build.sh
#	doc/deps.md
@mcserep
Copy link
Collaborator Author

mcserep commented May 5, 2025

Resolved merge conflicts with #792.

@mcserep mcserep merged commit 916d987 into Ericsson:master May 5, 2025
8 checks passed
@mcserep mcserep mentioned this pull request May 5, 2025
@mcserep mcserep deleted the llvm-15 branch May 5, 2025 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Kind: Refactor 🔃 Plugin: C++ Issues related to the parsing and presentation of C++ projects. Target: Developer environment Developer environment issues consist of CodeCompass or 3rd-party build tooling, configuration or CI.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant