We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7db5721 commit 50b189bCopy full SHA for 50b189b
lib/Sema/CSSolver.cpp
@@ -1380,9 +1380,15 @@ ConstraintSystem::solve(Expr *&expr,
1380
}
1381
1382
if (TC.getLangOpts().DebugConstraintSolver) {
1383
+ auto getTypeOfExpr = [&](const Expr *E) -> Type { return getType(E); };
1384
+ auto getTypeOfTypeLoc = [&](const TypeLoc &TL) -> Type {
1385
+ return getType(TL);
1386
+ };
1387
+
1388
auto &log = getASTContext().TypeCheckerDebug->getStream();
1389
log << "---Initial constraints for the given expression---\n";
- expr->print(log);
1390
1391
+ expr->print(log, getTypeOfExpr, getTypeOfTypeLoc);
1392
log << "\n";
1393
print(log);
1394
0 commit comments