summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-05-12 13:10:21 (GMT)
committerBrad King <brad.king@kitware.com>2015-05-12 13:10:21 (GMT)
commit9a56b84fc1f6def5b26860e4f18353bab6cc88ab (patch)
tree43a6992e52ca9b1629e446697dc75ea1726bb271
parent72eefa762e6d13eb3678484a03dfa125fcd7bcae (diff)
downloadCastXML-9a56b84fc1f6def5b26860e4f18353bab6cc88ab.zip
CastXML-9a56b84fc1f6def5b26860e4f18353bab6cc88ab.tar.gz
CastXML-9a56b84fc1f6def5b26860e4f18353bab6cc88ab.tar.bz2
Output: Drop 'const' from clang::ASTContext reference
This will allow use of non-const methods on it.
-rw-r--r--src/Output.cxx4
-rw-r--r--src/Output.h2
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);