Show diagnostics of possible value print errors.
This commit is contained in:
@ -603,11 +603,7 @@ static std::string callPrintValue(const Value& V, const void* Val) {
|
|||||||
|
|
||||||
// We really don't care about protected types here (ROOT-7426)
|
// We really don't care about protected types here (ROOT-7426)
|
||||||
AccessCtrlRAII_t AccessCtrlRAII(*Interp);
|
AccessCtrlRAII_t AccessCtrlRAII(*Interp);
|
||||||
clang::DiagnosticsEngine& Diag = Interp->getDiagnostics();
|
|
||||||
bool oldSuppDiags = Diag.getSuppressAllDiagnostics();
|
|
||||||
Diag.setSuppressAllDiagnostics(true);
|
|
||||||
Interp->evaluate(Strm.str(), printValueV);
|
Interp->evaluate(Strm.str(), printValueV);
|
||||||
Diag.setSuppressAllDiagnostics(oldSuppDiags);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (printValueV.isValid() && printValueV.getPtr())
|
if (printValueV.isValid() && printValueV.getPtr())
|
||||||
|
Reference in New Issue
Block a user