From: Zhongxing Xu Date: Thu, 23 Jul 2009 07:37:14 +0000 (+0000) Subject: Add getter methods. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b85bca2676b433ae555db09de4dd2823ff13b856;p=clang Add getter methods. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76871 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Frontend/ASTUnit.h b/include/clang/Frontend/ASTUnit.h index 68c06f5dce..5eb7f494d7 100644 --- a/include/clang/Frontend/ASTUnit.h +++ b/include/clang/Frontend/ASTUnit.h @@ -56,6 +56,9 @@ public: const ASTContext &getASTContext() const { return *Ctx.get(); } ASTContext &getASTContext() { return *Ctx.get(); } + const Diagnostic &getDiagnostic() const { return *Diags.get(); } + Diagnostic &getDiagnostic() { return *Diags.get(); } + /// \brief Create a ASTUnit from a PCH file. /// /// \param Filename PCH filename