Hi,
I am new to lldb. I was trying to build it in Ubunto 12.04(g++ 4.6.3) and got
some build error due to the use of delegating constructors in
FormatCache::Entry class. Delegating constructor are not supported in g++
version less then 4.7[1]. So I tried to solve it by initializing the required
members in initializer list in every constructor. A common init function seemed
a bit overkill to me here.
My patch is attached. Please review it.
Thanks,
Abid
[1] http://gcc.gnu.org/projects/cxx0x.html
Index: source/DataFormatters/FormatCache.cpp
===================================================================
--- source/DataFormatters/FormatCache.cpp (revision 174370)
+++ source/DataFormatters/FormatCache.cpp (working copy)
@@ -26,17 +26,21 @@
m_synthetic_sp()
{}
-FormatCache::Entry::Entry (lldb::TypeSummaryImplSP summary_sp) : FormatCache::Entry()
+FormatCache::Entry::Entry (lldb::TypeSummaryImplSP summary_sp) :
+m_synthetic_cached(false),
+m_synthetic_sp()
{
SetSummary (summary_sp);
}
-FormatCache::Entry::Entry (lldb::SyntheticChildrenSP synthetic_sp) : FormatCache::Entry()
+FormatCache::Entry::Entry (lldb::SyntheticChildrenSP synthetic_sp) :
+m_summary_cached(false),
+m_summary_sp()
{
SetSynthetic (synthetic_sp);
}
-FormatCache::Entry::Entry (lldb::TypeSummaryImplSP summary_sp,lldb::SyntheticChildrenSP synthetic_sp) : FormatCache::Entry()
+FormatCache::Entry::Entry (lldb::TypeSummaryImplSP summary_sp,lldb::SyntheticChildrenSP synthetic_sp)
{
SetSummary (summary_sp);
SetSynthetic (synthetic_sp);
_______________________________________________
lldb-dev mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev