Refactor and simplify class scope name lookup.
authorRichard Smith <richard@metafoo.co.uk>
Wed, 25 Nov 2020 23:22:51 +0000 (15:22 -0800)
committerRichard Smith <richard@metafoo.co.uk>
Thu, 26 Nov 2020 00:25:33 +0000 (16:25 -0800)
commit3fb0879867d7039cb61ffb6287ac17ac949adfa9
tree5b96af6b5b8db644781b334a4ac0130c27ffab7d
parent1363dfaf3105470e1724ed1f17c6d9c0713f442e
Refactor and simplify class scope name lookup.

This is partly in preparation for an upcoming change that can change the
order in which DeclContext lookup results are presented.

In passing, fix some obvious errors where name lookup's notion of a
"static member function" missed static member function templates, and
where its notion of "same set of declarations" was confused by the same
declarations appearing in a different order.
clang-tools-extra/clang-tidy/readability/IdentifierNamingCheck.cpp
clang/include/clang/AST/DeclCXX.h
clang/include/clang/Sema/Sema.h
clang/lib/AST/CXXInheritance.cpp
clang/lib/Sema/SemaLookup.cpp
clang/lib/StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp
clang/test/SemaCXX/lookup-member.cpp
lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp