diff options
author | Enrico Granata <egranata@apple.com> | 2012-03-12 19:47:17 +0000 |
---|---|---|
committer | Enrico Granata <egranata@apple.com> | 2012-03-12 19:47:17 +0000 |
commit | c7f873064bdd2059d0a8fe4d0066b0a920dcc094 (patch) | |
tree | e7fef529a4f5855d0f5f54a81f54957619085786 /lldb/scripts/Python/finish-swig-Python-LLDB.sh | |
parent | 701a6b473dd0b91e30a212ddd86f14307fa17bbc (diff) | |
download | bcm5719-llvm-c7f873064bdd2059d0a8fe4d0066b0a920dcc094.tar.gz bcm5719-llvm-c7f873064bdd2059d0a8fe4d0066b0a920dcc094.zip |
Added formatters for libc++ (http://libcxx.llvm.org):
std::string has a summary provider
std::vector std::list and std::map have both a summary and a synthetic children provider
Given the usage of a custom namespace (std::__1::classname) for the implementation of libc++, we keep both libstdcpp and libc++ formatters enabled at the same time since that raises no conflicts and enabled for seamless transition between the two
The formatters for libc++ reside in a libcxx category, and are loaded from libcxx.py (to be found in examples/synthetic)
The formatters-stl test cases have been divided to be separate for libcxx and libstdcpp. This separation is necessary because
(a) we need different compiler flags for libc++ than for libstdcpp
(b) libc++ inlines a lot more than libstdcpp and some code changes were required to accommodate this difference
llvm-svn: 152570
Diffstat (limited to 'lldb/scripts/Python/finish-swig-Python-LLDB.sh')
-rwxr-xr-x | lldb/scripts/Python/finish-swig-Python-LLDB.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lldb/scripts/Python/finish-swig-Python-LLDB.sh b/lldb/scripts/Python/finish-swig-Python-LLDB.sh index 96780925cd0..b2c194984af 100755 --- a/lldb/scripts/Python/finish-swig-Python-LLDB.sh +++ b/lldb/scripts/Python/finish-swig-Python-LLDB.sh @@ -184,6 +184,20 @@ else fi fi +if [ -f "${SRC_ROOT}/examples/synthetic/libcxx.py" ] +then + if [ $Debug == 1 ] + then + echo "Copying libcxx.py to ${framework_python_dir}" + fi + cp "${SRC_ROOT}/examples/synthetic/libcxx.py" "${framework_python_dir}" +else + if [ $Debug == 1 ] + then + echo "Unable to find ${SRC_ROOT}/examples/synthetic/libcxx.py" + fi +fi + # Copy the ObjC formatters over to the framework Python directory if [ -f "${SRC_ROOT}/examples/summaries/objc.py" ] then |