//==- DependentDiagnostic.h - Dependently-generated 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 // //===----------------------------------------------------------------------===// // // This file defines interfaces for diagnostics which may or may // fire based on how a template is instantiated. // // At the moment, the only consumer of this interface is access // control. // //===----------------------------------------------------------------------===// #ifndef LLVM_CLANG_AST_DEPENDENTDIAGNOSTIC_H #define LLVM_CLANG_AST_DEPENDENTDIAGNOSTIC_H #include "clang/AST/DeclBase.h" #include "clang/AST/DeclContextInternals.h" #include "clang/AST/Type.h" #include "clang/Basic/PartialDiagnostic.h" #include "clang/Basic/SourceLocation.h" #include "clang/Basic/Specifiers.h" #include <cassert> #include <iterator> namespace clang { class ASTContext; class CXXRecordDecl; class NamedDecl; /// A dependently-generated diagnostic. class DependentDiagnostic { … }; /// An iterator over the dependent diagnostics in a dependent context. class DeclContext::ddiag_iterator { … }; inline DeclContext::ddiag_range DeclContext::ddiags() const { … } } // namespace clang #endif // LLVM_CLANG_AST_DEPENDENTDIAGNOSTIC_H