WsParser_VS/libParse/libparse.cpp

22 lines
775 B
C++
Raw Normal View History

2024-03-17 07:58:28 +00:00
#include "libparse.h"
using namespace lib_parse;
CheckException::CheckException(const QString& msg) : msg_store(msg) {}
QString CheckException::message() const { return msg_store; }
Analyzer::Analyzer(const QList<std::shared_ptr<const CheckProvider> >& providers) : check_providers(providers) {}
2024-06-15 01:18:33 +00:00
#include <QTime>
#include <QDebug>
2024-03-17 07:58:28 +00:00
std::shared_ptr<const ast_gen::ElementAccess> Analyzer::validCheckWith(std::shared_ptr<const ast_gen::ElementAccess> root) const {
2024-06-15 01:18:33 +00:00
for (auto& v : check_providers){
QTime time_stamp = QTime::currentTime();
2024-03-17 07:58:28 +00:00
v->validCheck(root);
2024-06-15 01:18:33 +00:00
auto current_stamp = QTime::currentTime();
qDebug() << QString(u8"У<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>%2 <20><><EFBFBD><EFBFBD>ʱ<EFBFBD>䣺%1 ms<6D><73>").arg(time_stamp.msecsTo(current_stamp)).arg(v->name());
}
2024-03-17 07:58:28 +00:00
return root;
}