summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-07-06 21:45:48 +0300
committerAndrei Karas <akaras@inbox.ru>2015-07-06 21:45:48 +0300
commitc493b9059f0289585c7aa7c2be71ec7fd5aa9116 (patch)
tree8bc634befc834a9ec05d82fe999f9496b74c8a32 /src
parent6c8f17cf94da000f2328979dc0772e154bec5996 (diff)
downloadparanucker-c493b9059f0289585c7aa7c2be71ec7fd5aa9116.tar.gz
paranucker-c493b9059f0289585c7aa7c2be71ec7fd5aa9116.tar.bz2
paranucker-c493b9059f0289585c7aa7c2be71ec7fd5aa9116.tar.xz
paranucker-c493b9059f0289585c7aa7c2be71ec7fd5aa9116.zip
Allow parse function type attributes in FUNCTION_TYPE always.
Diffstat (limited to 'src')
-rw-r--r--src/parsers/type/function_type.cpp3
-rw-r--r--src/parsers/type/method_type.cpp1
2 files changed, 2 insertions, 2 deletions
diff --git a/src/parsers/type/function_type.cpp b/src/parsers/type/function_type.cpp
index 2b0bdb4..a379da6 100644
--- a/src/parsers/type/function_type.cpp
+++ b/src/parsers/type/function_type.cpp
@@ -39,11 +39,12 @@ void parseFunctionTypeNode(FunctionTypeNode *node)
"function return type",
node->parseChilds));
+ fillTypeAttributes(node);
+
if (!node->parseChilds)
return;
fillTypeName(node);
- fillTypeAttributes(node);
node->argTypes = static_cast<TreeListNode*>(createParseNode(
node,
TYPE_ARG_TYPES(node->gccNode),
diff --git a/src/parsers/type/method_type.cpp b/src/parsers/type/method_type.cpp
index 5fb61ce..1ed7f47 100644
--- a/src/parsers/type/method_type.cpp
+++ b/src/parsers/type/method_type.cpp
@@ -46,7 +46,6 @@ void parseMethodTypeNode(MethodTypeNode *node)
fillTypeName(node);
-
node->methodBaseType = static_cast<TypeNode*>(createParseNode(
node,
TYPE_METHOD_BASETYPE(node->gccNode),