llvm/clang/unittests/Basic/DiagnosticTest.cpp

//===- unittests/Basic/DiagnosticTest.cpp -- Diagnostic engine 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
//
//===----------------------------------------------------------------------===//

#include "clang/Basic/Diagnostic.h"
#include "clang/Basic/DiagnosticError.h"
#include "clang/Basic/DiagnosticIDs.h"
#include "clang/Basic/DiagnosticLex.h"
#include "gtest/gtest.h"
#include <optional>

usingnamespacellvm;
usingnamespaceclang;

void clang::DiagnosticsTestHelper(DiagnosticsEngine &diag) {}

namespace {

// Check that DiagnosticErrorTrap works with SuppressAllDiagnostics.
TEST(DiagnosticTest, suppressAndTrap) {}

// Check that FatalsAsError works as intended
TEST(DiagnosticTest, fatalsAsError) {}

TEST(DiagnosticTest, tooManyErrorsIsAlwaysFatal) {}

// Check that soft RESET works as intended
TEST(DiagnosticTest, softReset) {}

TEST(DiagnosticTest, diagnosticError) {}

TEST(DiagnosticTest, storedDiagEmptyWarning) {}
}