[Lldb-commits] [PATCH] D78697: [lldb][TypeSystemClang] Desugar an elaborated type before checking if it's a typedef or getting a typedefed type

Aleksandr Urakov via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Apr 23 00:29:53 PDT 2020


aleksandr.urakov created this revision.
aleksandr.urakov added reviewers: aprantl, teemperor.
aleksandr.urakov added a project: LLDB.
Herald added a subscriber: lldb-commits.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D78697

Files:
  lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp
  lldb/test/API/lang/cpp/typedef/Makefile
  lldb/test/API/lang/cpp/typedef/TestCppTypedef.py
  lldb/test/API/lang/cpp/typedef/main.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78697.259489.patch
Type: text/x-patch
Size: 4546 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20200423/3f4030e1/attachment.bin>


More information about the lldb-commits mailing list