summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/source-manager/TestSourceManager.py
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2019-02-15 00:29:04 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2019-02-15 00:29:04 +0000
commit40bd10b770813bd1471d46f514545437516aa4ba (patch)
tree83b1fcbd4b6eeebc595b3323992c12b05d3ed69e /lldb/packages/Python/lldbsuite/test/source-manager/TestSourceManager.py
parenta6e8d5e554080ee5483d95313b2958cd25860990 (diff)
downloadbcm5719-llvm-40bd10b770813bd1471d46f514545437516aa4ba.tar.gz
bcm5719-llvm-40bd10b770813bd1471d46f514545437516aa4ba.zip
Fix implementation of [temp.local]p4.
When a template-name is looked up, we need to give injected-class-name declarations of class templates special treatment, as they denote a template rather than a type. Previously we achieved this by applying a filter to the lookup results after completing name lookup, but that is incorrect in various ways, not least of which is that it lost all information about access and how members were named, and the filtering caused us to generally lose all ambiguity errors between templates and non-templates. We now preserve the lookup results exactly, and the few places that need to map from a declaration found by name lookup into a declaration of a template do so explicitly. Deduplication of repeated lookup results of the same injected-class-name declaration is done by name lookup instead of after the fact. llvm-svn: 354091
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/source-manager/TestSourceManager.py')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud