summaryrefslogtreecommitdiff
path: root/src/shared/cplusplus/ASTMatcher.cpp
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@nokia.com>2010-03-22 18:23:17 +0100
committerErik Verbruggen <erik.verbruggen@nokia.com>2010-03-23 14:15:45 +0100
commit7a3fbf120a48b02e23057ea681f9c7df9af3dd93 (patch)
treea68958ceb8c5ab4329812259d351aba5fb37d9f4 /src/shared/cplusplus/ASTMatcher.cpp
parent58f5b02dc023a9a97f508de64d7bb724588ead57 (diff)
downloadqt-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.cpp5
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))