forked from qt-creator/qt-creator
C++: Recognize C++11 nullptr
Change-Id: I5b7ac8f9b2137ffe9439ada4ec4aeb9cee8e249d Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
This commit is contained in:
@@ -273,6 +273,13 @@ bool ResolveExpression::visit(SizeofExpressionAST *)
|
||||
return false;
|
||||
}
|
||||
|
||||
bool ResolveExpression::visit(PointerLiteralAST *)
|
||||
{
|
||||
FullySpecifiedType ty(control()->integerType(IntegerType::Int)); // Handling as Int.
|
||||
addResult(ty, _scope);
|
||||
return false;
|
||||
}
|
||||
|
||||
bool ResolveExpression::visit(NumericLiteralAST *ast)
|
||||
{
|
||||
const Token &tk = tokenAt(ast->literal_token);
|
||||
|
||||
Reference in New Issue
Block a user