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 86995d9 commit ed06991Copy full SHA for ed06991
clang/lib/Sema/Sema.cpp
@@ -1451,14 +1451,15 @@ void Sema::ActOnEndOfTranslationUnit() {
1451
}
1452
1453
if (!Diags.isIgnored(diag::warn_mismatched_delete_new, SourceLocation())) {
1454
- if (ExternalSource)
+ if (ExternalSource && !PP.isIncrementalProcessingEnabled())
1455
ExternalSource->ReadMismatchingDeleteExpressions(DeleteExprs);
1456
for (const auto &DeletedFieldInfo : DeleteExprs) {
1457
for (const auto &DeleteExprLoc : DeletedFieldInfo.second) {
1458
AnalyzeDeleteExprMismatch(DeletedFieldInfo.first, DeleteExprLoc.first,
1459
DeleteExprLoc.second);
1460
1461
1462
+ DeleteExprs.clear();
1463
1464
1465
AnalysisWarnings.IssueWarnings(Context.getTranslationUnitDecl());
0 commit comments