[NFC][clang]Inclusive language: remove remaining uses of sanity

Missed some uses of sanity check in previous commits.
This commit is contained in:
Zarko Todorovski 2021-11-24 14:16:47 -05:00
parent 86f186efea
commit d42a6432aa
4 changed files with 5 additions and 5 deletions

View File

@ -7483,7 +7483,7 @@ public:
const Expr *Source = E->getSourceExpr();
if (!Source)
return Error(E);
if (Source == E) { // sanity checking.
if (Source == E) {
assert(0 && "OpaqueValueExpr recursively refers to itself");
return Error(E);
}

View File

@ -686,8 +686,8 @@ SwitchNodeBuilder::generateDefaultCaseNode(ProgramStateRef St,
assert(Src->succ_rbegin() != Src->succ_rend());
CFGBlock *DefaultBlock = *Src->succ_rbegin();
// Sanity check for default blocks that are unreachable and not caught
// by earlier stages.
// Basic correctness check for default blocks that are unreachable and not
// caught by earlier stages.
if (!DefaultBlock)
return nullptr;

View File

@ -107,7 +107,7 @@ static void visitASTNodeRecursive(ASTNode node, ASTNode base,
static void visitHierarchy(RecordKeeper &records,
StringRef nodeClassName,
ASTNodeHierarchyVisitor<ASTNode> visit) {
// Check for the node class, just as a sanity check.
// Check for the node class, just as a basic correctness check.
if (!records.getClass(nodeClassName)) {
PrintFatalError(Twine("cannot find definition for node class ")
+ nodeClassName);

View File

@ -339,7 +339,7 @@ if __name__ == '__main__':
# Prevent infinite loop if called with absolute path.
arguments_a[0] = os.path.basename(arguments_a[0])
# Sanity check
# Basic correctness check
enabled_checks = [check_name
for check_name in checks
if config.getboolean('Checks', check_name)]