[lldb] Centralize desugaring of decltype-like types in ClangASTContext
authorPavel Labath <pavel@labath.sk>
Tue, 10 Dec 2019 13:54:41 +0000 (14:54 +0100)
committerPavel Labath <pavel@labath.sk>
Mon, 16 Dec 2019 11:02:32 +0000 (12:02 +0100)
commitea2805a04b65331ca568ff76761ef8a52337e42b
tree279af05eaafb5878dac4adacc74538cbc1018399
parentf8495017f0292df05f23878ea593f68d2d2c75f4
[lldb] Centralize desugaring of decltype-like types in ClangASTContext

Summary:
These types were handled in some places, but not others. This resulted
in (for example) not being able to display members of structs whose
types were defined using these constructs.

Using getLocallyUnqualifiedSingleStepDesugaredType for these types is
not fully equivalent, as it will only desugar them if the types are not
instantiation-dependent, whereas previously we did that unconditionally.

It's not clear to me which behavior is correct here, but the test suite
does not seem to care either way.

Reviewers: teemperor, shafik

Subscribers: lldb-commits

Tags: #lldb

Differential Revision: https://reviews.llvm.org/D71405
lldb/source/Symbol/ClangASTContext.cpp
lldb/unittests/Symbol/TestClangASTContext.cpp