[all-commits] [llvm/llvm-project] 84c398: [lldb][TypeSystemClang] Desugar an elaborated type...
aleksandr-urakov via All-commits
all-commits at lists.llvm.org
Mon Apr 27 01:09:30 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 84c398d375d9f3b0c2ce2a755dbaa57500e3f8ec
https://github.com/llvm/llvm-project/commit/84c398d375d9f3b0c2ce2a755dbaa57500e3f8ec
Author: Aleksandr Urakov <Aleksandr.Urakov at jetbrains.com>
Date: 2020-04-27 (Mon, 27 Apr 2020)
Changed paths:
M lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp
A lldb/test/API/lang/cpp/typedef/Makefile
A lldb/test/API/lang/cpp/typedef/TestCppTypedef.py
A lldb/test/API/lang/cpp/typedef/main.cpp
Log Message:
-----------
[lldb][TypeSystemClang] Desugar an elaborated type before checking if it's a typedef or getting a typedefed type
Summary:
Sometimes a result variable of some expression can be presented as an elaborated
type. In this case the methods `IsTypedefType()` and `GetTypedefedType()` of
`SBType` didn't work. This patch fixes that.
I didn't find the test for these API methods, so I added a basic test for this
too.
Reviewers: aprantl, teemperor, labath, leonid.mashinskiy
Reviewed By: teemperor
Subscribers: labath, lldb-commits
Tags: #lldb
Differential Revision: https://reviews.llvm.org/D78697
More information about the All-commits
mailing list