summaryrefslogtreecommitdiff
path: root/src/parsers/decl
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-07 16:37:02 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-07 16:37:02 +0300
commitbee3f1689aec015e3d1403f094bc4a6b109e1856 (patch)
tree640d2c0f8694634390c4c550addf2b23d6131b30 /src/parsers/decl
parentb36bffe16cb613f3267513ff107a58b16562015f (diff)
downloadparanucker-bee3f1689aec015e3d1403f094bc4a6b109e1856.tar.gz
paranucker-bee3f1689aec015e3d1403f094bc4a6b109e1856.tar.bz2
paranucker-bee3f1689aec015e3d1403f094bc4a6b109e1856.tar.xz
paranucker-bee3f1689aec015e3d1403f094bc4a6b109e1856.zip
Fix FUNCTION_DECL attributes dumping order.
Diffstat (limited to 'src/parsers/decl')
-rw-r--r--src/parsers/decl/function_decl.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/parsers/decl/function_decl.cpp b/src/parsers/decl/function_decl.cpp
index 0cf4b19..29047f5 100644
--- a/src/parsers/decl/function_decl.cpp
+++ b/src/parsers/decl/function_decl.cpp
@@ -35,6 +35,9 @@ void parseFunctionDeclNode(FunctionDeclNode *node)
fillLocation(node);
fillDeclLabel(node);
fillDeclAutoGenerated(node);
+
+ Log::log(node);
+
setPrintField(node, DECL_FUNCTION_VERSIONED, hasTargets);
setPrintField(node, DECL_VIRTUAL_P, isVirtual);
setPrintField(node, DECL_FINAL_P, isFinal);
@@ -43,8 +46,6 @@ void parseFunctionDeclNode(FunctionDeclNode *node)
setPrintField(node, DECL_EXTERNAL, isExternal);
setPrintField(node, TREE_PUBLIC, isPublic);
- Log::log(node);
-
fillDeclAttributes(node);
node->functionType = static_cast<FunctionTypeNode*>(createParseNode(
node,