RedPanda-CPP/RedPandaIDE/common.h

27 lines
420 B
C
Raw Normal View History

2021-04-24 15:57:45 +08:00
#ifndef COMMON_H
#define COMMON_H
#include <QString>
#include <memory>
#include <QMetaType>
enum class CompileIssueType {
Other,
Warning,
Info,
Note,
Error,
};
struct CompileIssue {
QString filename;
int line;
int column;
QString description;
CompileIssueType type;
};
typedef std::shared_ptr<CompileIssue> PCompileIssue;
Q_DECLARE_METATYPE(PCompileIssue);
#endif // COMMON_H