Skip to content

Commit

Permalink
Update explaination for extra check
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesLee-Jones committed Jul 5, 2024
1 parent 13b700d commit c890595
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libdredd/src/mutate_visitor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ bool MutateVisitor::TraverseDecl(clang::Decl* decl) {
if (const auto* var_decl = llvm::dyn_cast<clang::VarDecl>(decl)) {
if (var_decl->isConstexpr() || var_decl->hasConstantInitialization()) {
// Because Dredd's mutations occur dynamically, they cannot be applied to
// C++ constexprs, which require compile-time evaluation.
// C++ constexprs or variables that require constant initialization as
// these both require compile-time evaluation.
return true;
}
if (!compiler_instance_->getLangOpts().CPlusPlus &&
Expand Down

0 comments on commit c890595

Please sign in to comment.