forked from qt-creator/qt-creator
C++: Enable C++11 keywords in macro uses
Just in case compilers id defining such things. Change-Id: Ica6af8462e90bfab2bfa883ec12d5e648d6d33db Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
@@ -69,6 +69,7 @@ QFuture<CppHighlightingSupport::Use> CppHighlightingSupportInternal::highlightin
|
|||||||
SimpleLexer tokenize;
|
SimpleLexer tokenize;
|
||||||
tokenize.setQtMocRunEnabled(false);
|
tokenize.setQtMocRunEnabled(false);
|
||||||
tokenize.setObjCEnabled(false);
|
tokenize.setObjCEnabled(false);
|
||||||
|
tokenize.setCxx0xEnabled(true);
|
||||||
const QList<Token> tokens = tokenize(name);
|
const QList<Token> tokens = tokenize(name);
|
||||||
if (tokens.length() && (tokens.at(0).isKeyword() || tokens.at(0).isObjCAtKeyword()))
|
if (tokens.length() && (tokens.at(0).isKeyword() || tokens.at(0).isObjCAtKeyword()))
|
||||||
continue;
|
continue;
|
||||||
|
Reference in New Issue
Block a user