From 9a56b84fc1f6def5b26860e4f18353bab6cc88ab Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 12 May 2015 09:10:21 -0400 Subject: Output: Drop 'const' from clang::ASTContext reference This will allow use of non-const methods on it. --- src/Output.cxx | 4 ++-- src/Output.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Output.cxx b/src/Output.cxx index 4b267ed..e19c4a7 100644 --- a/src/Output.cxx +++ b/src/Output.cxx @@ -473,7 +473,7 @@ private: public: ASTVisitor(clang::CompilerInstance& ci, - clang::ASTContext const& ctx, + clang::ASTContext& ctx, llvm::raw_ostream& os, Options const& opts): ASTVisitorBase(ci, ctx, os), @@ -1818,7 +1818,7 @@ void ASTVisitor::HandleTranslationUnit(clang::TranslationUnitDecl const* tu) //---------------------------------------------------------------------------- void outputXML(clang::CompilerInstance& ci, - clang::ASTContext const& ctx, + clang::ASTContext& ctx, llvm::raw_ostream& os, Options const& opts) { diff --git a/src/Output.h b/src/Output.h index 5314916..68f5e47 100644 --- a/src/Output.h +++ b/src/Output.h @@ -31,7 +31,7 @@ struct Options; /// outputXML - Print a gccxml-compatible AST dump. void outputXML(clang::CompilerInstance& ci, - clang::ASTContext const& ctx, + clang::ASTContext& ctx, llvm::raw_ostream& os, Options const& opts); -- cgit v0.12