llvm/clang/lib/ASTMatchers/Dynamic/Diagnostics.cpp

//===--- Diagnostics.cpp - Helper class for error diagnostics ---*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#include "clang/ASTMatchers/Dynamic/Diagnostics.h"

namespace clang {
namespace ast_matchers {
namespace dynamic {
Diagnostics::ArgStream Diagnostics::pushContextFrame(ContextType Type,
                                                     SourceRange Range) {}

Diagnostics::Context::Context(ConstructMatcherEnum, Diagnostics *Error,
                              StringRef MatcherName,
                              SourceRange MatcherRange)
    :{}

Diagnostics::Context::Context(MatcherArgEnum, Diagnostics *Error,
                              StringRef MatcherName,
                              SourceRange MatcherRange,
                              unsigned ArgNumber)
    :{}

Diagnostics::Context::~Context() {}

Diagnostics::OverloadContext::OverloadContext(Diagnostics *Error)
    :{}

Diagnostics::OverloadContext::~OverloadContext() {}

void Diagnostics::OverloadContext::revertErrors() {}

Diagnostics::ArgStream &Diagnostics::ArgStream::operator<<(const Twine &Arg) {}

Diagnostics::ArgStream Diagnostics::addError(SourceRange Range,
                                             ErrorType Error) {}

static StringRef contextTypeToFormatString(Diagnostics::ContextType Type) {}

static StringRef errorTypeToFormatString(Diagnostics::ErrorType Type) {}

static void formatErrorString(StringRef FormatString,
                              ArrayRef<std::string> Args,
                              llvm::raw_ostream &OS) {}

static void maybeAddLineAndColumn(SourceRange Range,
                                  llvm::raw_ostream &OS) {}

static void printContextFrameToStream(const Diagnostics::ContextFrame &Frame,
                                      llvm::raw_ostream &OS) {}

static void
printMessageToStream(const Diagnostics::ErrorContent::Message &Message,
                     const Twine Prefix, llvm::raw_ostream &OS) {}

static void printErrorContentToStream(const Diagnostics::ErrorContent &Content,
                                      llvm::raw_ostream &OS) {}

void Diagnostics::printToStream(llvm::raw_ostream &OS) const {}

std::string Diagnostics::toString() const {}

void Diagnostics::printToStreamFull(llvm::raw_ostream &OS) const {}

std::string Diagnostics::toStringFull() const {}

}  // namespace dynamic
}  // namespace ast_matchers
}  // namespace clang