swiftlang/swift

Separate `-dump-clang-diagnostics` into two features.

Open

#87 757 ouverte le 9 mars 2026

Voir sur GitHub
 (4 commentaires) (0 réactions) (1 assigné)Swift (10 719 forks)batch import
clang importergood first issue

Métriques du dépôt

Stars
 (69 989 stars)
Métriques de merge PR
 (Merge moyen 7j 6h) (556 PRs mergées en 30 j)

Description

Motivation

-dump-clang-diagnostics currently does two somewhat orthogonal things:

  1. emits ad-hoc "remarks" on things ClangImporter is doing to stderr
  2. 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

Guide contributeur