[all-commits] [llvm/llvm-project] 6479f0: [clang][#47272] Avoid suggesting deprecated versio...
zero9178 via All-commits
all-commits at lists.llvm.org
Tue Jan 11 13:58:27 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 6479f03daec1786d1e45f9148bd9298caafba9d2
https://github.com/llvm/llvm-project/commit/6479f03daec1786d1e45f9148bd9298caafba9d2
Author: Markus Böck <markus.boeck02 at gmail.com>
Date: 2022-01-11 (Tue, 11 Jan 2022)
Changed paths:
M clang/lib/Sema/SemaLookup.cpp
M clang/test/SemaCXX/typo-correction.cpp
Log Message:
-----------
[clang][#47272] Avoid suggesting deprecated version of a declaration over another in typo correction
Prior to this patch, clang might suggest a deprecated name of a declaration over another name as the only mechanism for resolving two typo corrections referring to the same underlying declaration has previously been an alphabetical sort.
This patch adjusts this resolve by also taking into account whether one of two declarations are deprecated. If the new one is deprecated it may not replace a previous correction with a non-deprecated correction and a previous deprecated correction always gets replaced by a non-deprecated new correction.
Fixes https://github.com/llvm/llvm-project/issues/47272
Differential Revision: https://reviews.llvm.org/D116775
More information about the All-commits
mailing list