[PATCH] D17841: [libclang/python] Add bindings for children of diagnostics

Saleem Abdulrasool via cfe-commits cfe-commits at lists.llvm.org
Thu Apr 28 21:24:47 PDT 2016


compnerd accepted this revision.
This revision is now accepted and ready to land.

================
Comment at: bindings/python/clang/cindex.py:369
@@ +368,3 @@
+            def __len__(self):
+                return int(conf.lib.clang_getNumDiagnosticsInSet(self.diag_set))
+
----------------
Why does this need the explicit int construction?


http://reviews.llvm.org/D17841





More information about the cfe-commits mailing list