diff options
author | Erik Verbruggen <erik.verbruggen@nokia.com> | 2010-03-22 18:23:17 +0100 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@nokia.com> | 2010-03-23 14:15:45 +0100 |
commit | 7a3fbf120a48b02e23057ea681f9c7df9af3dd93 (patch) | |
tree | a68958ceb8c5ab4329812259d351aba5fb37d9f4 /src/shared/cplusplus/ASTMatcher.cpp | |
parent | 58f5b02dc023a9a97f508de64d7bb724588ead57 (diff) | |
download | qt-creator-7a3fbf120a48b02e23057ea681f9c7df9af3dd93.tar.gz |
Added attributes to the elaborate-type-specifier AST node.
Diffstat (limited to 'src/shared/cplusplus/ASTMatcher.cpp')
-rw-r--r-- | src/shared/cplusplus/ASTMatcher.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/shared/cplusplus/ASTMatcher.cpp b/src/shared/cplusplus/ASTMatcher.cpp index 3fe3a8d410..42cbadcbdb 100644 --- a/src/shared/cplusplus/ASTMatcher.cpp +++ b/src/shared/cplusplus/ASTMatcher.cpp @@ -874,6 +874,11 @@ bool ASTMatcher::match(ElaboratedTypeSpecifierAST *node, ElaboratedTypeSpecifier pattern->classkey_token = node->classkey_token; + if (! pattern->attribute_list) + pattern->attribute_list = node->attribute_list; + else if (! AST::match(node->attribute_list, pattern->attribute_list, this)) + return false; + if (! pattern->name) pattern->name = node->name; else if (! AST::match(node->name, pattern->name, this)) |