aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectGUI.cpp
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2019-12-09 16:44:26 +0100
committerPavel Labath <pavel@labath.sk>2019-12-10 14:05:10 +0100
commitf482708149138088f74f6b01668208a8c037563c (patch)
tree541afa7be24d862a2090837a5b22adb867529c0a /lldb/source/Commands/CommandObjectGUI.cpp
parente9895c612a5a331660020172affa927664e138ad (diff)
downloadllvm-f482708149138088f74f6b01668208a8c037563c.zip
llvm-f482708149138088f74f6b01668208a8c037563c.tar.gz
llvm-f482708149138088f74f6b01668208a8c037563c.tar.bz2
[lldb] Centralize type "desugaring" logic in ClangASTContext
Summary: A *lot* of ClangASTContext functions contained repetitive code for "desugaring" certain kinds of clang types. This patch creates a utility function for performing this task. Right now it handles four types (auto, elaborated, paren and typedef), as these are the types that were handled everywhere. There are probably other kinds of types that could/should be added here too (TypeOf, decltype, ...), but I'm leaving that for a separate patch as doing that would not be NFC (though I'm pretty sure that adding them will not hurt, and it may in fact fix some bugs). In another patch I'd like to add "atomic" type to this list to properly display atomic structs. Since sometimes one may want to handle a certain kind of type specially (right now we have code which does that with typedefs), the Desugar function takes a "mask" argument, which can supress desugaring of certain kinds of types. Reviewers: teemperor, shafik Subscribers: jfb, lldb-commits Tags: #lldb Differential Revision: https://reviews.llvm.org/D71212
Diffstat (limited to 'lldb/source/Commands/CommandObjectGUI.cpp')
0 files changed, 0 insertions, 0 deletions