mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Format
This commit is contained in:
@@ -229,11 +229,12 @@ struct SynParserDiagConsumer: public DiagnosticConsumer {
|
||||
const unsigned BufferID;
|
||||
SynParserDiagConsumer(SynParser &Parser, unsigned BufferID):
|
||||
Parser(Parser), BufferID(BufferID) {}
|
||||
void handleDiagnostic(SourceManager &SM, SourceLoc Loc, DiagnosticKind Kind,
|
||||
StringRef FormatString,
|
||||
ArrayRef<DiagnosticArgument> FormatArgs,
|
||||
const DiagnosticInfo &Info,
|
||||
const SourceLoc bufferIndirectlyCausingDiagnostic) override {
|
||||
void
|
||||
handleDiagnostic(SourceManager &SM, SourceLoc Loc, DiagnosticKind Kind,
|
||||
StringRef FormatString,
|
||||
ArrayRef<DiagnosticArgument> FormatArgs,
|
||||
const DiagnosticInfo &Info,
|
||||
const SourceLoc bufferIndirectlyCausingDiagnostic) 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