llvm/clang/unittests/Tooling/DiagnosticsYamlTest.cpp

//===- unittests/Tooling/DiagnosticsYamlTest.cpp - Serialization tests ---===//
//
// 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
//
//===----------------------------------------------------------------------===//
//
// Tests for serialization of Diagnostics.
//
//===----------------------------------------------------------------------===//

#include "clang/Tooling/DiagnosticsYaml.h"
#include "clang/Tooling/Core/Diagnostic.h"
#include "clang/Tooling/ReplacementsYaml.h"
#include "llvm/ADT/SmallVector.h"
#include "gtest/gtest.h"

usingnamespacellvm;
usingnamespaceclang::tooling;
Diagnostic;

static DiagnosticMessage
makeMessage(const std::string &Message, int FileOffset,
            const std::string &FilePath, const StringMap<Replacements> &Fix,
            const SmallVector<FileByteRange, 1> &Ranges) {}

static FileByteRange makeByteRange(int FileOffset,
                                   int Length,
                                   const std::string &FilePath) {}

static Diagnostic makeDiagnostic(StringRef DiagnosticName,
                                 const std::string &Message, int FileOffset,
                                 const std::string &FilePath,
                                 const StringMap<Replacements> &Fix,
                                 const SmallVector<FileByteRange, 1> &Ranges,
                                 Diagnostic::Level DiagnosticLevel) {}

static const char *YAMLContent =;

TEST(DiagnosticsYamlTest, serializesDiagnostics) {}

TEST(DiagnosticsYamlTest, deserializesDiagnostics) {}