This is an archive of the discontinued LLVM Phabricator instance.

[lldb] "See through" atomic types in ClangASTContext
ClosedPublic

Authored by labath on Dec 10 2019, 5:21 AM.

Details

Summary

This enables us to display the contents of atomic structs. Calling the
removal of _Atomic "desugaring" is not fully correct as it does more
than remove sugar, but it is the right thing to do for most of the
things that we care about. We can change this back once we decide to
support atomic types more comprehensively.

Diff Detail

Event Timeline

labath created this revision.Dec 10 2019, 5:21 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 10 2019, 5:21 AM
Herald added a subscriber: jfb. · View Herald Transcript
teemperor accepted this revision.Dec 10 2019, 5:50 AM

LGTM beside my inline comment about the function name.

lldb/source/Symbol/ClangASTContext.cpp
2484

In this case I would rename it to something like getUnderlyingType, unpackType, removeWrappingTypes or something like that. We shouldn't have our own definition of 'desugar' that differs from Clang's definition.

This revision is now accepted and ready to land.Dec 10 2019, 5:50 AM
labath updated this revision to Diff 233080.Dec 10 2019, 6:31 AM

rename to RemoveWrappingTypes

clayborg accepted this revision.Dec 10 2019, 11:46 AM
This revision was automatically updated to reflect the committed changes.