[PATCH] D21962: MPITypeMismatchCheck for Clang-Tidy
Alexander Kornienko via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 22 06:07:43 PDT 2016
alexfh added a comment.
In https://reviews.llvm.org/D21962#492657, @Alexander_Droste wrote:
> 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.
You need to add this to ClangTidyMain.cpp:
// This anchor is used to force the linker to link the MPIModule.
extern volatile int MPIModuleAnchorSource;
static int LLVM_ATTRIBUTE_UNUSED MPIModuleAnchorDestination =
MPIModuleAnchorSource;
https://reviews.llvm.org/D21962
More information about the cfe-commits
mailing list