[analyzer] Update two comments in MPI-Checker. NFC.
authorDevin Coughlin <dcoughlin@apple.com>
Tue, 2 Aug 2016 23:24:40 +0000 (23:24 +0000)
committerDevin Coughlin <dcoughlin@apple.com>
Tue, 2 Aug 2016 23:24:40 +0000 (23:24 +0000)
Correct two comments that do not match the current behavior of the checker.

A patch by Alexander Droste!

Differential Revision: https://reviews.llvm.org/D22670

llvm-svn: 277547

clang/lib/StaticAnalyzer/Checkers/MPI-Checker/MPIBugReporter.h
clang/lib/StaticAnalyzer/Checkers/MPI-Checker/MPIChecker.h

index 22fbf4c..8474d2d 100644 (file)
@@ -46,9 +46,7 @@ public:
                                const ExplodedNode *const ExplNode,
                               BugReporter &BReporter) const;
 
-  /// Report a missing wait for a nonblocking call. A missing wait report
-  /// is emitted if a nonblocking call is not matched in the scope of a
-  /// function.
+  /// Report a missing wait for a nonblocking call.
   ///
   /// \param Req request that is not matched by a wait
   /// \param RequestRegion memory region of the request
index 45bfd3b..6b1c062 100644 (file)
@@ -59,10 +59,9 @@ public:
   void checkDoubleNonblocking(const clang::ento::CallEvent &PreCallEvent,
                               clang::ento::CheckerContext &Ctx) const;
 
-  /// Checks if a request is used by a wait multiple times in sequence without
-  /// intermediate nonblocking call or if the request used by the wait
-  /// function was not used at all before. The check contains a guard,
-  /// in order to only inspect wait functions.
+  /// Checks if the request used by the wait function was not used at all
+  /// before. The check contains a guard, in order to only inspect wait
+  /// functions.
   ///
   /// \param PreCallEvent MPI call to verify
   void checkUnmatchedWaits(const clang::ento::CallEvent &PreCallEvent,