Add non-const getParser().

This commit is contained in:
Axel Naumann 2015-02-18 10:26:14 +01:00 committed by sftnight
parent e01719a2bb
commit 430a9c7473
2 changed files with 5 additions and 0 deletions

View File

@ -298,6 +298,7 @@ namespace cling {
const LookupHelper& getLookupHelper() const { return *m_LookupHelper; }
const clang::Parser& getParser() const;
clang::Parser& getParser();
///\brief Returns the next available valid free source location.
///

View File

@ -144,6 +144,10 @@ namespace cling {
return *m_IncrParser->getParser();
}
Parser& Interpreter::getParser() {
return *m_IncrParser->getParser();
}
clang::SourceLocation Interpreter::getNextAvailableLoc() const {
return m_IncrParser->getLastMemoryBufferEndLoc().getLocWithOffset(1);
}