diff options
author | Leandro Melo <leandro.melo@nokia.com> | 2011-11-18 13:33:26 +0100 |
---|---|---|
committer | Leandro Melo <leandro.melo@nokia.com> | 2011-11-18 13:50:19 +0100 |
commit | 057fad645bc16e8423579db6608120d59de40340 (patch) | |
tree | b1d12874536678636b396a654c07c1613aabb518 /src/libs/3rdparty/cplusplus/AST.cpp | |
parent | 64d579dc3a72ac22acf66bdcc882850b1a5de773 (diff) |
C++: Recognize C++11 nullptr
Change-Id: I5b7ac8f9b2137ffe9439ada4ec4aeb9cee8e249d
Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
Diffstat (limited to 'src/libs/3rdparty/cplusplus/AST.cpp')
-rw-r--r-- | src/libs/3rdparty/cplusplus/AST.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/libs/3rdparty/cplusplus/AST.cpp b/src/libs/3rdparty/cplusplus/AST.cpp index c9fdea27c7..342ed297af 100644 --- a/src/libs/3rdparty/cplusplus/AST.cpp +++ b/src/libs/3rdparty/cplusplus/AST.cpp @@ -4219,3 +4219,19 @@ unsigned AttributeSpecifierAST::lastToken() const return 1; } +/** \generated */ +unsigned PointerLiteralAST::firstToken() const +{ + if (literal_token) + return literal_token; + return 0; +} + +/** \generated */ +unsigned PointerLiteralAST::lastToken() const +{ + if (literal_token) + return literal_token + 1; + return 1; +} + |