llvm / llvm/llvm-project

clang-cl: no support for `/scanDependencies` flag

Open
#211,159 2 comments 1 reaction 0 assignees View on GitHub
clang-cl
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

When using the `ClangCl` toolchain inside of Visual Studio, the `ScanSourceForModuleDependencies` element may not be used because MSBuild implements this with the `/scanDependencies` flag. Since `clang` currently uses an external scanner (`clang-scan-deps`) this is not implementable today. Once the scanning is available through the `clang` frontend, this should also be wired up so that `clang-cl` inside of Visual Studio can support C++ modules.

See this CMake issue: https://gitlab.kitware.com/cmake/cmake/-/work_items/27977

Cc: @Bigcheese @naveen-seth @nickelpro

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the ClangCl toolchain integration in Visual Studio/MSBuild and the existing clang-scan-deps path. Confirm how ScanSourceForModuleDependencies maps to /scanDependencies and what frontend support is required; done means clang-cl supports that flag and C++ modules can be used through Visual Studio.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
build-system, compilers
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.