blob: 0d935fae660ffbbb1b40d9413c6b505c21c9f5d4 [file] [log] [blame]
Douglas Gregord93256e2010-01-28 06:00:51 +00001/*===-- CIndexDiagnostic.h - Diagnostics C Interface ------------*- C++ -*-===*\
Douglas Gregor5352ac02010-01-28 00:27:43 +00002|* *|
3|* The LLVM Compiler Infrastructure *|
4|* *|
5|* This file is distributed under the University of Illinois Open Source *|
6|* License. See LICENSE.TXT for details. *|
7|* *|
8|*===----------------------------------------------------------------------===*|
9|* *|
10|* Implements the diagnostic functions of the Clang C interface. *|
11|* *|
12\*===----------------------------------------------------------------------===*/
13#ifndef LLVM_CLANG_CINDEX_DIAGNOSTIC_H
14#define LLVM_CLANG_CINDEX_DIAGNOSTIC_H
15
Douglas Gregor5352ac02010-01-28 00:27:43 +000016namespace clang {
17
Daniel Dunbar35b84402010-01-30 23:31:40 +000018class LangOptions;
Benjamin Kramerb846deb2010-04-12 19:45:50 +000019class StoredDiagnostic;
Daniel Dunbar49146122010-01-30 23:31:49 +000020
Douglas Gregora88084b2010-02-18 18:08:43 +000021/// \brief The storage behind a CXDiagnostic
22struct CXStoredDiagnostic {
23 const StoredDiagnostic &Diag;
24 const LangOptions &LangOpts;
25
26 CXStoredDiagnostic(const StoredDiagnostic &Diag,
27 const LangOptions &LangOpts)
28 : Diag(Diag), LangOpts(LangOpts) { }
Douglas Gregor5352ac02010-01-28 00:27:43 +000029};
Douglas Gregord93256e2010-01-28 06:00:51 +000030
Douglas Gregor5352ac02010-01-28 00:27:43 +000031} // end namespace clang
32
33#endif // LLVM_CLANG_CINDEX_DIAGNOSTIC_H