mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
actually render emitted diagnostics. This is both a useful generalization (we expect to have a number of other DiagnosticConsumers down the road, as Clang does) and is also important now to avoid a layering violation when adjusting the source location at the end of a SourceRange to the end of the token. Swift SVN r850
23 lines
807 B
C++
23 lines
807 B
C++
//===- DiagnosticConsumer.cpp - Diagnostic Consumer Impl --------*- C++ -*-===//
|
|
//
|
|
// This source file is part of the Swift.org open source project
|
|
//
|
|
// Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
|
|
// Licensed under Apache License v2.0 with Runtime Library Exception
|
|
//
|
|
// See http://swift.org/LICENSE.txt for license information
|
|
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This file implements the DiagnosticConsumer class.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "swift/Basic/DiagnosticConsumer.h"
|
|
#include "llvm/ADT/StringRef.h"
|
|
|
|
using namespace swift;
|
|
|
|
DiagnosticConsumer::~DiagnosticConsumer() { }
|