summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-tidy/tool
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2016-07-25 15:43:14 +0000
committerAlexander Kornienko <alexfh@google.com>2016-07-25 15:43:14 +0000
commit651767dbc783dabceb29a45773cbabb58d30b717 (patch)
treef1fe3de412c5d7be96a0c56de20e3f7796a4c6b1 /clang-tools-extra/clang-tidy/tool
parentc5e509316a5dfe418721b5c714325bf12168696d (diff)
downloadbcm5719-llvm-651767dbc783dabceb29a45773cbabb58d30b717.tar.gz
bcm5719-llvm-651767dbc783dabceb29a45773cbabb58d30b717.zip
MPITypeMismatchCheck for Clang-Tidy
Summary: This check verifies if buffer type and MPI (Message Passing Interface) datatype pairs match. All MPI datatypes defined by the MPI standard (3.1) are verified by this check. User defined typedefs, custom MPI datatypes and null pointer constants are skipped, in the course of verification. Instructions on how to apply the check can be found at: https://github.com/0ax1/MPI-Checker/tree/master/examples Reviewers: alexfh Subscribers: cfe-commits Projects: #clang-tools-extra Patch by Alexander Droste! Differential Revision: https://reviews.llvm.org/D21962 llvm-svn: 276640
Diffstat (limited to 'clang-tools-extra/clang-tidy/tool')
-rw-r--r--clang-tools-extra/clang-tidy/tool/CMakeLists.txt1
-rw-r--r--clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp5
2 files changed, 6 insertions, 0 deletions
diff --git a/clang-tools-extra/clang-tidy/tool/CMakeLists.txt b/clang-tools-extra/clang-tidy/tool/CMakeLists.txt
index 45ec7982e31..682d5eb2104 100644
--- a/clang-tools-extra/clang-tidy/tool/CMakeLists.txt
+++ b/clang-tools-extra/clang-tidy/tool/CMakeLists.txt
@@ -20,6 +20,7 @@ target_link_libraries(clang-tidy
clangTidyLLVMModule
clangTidyMiscModule
clangTidyModernizeModule
+ clangTidyMPIModule
clangTidyPerformanceModule
clangTidyReadabilityModule
clangTooling
diff --git a/clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp b/clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp
index eed7d31176f..d887b8e0f50 100644
--- a/clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp
+++ b/clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp
@@ -454,6 +454,11 @@ extern volatile int ModernizeModuleAnchorSource;
static int LLVM_ATTRIBUTE_UNUSED ModernizeModuleAnchorDestination =
ModernizeModuleAnchorSource;
+// This anchor is used to force the linker to link the MPIModule.
+extern volatile int MPIModuleAnchorSource;
+static int LLVM_ATTRIBUTE_UNUSED MPIModuleAnchorDestination =
+ MPIModuleAnchorSource;
+
// This anchor is used to force the linker to link the PerformanceModule.
extern volatile int PerformanceModuleAnchorSource;
static int LLVM_ATTRIBUTE_UNUSED PerformanceModuleAnchorDestination =
OpenPOWER on IntegriCloud