This is an archive of the discontinued LLVM Phabricator instance.

libclang: expose diagnostic formatting to Python bindings
ClosedPublic

Authored by osandov on Mar 9 2016, 6:05 PM.

Details

Reviewers
compnerd
Summary

This makes it easier for tools using the Python libclang bindings to
display diagnostics in a manner consistent with clang.

Diff Detail

Event Timeline

osandov updated this revision to Diff 50220.Mar 9 2016, 6:05 PM
osandov retitled this revision from to libclang: expose diagnostic formatting to Python bindings.
osandov updated this object.
osandov added a reviewer: compnerd.
compnerd requested changes to this revision.Aug 7 2016, 10:11 PM
compnerd edited edge metadata.
compnerd added inline comments.
bindings/python/clang/cindex.py
314

Alignment.

413

Can we use * instead of Foo?

419

Lets promote this to be run always, even if the options is queried from clang_defaultDiagnosticDisplayoptions. If those change, we should ensure that we update these anyways.

This revision now requires changes to proceed.Aug 7 2016, 10:11 PM
osandov updated this revision to Diff 67645.Aug 10 2016, 7:04 PM
osandov edited edge metadata.

Thanks for getting around to this, @compnerd, this should take care of your comments.

osandov marked 3 inline comments as done.Aug 10 2016, 7:05 PM
compnerd accepted this revision.Aug 10 2016, 9:18 PM
compnerd edited edge metadata.

Do you have commit access or would you like me to commit this on your behalf?

This revision is now accepted and ready to land.Aug 10 2016, 9:18 PM

I don't have commit access, please commit this on my behalf. Thank you!

compnerd closed this revision.Aug 10 2016, 10:39 PM

SVN r278315.