forked from qt-creator/qt-creator
C++: Split designator AST
Change-Id: I9bfed2023624c818c0f35f24476693cffeaf2bbc Reviewed-by: Wang Hoi <wanghoi@126.com> Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
This commit is contained in:
committed by
Nikolai Kosjar
parent
cb079c5319
commit
ea4b4bff40
12
src/libs/3rdparty/cplusplus/ASTMatch0.cpp
vendored
12
src/libs/3rdparty/cplusplus/ASTMatch0.cpp
vendored
@@ -1192,9 +1192,17 @@ bool BracedInitializerAST::match0(AST *pattern, ASTMatcher *matcher)
|
||||
return false;
|
||||
}
|
||||
|
||||
bool DesignatorAST::match0(AST *pattern, ASTMatcher *matcher)
|
||||
bool DotDesignatorAST::match0(AST *pattern, ASTMatcher *matcher)
|
||||
{
|
||||
if (DesignatorAST *_other = pattern->asDesignator())
|
||||
if (DotDesignatorAST *_other = pattern->asDotDesignator())
|
||||
return matcher->match(this, _other);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
bool BracketDesignatorAST::match0(AST *pattern, ASTMatcher *matcher)
|
||||
{
|
||||
if (BracketDesignatorAST *_other = pattern->asBracketDesignator())
|
||||
return matcher->match(this, _other);
|
||||
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user