forked from qt-creator/qt-creator
C++: Add support for C++11 range-based 'for' loops
Change-Id: I7eef048a7952a79f031ae3d0abba68e3c5ffbfb8 Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
This commit is contained in:
committed by
Roberto Raggi
parent
7f943caedb
commit
da2aa0df72
8
src/libs/3rdparty/cplusplus/ASTMatch0.cpp
vendored
8
src/libs/3rdparty/cplusplus/ASTMatch0.cpp
vendored
@@ -456,6 +456,14 @@ bool ForeachStatementAST::match0(AST *pattern, ASTMatcher *matcher)
|
||||
return false;
|
||||
}
|
||||
|
||||
bool RangeBasedForStatementAST::match0(AST *pattern, ASTMatcher *matcher)
|
||||
{
|
||||
if (RangeBasedForStatementAST *_other = pattern->asRangeBasedForStatement())
|
||||
return matcher->match(this, _other);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool ForStatementAST::match0(AST *pattern, ASTMatcher *matcher)
|
||||
{
|
||||
if (ForStatementAST *_other = pattern->asForStatement())
|
||||
|
||||
Reference in New Issue
Block a user