Envision
A visual programming IDE for object-oriented languages
|
Public Types | |
enum class | Reason : int { OTHER , NOT_SUPPORTED , NO_PARENT , INSERT_PROBLEM } |
Public Member Functions | |
CppImportLogger () | |
~CppImportLogger () | |
void | outputStatistics () |
void | overloadedOpNotSupported (const clang::OverloadedOperatorKind &kind, const bool binary) |
void | primitiveTypeNotSupported (const QString &typeName) |
void | setSourceManager (const clang::SourceManager *sourceManager) |
void | storageClassNotSupported (const clang::StorageClass &sc) |
void | typeNotSupported (const clang::TypeLoc typeLoc, const clang::SourceLocation &location) |
void | unaryOpNotSupported (const clang::UnaryOperatorKind &kind) |
void | writeError (const QString &inWhichClass, const clang::Decl *decl, const Reason &r, const QString &reason={}) |
void | writeError (const QString &inWhichClass, const clang::SourceLocation &loc, const Reason &r, const QString &reason={}) |
void | writeError (const QString &inWhichClass, const clang::Stmt *stmt, const Reason &r, const QString &reason={}) |
void | writeWarning (const QString &inWhichClass, const clang::Decl *decl, const Reason &r, const QString &reason={}) |
void | writeWarning (const QString &inWhichClass, const clang::Stmt *stmt, const Reason &r, const QString &reason={}) |
Private Types | |
enum | OUTTYPE { ERROR , WARNING } |
Private Member Functions | |
const QString | getReasonString (const Reason &r) |
void | initStreams () |
void | printStatistic (const char *message, const QMap< QString, int > &map) |
void | writeOut (const QString &inWhichClass, const clang::Decl *decl, OUTTYPE outType, const Reason &r, const QString &reason={}) |
void | writeOut (const QString &inWhichClass, const clang::Stmt *stmt, OUTTYPE outType, const Reason &r, const QString &reason={}) |
Private Attributes | |
QMap< QString, int > | countMap_ |
QTextStream * | errStream_ {} |
QMap< QString, int > | overloadMap_ |
const QString | reasons_ [4] = {"_O", "_NS", "_NP", "_IP"} |
const clang::SourceManager * | sourceManger_ {} |
QMap< QString, int > | storageMap_ |
QMap< QString, int > | typeCountMap_ |
QMap< QString, int > | unaryOpMap_ |
QTextStream * | warnStream_ {} |
bool | writeToFile_ {false} |
|
private |
|
strong |
CppImport::CppImportLogger::CppImportLogger | ( | ) |
CppImport::CppImportLogger::~CppImportLogger | ( | ) |
|
private |
|
private |
void CppImport::CppImportLogger::outputStatistics | ( | ) |
void CppImport::CppImportLogger::overloadedOpNotSupported | ( | const clang::OverloadedOperatorKind & | kind, |
const bool | binary | ||
) |
void CppImport::CppImportLogger::primitiveTypeNotSupported | ( | const QString & | typeName | ) |
|
private |
void CppImport::CppImportLogger::setSourceManager | ( | const clang::SourceManager * | sourceManager | ) |
void CppImport::CppImportLogger::storageClassNotSupported | ( | const clang::StorageClass & | sc | ) |
void CppImport::CppImportLogger::typeNotSupported | ( | const clang::TypeLoc | typeLoc, |
const clang::SourceLocation & | location | ||
) |
void CppImport::CppImportLogger::unaryOpNotSupported | ( | const clang::UnaryOperatorKind & | kind | ) |
|
inline |
void CppImport::CppImportLogger::writeError | ( | const QString & | inWhichClass, |
const clang::SourceLocation & | loc, | ||
const Reason & | r, | ||
const QString & | reason = {} |
||
) |
|
inline |
|
private |
|
private |
|
inline |
|
inline |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |