Files
Sourcetrail/src/test/helper/TestStorage.cpp
T
2015-09-17 15:07:46 +02:00

20 lines
386 B
C++

#include "TestStorage.h"
#include "utility/text/TextAccess.h"
#include "data/parser/cxx/CxxParser.h"
#include "TestFileManager.h"
TestStorage::TestStorage()
: Storage("data/test.sqlite")
{
}
void TestStorage::parseCxxCode(std::string code)
{
clear();
TestFileManager fm;
CxxParser parser(this, &fm);
parser.parseFile(TextAccess::createFromString(code), Parser::Arguments());
}