aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/ModuleDependencyCollector.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard@metafoo.co.uk>2021-01-22 15:43:47 -0800
committerRichard Smith <richard@metafoo.co.uk>2021-01-22 15:46:41 -0800
commite92be7cd9f03ab3eb8c4a21e686743c2575a169a (patch)
treed20ee70b40e5f05dba640aaf096e19e4a8882bcf /clang/lib/Frontend/ModuleDependencyCollector.cpp
parentd18c3c7b18e9e78145d701c4687682848071ab98 (diff)
downloadllvm-e92be7cd9f03ab3eb8c4a21e686743c2575a169a.zip
llvm-e92be7cd9f03ab3eb8c4a21e686743c2575a169a.tar.gz
llvm-e92be7cd9f03ab3eb8c4a21e686743c2575a169a.tar.bz2
PR47682: Merge the DeclContext of a merged FunctionDecl before we inherit
default arguments. When a function is declared with a qualified name, its eventual semantic DeclContext may differ from the scope specified by the qualifier if it redeclares a function in an inline namespace. In this case, we need to update the DeclContext to be that of the previous declaration, and we need to do so before we decide whether to inherit default arguments from that previous declaration, because we only inherit default arguments from declarations in the same scope.
Diffstat (limited to 'clang/lib/Frontend/ModuleDependencyCollector.cpp')
0 files changed, 0 insertions, 0 deletions