Add callstack to model report

This commit is contained in:
Leonardo Alt
2019-03-20 10:35:29 +01:00
parent b021f015f9
commit 3296fb3764
4 changed files with 41 additions and 6 deletions
+6
View File
@@ -28,6 +28,7 @@
#include <memory>
#include <libdevcore/Exceptions.h>
#include <libdevcore/Assertions.h>
#include <libdevcore/CommonData.h>
#include <liblangutil/SourceLocation.h>
namespace langutil
@@ -108,6 +109,11 @@ public:
infos.emplace_back(_errMsg, _sourceLocation);
return *this;
}
SecondarySourceLocation& append(SecondarySourceLocation&& _other)
{
infos += std::move(_other.infos);
return *this;
}
/// Limits the number of secondary source locations to 32 and appends a notice to the
/// error message.