Commit c7703600 authored by Tobias Hunger's avatar Tobias Hunger Committed by hjk

Debugger: Quieten warning on testing this for non-0

Clang used to complain about this several dozen times when building
Qt Creator.

Change-Id: I4dadd40de1133fe8558d6b50730f68b40e07de55
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent 5cc37491
...@@ -47,9 +47,17 @@ ...@@ -47,9 +47,17 @@
(parentNode)->addChild(parseState->popFromStack()); \ (parentNode)->addChild(parseState->popFromStack()); \
} while (0) } while (0)
#define PARSE_RULE_AND_ADD_RESULT_AS_CHILD_TO_THIS(NodeType, parseState) \
do { \
ParseTreeNode::parseRule<NodeType>(parseState); \
DEMANGLER_ASSERT(parseState->stackElementCount() > 0); \
DEMANGLER_ASSERT(parseState->stackTop().dynamicCast<NodeType>()); \
addChild(parseState->popFromStack()); \
} while (0)
#define PARSE_RULE_AND_ADD_RESULT_AS_CHILD(nodeType) \ #define PARSE_RULE_AND_ADD_RESULT_AS_CHILD(nodeType) \
PARSE_RULE_AND_ADD_RESULT_AS_CHILD_TO_NODE(nodeType, parseState(), this) PARSE_RULE_AND_ADD_RESULT_AS_CHILD_TO_THIS(nodeType, parseState())
#define CHILD_AT(obj, index) obj->childAt(index, QLatin1String(Q_FUNC_INFO), QLatin1String(__FILE__), __LINE__) #define CHILD_AT(obj, index) obj->childAt(index, QLatin1String(Q_FUNC_INFO), QLatin1String(__FILE__), __LINE__)
#define MY_CHILD_AT(index) CHILD_AT(this, index) #define MY_CHILD_AT(index) CHILD_AT(this, index)
#define CHILD_TO_BYTEARRAY(index) MY_CHILD_AT(index)->toByteArray() #define CHILD_TO_BYTEARRAY(index) MY_CHILD_AT(index)->toByteArray()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment