[cfe-commits] r76871 - /cfe/trunk/include/clang/Frontend/ASTUnit.h
Zhongxing Xu
xuzhongxing at gmail.com
Thu Jul 23 00:37:15 PDT 2009
Author: zhongxingxu
Date: Thu Jul 23 02:37:14 2009
New Revision: 76871
URL: http://llvm.org/viewvc/llvm-project?rev=76871&view=rev
Log:
Add getter methods.
Modified:
cfe/trunk/include/clang/Frontend/ASTUnit.h
Modified: cfe/trunk/include/clang/Frontend/ASTUnit.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Frontend/ASTUnit.h?rev=76871&r1=76870&r2=76871&view=diff
==============================================================================
--- cfe/trunk/include/clang/Frontend/ASTUnit.h (original)
+++ cfe/trunk/include/clang/Frontend/ASTUnit.h Thu Jul 23 02:37:14 2009
@@ -56,6 +56,9 @@
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
More information about the cfe-commits
mailing list