Add non-const getParser().
This commit is contained in:
parent
e01719a2bb
commit
430a9c7473
@ -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.
|
||||
///
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user