aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Lex/ModuleMap.cpp
diff options
context:
space:
mode:
authorSam McCall <sam.mccall@gmail.com>2022-09-07 13:30:08 +0200
committerSam McCall <sam.mccall@gmail.com>2022-10-05 21:22:08 +0200
commit5f7f4846e826f97c7f298fe419c958398d5a0386 (patch)
treef52caa0b1efae3dfa7cbd9a8186b2626fed5f557 /clang/lib/Lex/ModuleMap.cpp
parente99e8ad24da902bd34902e6e83b6e71e255bf868 (diff)
downloadllvm-5f7f4846e826f97c7f298fe419c958398d5a0386.zip
llvm-5f7f4846e826f97c7f298fe419c958398d5a0386.tar.gz
llvm-5f7f4846e826f97c7f298fe419c958398d5a0386.tar.bz2
[clangd] Fix non-idempotent cases of canonicalRenameDecl()
The simplest way to ensure full canonicalization is to canonicalize recursively in most cases. This fixes an assertion failure and presumably correctness bugs. It does show up that D132797's index-based virtual method renames doesn't handle templates well (the AST behavior is different and IMO better). We could choose to disable in this case or change the index behavior, but this patch doesn't do either. Differential Revision: https://reviews.llvm.org/D133415
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
0 files changed, 0 insertions, 0 deletions