C++: Recognize C++11 constexpr

Change-Id: Iac8ba58404284f0d90fd5a3640eb9ccd7e98058d
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
This commit is contained in:
Leandro Melo
2011-11-18 11:40:23 +01:00
parent fbd47e25ee
commit 9f73c5848b
3 changed files with 25 additions and 1 deletions

View File

@@ -3413,6 +3413,10 @@ bool Parser::lookAtStorageClassSpecifier() const
case T_MUTABLE:
case T_TYPEDEF:
return true;
case T_CONSTEXPR:
if (_cxx0xEnabled)
return true;
// fall-through
default:
return false;
}