[PATCH] D21962: MPITypeMismatchCheck for Clang-Tidy

Alexander Kornienko via cfe-commits cfe-commits at lists.llvm.org
Sat Jul 23 00:04:46 PDT 2016


alexfh accepted this revision.
alexfh added a comment.
This revision is now accepted and ready to land.

Looks good with one comment.


================
Comment at: clang-tidy/mpi/TypeMismatchCheck.cpp:237
@@ +236,3 @@
+void TypeMismatchCheck::check(const MatchFinder::MatchResult &Result) {
+  static ento::mpi::MPIFunctionClassifier FuncClassifier{*Result.Context};
+  const CallExpr *const CE = Result.Nodes.getNodeAs<CallExpr>("CE");
----------------
Use parentheses syntax for initialization.
http://llvm.org/docs/CodingStandards.html#do-not-use-braced-initializer-lists-to-call-a-constructor


https://reviews.llvm.org/D21962





More information about the cfe-commits mailing list