[PATCH] D21962: MPITypeMismatchCheck for Clang-Tidy

Alexander Droste via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 22 04:31:05 PDT 2016


Alexander_Droste updated this revision to Diff 65052.
Alexander_Droste added a comment.

- use new `MPIFunctionClassifier.h` path
- change `getAsCXXRecordDecl()->getNameAsString()` -> `getAsCXXRecordDecl()->getName()`
- add comment to `addPair` lambda
- rename `ArgumentExpression` to `BufferExprs`
- remove superfluous empty lines

Still, the type mismatch is somehow not found/listed by clang-tidy.
When invoking `$LLVM_TRUNK/build/.../clang-tidy -checks='*' -list-checks | ag mpi`
it does not show up. Something seems to be missing, in order to make the mpi module available.


https://reviews.llvm.org/D21962

Files:
  clang-tidy/CMakeLists.txt
  clang-tidy/mpi/CMakeLists.txt
  clang-tidy/mpi/MPITidyModule.cpp
  clang-tidy/mpi/TypeMismatchCheck.cpp
  clang-tidy/mpi/TypeMismatchCheck.h
  clang-tidy/plugin/CMakeLists.txt
  clang-tidy/tool/CMakeLists.txt
  docs/clang-tidy/checks/list.rst
  docs/clang-tidy/checks/mpi-type-mismatch.rst
  test/clang-tidy/Inputs/mpi-type-mismatch/mpimock.h
  test/clang-tidy/mpi-type-mismatch.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21962.65052.patch
Type: text/x-patch
Size: 33226 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160722/0d2809e9/attachment-0001.bin>


More information about the cfe-commits mailing list