//===- unittests/Frontend/TextDiagnosticTest.cpp - ------------------------===// // // 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/Frontend/TextDiagnostic.h" #include "clang/Basic/FileManager.h" #include "clang/Basic/LangOptions.h" #include "clang/Basic/SourceManager.h" #include "llvm/Support/SmallVectorMemoryBuffer.h" #include "gtest/gtest.h" usingnamespacellvm; usingnamespaceclang; namespace { /// Prints a diagnostic with the given DiagnosticOptions and the given /// SourceLocation and returns the printed diagnostic text. static std::string PrintDiag(const DiagnosticOptions &Opts, FullSourceLoc Loc) { … } TEST(TextDiagnostic, ShowLine) { … } } // anonymous namespace