[Clang][NFC] Fix the comment for Sema::DiagIfReachable

This commit is contained in:
Yuanfang Chen 2021-10-03 12:49:14 -07:00
parent 0f567f0e3e
commit a944f801ca
1 changed files with 6 additions and 6 deletions

View File

@ -5114,13 +5114,13 @@ public:
/// 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);