}
return;
}
+ if (const auto *Paren = dyn_cast<ParenExpr>(FailedCond)) {
+ OS << "(";
+ prettyPrintFailedBooleanCondition(OS, Paren->getSubExpr(), Policy);
+ OS << ")";
+ return;
+ }
+ // If this is !(BooleanExpression), try pretty-printing the inner expression.
+ const auto *UnaryOp = dyn_cast<UnaryOperator>(FailedCond);
+ if (UnaryOp && UnaryOp->getOpcode() == UO_LNot) {
+ OS << "!";
+ prettyPrintFailedBooleanCondition(OS, UnaryOp->getSubExpr(), Policy);
+ return;
+ }
+
FailedCond->printPretty(OS, nullptr, Policy);
}
// expected-error@-1{{static_assert failed due to requirement 'std::is_same<int, float>::value' "message"}}
static_assert(std::is_const<ExampleTypes::T>::value, "message");
// expected-error@-1{{static_assert failed due to requirement 'std::is_const<int>::value' "message"}}
+static_assert(!std::is_const<const ExampleTypes::T>::value, "message");
+// expected-error@-1{{static_assert failed due to requirement '!std::is_const<int>::value' "message"}}
+static_assert(!(std::is_const<const ExampleTypes::T>::value), "message");
+// expected-error@-1{{static_assert failed due to requirement '!(std::is_const<int>::value)' "message"}}
struct BI_tag {};
struct RAI_tag : BI_tag {};