[lldb][NFC] Refactor some IsClangType checks in ClangASTContext
authorRaphael Isemann <teemperor@gmail.com>
Fri, 8 Nov 2019 11:03:28 +0000 (12:03 +0100)
committerRaphael Isemann <teemperor@gmail.com>
Fri, 8 Nov 2019 11:03:28 +0000 (12:03 +0100)
commit79b3cce7f143ebcbc57a3c4599cbd7a1541a742b
tree728db97291fadafb882b75de559e299c278d098c
parent0a8bd77e7741b36248c4af73d05f659fb8e4d8a6
[lldb][NFC] Refactor some IsClangType checks in ClangASTContext

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.

Subscribers: abidh, JDevlieghere, lldb-commits

Tags: #lldb

Differential Revision: https://reviews.llvm.org/D70001
lldb/source/Symbol/ClangASTContext.cpp
lldb/source/Symbol/ClangUtil.cpp