//===- DelayedDiagnostic.cpp - Delayed declarator diagnostics -------------===// // // 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 the DelayedDiagnostic class implementation, which // is used to record diagnostics that are being conditionally produced // during declarator parsing. // // This file also defines AccessedEntity. // //===----------------------------------------------------------------------===// #include "clang/Sema/DelayedDiagnostic.h" #include <cstring> usingnamespaceclang; usingnamespacesema; DelayedDiagnostic DelayedDiagnostic::makeAvailability(AvailabilityResult AR, ArrayRef<SourceLocation> Locs, const NamedDecl *ReferringDecl, const NamedDecl *OffendingDecl, const ObjCInterfaceDecl *UnknownObjCClass, const ObjCPropertyDecl *ObjCProperty, StringRef Msg, bool ObjCPropertyAccess) { … } void DelayedDiagnostic::Destroy() { … }