This is an archive of the discontinued LLVM Phabricator instance.

Handle PyLong return values in LLDBSwigPython_CalculateNumChildren.
ClosedPublic

Authored by sivachandra on Mar 13 2015, 5:35 PM.

Details

Summary

Also, change its return type to size_t to match the return types of
its callers.

With this change, std::vector and std::list data formatter tests
pass on Linux (when using libstdc++) with clang as well as with gcc.
These tests have also been enabled in this patch.

Diff Detail

Event Timeline

sivachandra retitled this revision from to Handle PyLong return values in LLDBSwigPython_CalculateNumChildren..
sivachandra edited the test plan for this revision. (Show Details)
sivachandra added reviewers: clayborg, vharron.
sivachandra updated this object.
sivachandra added a subscriber: Unknown Object (MLST).
zturner added inline comments.
scripts/Python/python-wrapper.swig
651

I think the preprocessor directives should be aligned to column 0, not to the current level of indentation. Same goes for later in the function.

clayborg accepted this revision.Mar 16 2015, 9:59 AM
clayborg edited edge metadata.

Looks good, just fix the preprocessor indent and you are good to go.

This revision is now accepted and ready to land.Mar 16 2015, 9:59 AM
sivachandra edited edge metadata.

Fix indentation of the preprocessor directives.

sivachandra closed this revision.Mar 16 2015, 12:03 PM
vharron added inline comments.Mar 23 2015, 1:54 PM
test/functionalities/data-formatter/data-formatter-stl/libstdcpp/vector/Makefile
12

I think you'll need to replace this with the equivalent -fno-limit-debug-info, which is also understood by clang-3.4 on the debian builder.

vharron added inline comments.Mar 23 2015, 1:55 PM
test/functionalities/data-formatter/data-formatter-stl/libstdcpp/vector/Makefile
9

You might want to remove the extra #s while you're in there.

sivachandra added inline comments.Mar 23 2015, 1:59 PM
test/functionalities/data-formatter/data-formatter-stl/libstdcpp/vector/Makefile
12

OK. I just copy-pasted the state of that day's art from another Makefile. I will take care of this today.