Author: Yuanfang Chen Date: 2021-10-03T13:03:24-07:00 New Revision: a944f801cacdaa40b3869986844a6ffa08b87c19
URL: https://github.com/llvm/llvm-project/commit/a944f801cacdaa40b3869986844a6ffa08b87c19 DIFF: https://github.com/llvm/llvm-project/commit/a944f801cacdaa40b3869986844a6ffa08b87c19.diff LOG: [Clang][NFC] Fix the comment for Sema::DiagIfReachable Added: Modified: clang/include/clang/Sema/Sema.h Removed: ################################################################################ diff --git a/clang/include/clang/Sema/Sema.h b/clang/include/clang/Sema/Sema.h index 64863e3a5781..6c0f5cee7eaf 100644 --- a/clang/include/clang/Sema/Sema.h +++ b/clang/include/clang/Sema/Sema.h @@ -5114,13 +5114,13 @@ class Sema final { /// conversion. ExprResult tryConvertExprToType(Expr *E, QualType Ty); - /// Conditionally issue a diagnostic based on the statement's reachability - /// analysis evaluation context. + /// Conditionally issue a diagnostic based on the statements's reachability + /// analysis. /// - /// \param Statement If Statement is non-null, delay reporting the - /// diagnostic until the function body is parsed, and then do a basic - /// reachability analysis to determine if the statement is reachable. - /// If it is unreachable, the diagnostic will not be emitted. + /// \param Stmts If Stmts is non-empty, delay reporting the diagnostic until + /// the function body is parsed, and then do a basic reachability analysis to + /// determine if the statement is reachable. If it is unreachable, the + /// diagnostic will not be emitted. bool DiagIfReachable(SourceLocation Loc, ArrayRef<const Stmt *> Stmts, const PartialDiagnostic &PD); _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits