[NFC][clang]Inclusive language: remove remaining uses of sanity
Missed some uses of sanity check in previous commits.
This commit is contained in:
parent
86f186efea
commit
d42a6432aa
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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)]
|
||||
|
|
Loading…
Reference in New Issue