swiftlang/swift
Ver no GitHubSeparate `-dump-clang-diagnostics` into two features.
Open
#87.757 aberto em 9 de mar. de 2026
clang importergood first issue
Métricas do repositório
- Stars
- (69.989 stars)
- Métricas de merge de PR
- (Mesclagem média 7d 6h) (556 fundiu PRs em 30d)
Description
Motivation
-dump-clang-diagnostics currently does two somewhat orthogonal things:
- emits ad-hoc "remarks" on things ClangImporter is doing to stderr
- emits clang diagnostics through both clang's and swift's diagnostic engine
Proposed solution
We should extract 1) into actual remarks, and enable them with -Rclang-importer (or whatever option https://github.com/swiftlang/swift/pull/87726 ends up adding).
Alternatives considered
-dump-clang-diagnostics may be left with just 2), or also enabling -Rclang-importer by default to keep the same behavior. I personally lean towards the former to avoid tangling orthogonal concepts, but I don't have a strong opinion.
Additional information
No response