Skip to content

Commit 70f57ea

Browse files
committed
Address feedback
1 parent 1e35971 commit 70f57ea

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

clang/docs/ReleaseNotes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ Improvements to Clang's diagnostics
519519
The warning message for non-overlapping cases has also been improved (#GH13473).
520520

521521
- Fixed a duplicate diagnostic when performing typo correction on function template
522-
calls with explicit template arguments. Fixes #GH139226.
522+
calls with explicit template arguments. (#GH139226)
523523

524524
Improvements to Clang's time-trace
525525
----------------------------------

clang/lib/Sema/SemaTemplate.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -523,8 +523,8 @@ bool Sema::LookupTemplateName(LookupResult &Found, Scope *S, CXXScopeSpec &SS,
523523
if (Found.isAmbiguous()) {
524524
Found.clear();
525525
} else if (!Found.empty()) {
526-
// Do not erase the typo-corrected result to avoid duplicating the typo
527-
// correction in future.
526+
// Do not erase the typo-corrected result to avoid duplicated
527+
// diagnostics.
528528
AllowFunctionTemplatesInLookup = true;
529529
Found.setLookupName(Corrected.getCorrection());
530530
if (LookupCtx) {

0 commit comments

Comments
 (0)