mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Store current primary in diagnostic engine, pass it down via handleDiagnostic. Unformmated.
This commit is contained in:
@@ -233,7 +233,8 @@ struct SynParserDiagConsumer: public DiagnosticConsumer {
|
||||
DiagnosticKind Kind,
|
||||
StringRef FormatString,
|
||||
ArrayRef<DiagnosticArgument> FormatArgs,
|
||||
const DiagnosticInfo &Info) override {
|
||||
const DiagnosticInfo &Info,
|
||||
StringRef currentPrimaryInput) override {
|
||||
assert(Kind != DiagnosticKind::Remark && "Shouldn't see this in parser.");
|
||||
// The buffer where all char* will point into.
|
||||
llvm::SmallString<256> Buffer;
|
||||
|
||||
Reference in New Issue
Block a user