diff options
author | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-07-23 07:37:14 +0000 |
---|---|---|
committer | Zhongxing Xu <xuzhongxing@gmail.com> | 2009-07-23 07:37:14 +0000 |
commit | b85bca2676b433ae555db09de4dd2823ff13b856 (patch) | |
tree | 1ae6746258214b2bd318ae71bb2bd85812b9e531 | |
parent | 25c155abc154a23ff59e8def196441a2fbf20270 (diff) |
Add getter methods.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76871 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/Frontend/ASTUnit.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 |