]> granicus.if.org Git - clang/commit
[modules] When determining whether a name from a module replaces a name we
authorRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 10 Feb 2015 03:28:10 +0000 (03:28 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 10 Feb 2015 03:28:10 +0000 (03:28 +0000)
commit8c75af8aadd460a700db1c25e3df8f133101f6ef
tree4e905f255cafee0af5f0d57209d8378322f54cf5
parenta69a7e8cfd4be97cc64ebe37d15bb656739d9ca7
[modules] When determining whether a name from a module replaces a name we
already have, check whether the name from the module is actually newer than the
existing declaration. If it isn't, we might (say) replace a visible declaration
with an injected friend, and thus make it invisible (or lose a default argument
or an array bound).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@228661 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/Decl.h
include/clang/AST/DeclContextInternals.h
lib/AST/Decl.cpp
lib/AST/DeclBase.cpp
lib/Sema/SemaLookup.cpp
test/Modules/Inputs/cxx-lookup/module.modulemap
test/Modules/Inputs/cxx-lookup/na.h [new file with mode: 0644]
test/Modules/Inputs/cxx-lookup/nb.h [new file with mode: 0644]
test/Modules/cxx-lookup.cpp