[PATCH] D22729: MPIBufferDerefCheck for Clang-Tidy
Alexander Droste via cfe-commits
cfe-commits at lists.llvm.org
Sat Jul 23 07:02:23 PDT 2016
Alexander_Droste created this revision.
Alexander_Droste added a reviewer: alexfh.
Alexander_Droste added a subscriber: cfe-commits.
This check verifies if a buffer passed to an MPI (Message Passing Interface)
function is sufficiently dereferenced. Buffers should be passed as a single
pointer or array. As MPI function signatures specify void * for their buffer
types, insufficiently dereferenced buffers can be passed, like for example
as double pointers or multidimensional arrays, without a compiler warning
emitted.
Instructions on how to apply the check can be found at: https://github.com/0ax1/MPI-Checker/tree/master/examples
https://reviews.llvm.org/D22729
Files:
clang-tidy/mpi/BufferDerefCheck.cpp
clang-tidy/mpi/BufferDerefCheck.h
clang-tidy/mpi/CMakeLists.txt
clang-tidy/mpi/MPITidyModule.cpp
docs/clang-tidy/checks/list.rst
docs/clang-tidy/checks/mpi-buffer-deref.rst
test/clang-tidy/Inputs/mpi-type-mismatch/mpimock.h
test/clang-tidy/mpi-buffer-deref.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22729.65231.patch
Type: text/x-patch
Size: 12134 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160723/ebfa188e/attachment-0001.bin>
More information about the cfe-commits
mailing list