This is an archive of the discontinued LLVM Phabricator instance.

[lldb][NFC] Refactor some IsClangType checks in ClangASTContext
ClosedPublic

Authored by teemperor on Nov 8 2019, 3:02 AM.

Details

Summary

All type in these functions need be valid and Clang types, so
we might as well replace these checks with IsClangType.

Also lets IsClangType explicitly check for validity instead of
assuming that the TypeSystem is a nullptr.

Diff Detail

Event Timeline

teemperor created this revision.Nov 8 2019, 3:02 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 8 2019, 3:02 AM
This revision was not accepted when it landed; it landed in state Needs Review.Nov 8 2019, 3:05 AM
This revision was automatically updated to reflect the committed changes.