Issue #197 - enhancement: Support "enum struct" Scoped enumerations.
This commit is contained in:
parent
df4c14caa4
commit
f79da84224
|
@ -2657,7 +2657,9 @@ void CppParser::handleEnum(bool isTypedef)
|
||||||
int startLine = mTokenizer[mIndex]->line;
|
int startLine = mTokenizer[mIndex]->line;
|
||||||
mIndex++; //skip 'enum'
|
mIndex++; //skip 'enum'
|
||||||
|
|
||||||
if (mIndex < tokenCount && mTokenizer[mIndex]->text == "class") {
|
if (mIndex < tokenCount &&
|
||||||
|
(mTokenizer[mIndex]->text == "class"
|
||||||
|
|| mTokenizer[mIndex]->text == "struct")) {
|
||||||
//enum class
|
//enum class
|
||||||
isEnumClass = true;
|
isEnumClass = true;
|
||||||
mIndex++; //skip class
|
mIndex++; //skip class
|
||||||
|
@ -4535,8 +4537,8 @@ void CppParser::internalParse(const QString &fileName)
|
||||||
handleInheritances();
|
handleInheritances();
|
||||||
// qDebug()<<"parse"<<timer.elapsed();
|
// qDebug()<<"parse"<<timer.elapsed();
|
||||||
#ifdef QT_DEBUG
|
#ifdef QT_DEBUG
|
||||||
mStatementList.dumpAll(QString("r:\\all-stats-%1.txt").arg(extractFileName(fileName)));
|
// mStatementList.dumpAll(QString("r:\\all-stats-%1.txt").arg(extractFileName(fileName)));
|
||||||
mStatementList.dump(QString("r:\\stats-%1.txt").arg(extractFileName(fileName)));
|
// mStatementList.dump(QString("r:\\stats-%1.txt").arg(extractFileName(fileName)));
|
||||||
#endif
|
#endif
|
||||||
//reduce memory usage
|
//reduce memory usage
|
||||||
internalClear();
|
internalClear();
|
||||||
|
|
Loading…
Reference in New Issue