[PATCH] D22729: MPIBufferDerefCheck for Clang-Tidy

Alexander Droste via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 5 09:31:52 PDT 2016


Alexander_Droste marked an inline comment as done.

================
Comment at: clang-tidy/mpi/BufferDerefCheck.cpp:88
@@ +87,3 @@
+    while (true) {
+      if (BufferType->isPointerType()) {
+        BufferType = BufferType->getPointeeType().getTypePtr();
----------------
I just realized, you meant sth. different. I'll update the patch to check for `nullptr` in `addBuffer`.


https://reviews.llvm.org/D22729





More information about the cfe-commits mailing list