python: add bindings for children of diagnostics
authorSaleem Abdulrasool <compnerd@compnerd.org>
Sat, 30 Apr 2016 21:14:01 +0000 (21:14 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Sat, 30 Apr 2016 21:14:01 +0000 (21:14 +0000)
commitacc98ca43c376526ef31a618c774b230d6e6f51d
tree37ebc22d41293810eb00e51dd2ad80534825ed87
parentc179435055ac87e59f85885f04fa4dd84535afca
python: add bindings for children of diagnostics

This exposes the Clang API bindings clang_getChildDiagnostics (which returns a
CXDiagnosticSet) and clang_getNumDiagnosticsInSet / clang_getDiagnosticInSet (to
traverse the CXDiagnosticSet), and adds a helper children property in the Python
Diagnostic wrapper.

Also, this adds the missing OVERLOAD_CANDIDATE (700) cursor type.

Patch by Hanson Wang!

llvm-svn: 268167
clang/bindings/python/clang/cindex.py
clang/bindings/python/tests/cindex/test_diagnostics.py