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

Pavel Labath via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Apr 23 01:02:21 PDT 2020


labath added inline comments.


================
Comment at: lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp:540
 
+static QualType desugarType(QualType type) {
+  while (const clang::ElaboratedType *elaboratedType =
----------------
The name of this function is fairly misleading as it only desugars elaborated types (but not e.g. auto, decltypes, typeof expressions, etc).

Do you want to desugar those too? If yes, then you could call `RemoveWrappingTypes` while passing "typedef" as the thing-to-avoid.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D78697/new/

https://reviews.llvm.org/D78697





More information about the lldb-commits mailing list