[clang-tidy] MPIBufferDerefCheck
authorAlexander Droste <alexander.ra.droste@gmail.com>
Fri, 12 Aug 2016 19:30:31 +0000 (19:30 +0000)
committerAlexander Droste <alexander.ra.droste@gmail.com>
Fri, 12 Aug 2016 19:30:31 +0000 (19:30 +0000)
commit1512f9a0f96f2795ca497099d3d39ed30cdaea33
tree2a882a91b985b237d94b92dcd61b488060170dcf
parentaf32ccb195ece1a25511d1d35d8c14ce1b58ee9b
[clang-tidy] MPIBufferDerefCheck
...
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

Reviewers: Haojian Wu
Differential revision: https://reviews.llvm.org/D22729

llvm-svn: 278553
clang-tools-extra/clang-tidy/mpi/BufferDerefCheck.cpp [new file with mode: 0644]
clang-tools-extra/clang-tidy/mpi/BufferDerefCheck.h [new file with mode: 0644]
clang-tools-extra/clang-tidy/mpi/CMakeLists.txt
clang-tools-extra/clang-tidy/mpi/MPITidyModule.cpp
clang-tools-extra/docs/ReleaseNotes.rst
clang-tools-extra/docs/clang-tidy/checks/list.rst
clang-tools-extra/docs/clang-tidy/checks/mpi-buffer-deref.rst [new file with mode: 0644]
clang-tools-extra/test/clang-tidy/Inputs/mpi-type-mismatch/mpimock.h
clang-tools-extra/test/clang-tidy/mpi-buffer-deref.cpp [new file with mode: 0644]