From 04094c274e13e7416b7544a9183324c74714813b Mon Sep 17 00:00:00 2001 From: Leandro Melo Date: Thu, 28 Jun 2012 12:09:15 +0200 Subject: C++: Enable C++11 keywords in macro uses Just in case compilers id defining such things. Change-Id: Ica6af8462e90bfab2bfa883ec12d5e648d6d33db Reviewed-by: Daniel Teske --- src/plugins/cpptools/cpphighlightingsupportinternal.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/plugins/cpptools/cpphighlightingsupportinternal.cpp') diff --git a/src/plugins/cpptools/cpphighlightingsupportinternal.cpp b/src/plugins/cpptools/cpphighlightingsupportinternal.cpp index 4b62a06999..76c292a0d2 100644 --- a/src/plugins/cpptools/cpphighlightingsupportinternal.cpp +++ b/src/plugins/cpptools/cpphighlightingsupportinternal.cpp @@ -69,6 +69,7 @@ QFuture CppHighlightingSupportInternal::highlightin SimpleLexer tokenize; tokenize.setQtMocRunEnabled(false); tokenize.setObjCEnabled(false); + tokenize.setCxx0xEnabled(true); const QList tokens = tokenize(name); if (tokens.length() && (tokens.at(0).isKeyword() || tokens.at(0).isObjCAtKeyword())) continue; -- cgit v1.2.1