Commit 53022f01 authored by hjk's avatar hjk
Browse files

Debugger: Add dumper for std::once_flag



Change-Id: I8b5166fc0e7d54676b84a1b0d45c6a2793c2a37c
Reviewed-by: Christian Stenger's avatarChristian Stenger <christian.stenger@qt.io>
parent 91a82fe8
......@@ -1003,6 +1003,12 @@ def qdump__wstring(d, value):
qdump__std__wstring(d, value)
def qdump__std__once_flag(d, value):
d.putItem(value[0])
d.putBetterType(value.type)
d.putPlainChildren(value)
def qdump____gnu_cxx__hash_set(d, value):
ht = value["_M_ht"]
size = ht["_M_num_elements"].integer()
......
......@@ -4386,6 +4386,13 @@ void tst_Dumpers::dumper_data()
+ Check("p3.data", "\"ABC\"", "std::string");
QTest::newRow("StdOnce")
<< Data("#include <mutex>\n",
"std::once_flag x; unused(&x);\n")
+ Cxx11Profile()
+ Check("x", "0", "std::once_flag");
QTest::newRow("StdSharedPtr")
<< Data("#include <memory>\n"
"#include <string>\n" + fooData,
......
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