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

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 <>
parent 5cc37491
......@@ -47,9 +47,17 @@
(parentNode)->addChild(parseState->popFromStack()); \
} 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)
PARSE_RULE_AND_ADD_RESULT_AS_CHILD_TO_NODE(nodeType, parseState(), this)
#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 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